sylque / discpage

A Discourse plugin to create static pages and attach discussions to headings
MIT License
30 stars 5 forks source link

Trouble Creating a Topic Connected to a Page #30

Closed noobishme closed 2 years ago

noobishme commented 2 years ago

I have a testing instance on my site at ...

https://noobish.me/t/chapter-1-in-the-beginning/255

When I click the orange balloons the page does slides in to halves ...

image

Then when I click the + New Topic button in the Right panel the Topic editor does slide up from the bottom, so I use that to write my Topic …

image

… but then after I save it, it’s not connected to the Page Topic, and still there is no Topic list in the Right panel…

image

sylque commented 2 years ago

Thanks @noobishme .

I cannot reproduce this issue on my own Discourse instances. Please accept my registration so that I can try on yours.

Also, would you please set discpage hide tags=checked in your Discourse settings and let me know if the behavior is the same? Thanks.

noobishme commented 2 years ago

Done and done ... the behavior is the same.

Screenshot 2022-09-13 134419

sylque commented 2 years ago

Please do the following :

  1. Uncheck the "discpage hide tags" setting (in order to come back to the previous situation).
  2. Install the latest version of DiscPage (I've just release a new version). This won't fix your issue, but might help tracking it.
  3. Try to create a new topic in a balloon and tell me if it works. If it doesn't, please provide a screenshot of the "Topic editor" (whose official name is "the composer":-)
  4. Ensure you are logged-in as a Discourse admin and start step 3 again. But this time, just open the composer, press Alt+a (this enters DiscPage debug mode) and take another screenshot. Thanks.
noobishme commented 2 years ago

This is a second test topic. I have

  1. Unchecked the "discpage hide tags" setting (in order to come back to the previous situation).

  2. Installed the latest version of DiscPage and Discourse... image

  3. Here is a screenshot of the Composer as I create the topic after clicking the orange balloon... image ... and here is a screenshot of the result (still did not work) ... image

  4. Screenshot after just opened the composer and pressed Alt+a ... image

sylque commented 2 years ago

Thanks a lot.

There's definitely something odd with your Discourse instance.

In Discourse, when you are on a tag page, the topic composer should have the tag preselected. For example:

  1. Go to https://meta.discourse.org/tag/docker (this is the page for tag "docker" on Discourse Meta)

  2. Click the "New Topic" button. You should get this: image See how the tag selector is prefilled with "docker".

Now try to do the same with your own Discourse:

  1. Go to https://noobish.me/tag/mom (this is the page for tag "mom")

  2. Click the "New Topic" button. You get this: image The tag selector is empty!

There might be a plugin messing up with Discourse. Please disable plugins one at a time (starting with DiscPage) and run the above test again, until the tag selector is correctly prefilled.

noobishme commented 2 years ago

Will do!

noobishme commented 2 years ago

You nailed it. It's most definitely the

https://meta.discourse.org/t/layouts-plugin/55208

https://plugins.discourse.pavilion.tech/c/discourse-layouts/33

https://github.com/paviliondev/discourse-layouts

Screenshot 2022-09-13 165446

My nOObish.me site is currently using the Layouts Plugin along side the Layouts Category List Widget (theme component). As long as the Layouts Plugin is enabled the problem exists (with or without the Layouts Category List Widget theme component.)

noobishme commented 2 years ago

OK I deleted the old Tag Groups, cleared my Cloudflare cache, created a new "Chapter" (DiscPage) topic (Chapter 2: In the Middle) copying the same content in the composer from the Chapter 1 page.

The + New Topic button is greyed-out and unclickable, so I can't test further until that is resolved...

Screenshot 2022-09-13 171341

sylque commented 2 years ago

Glad this is solved.

The greyd-out "New Topic" button is a new issue, I will create another post for it.