numero2 / contao-tags

Adds the possibility to assign tags to individual elements.
GNU Lesser General Public License v3.0
1 stars 3 forks source link

Option to create new tags is missing (Contao 5.3.9) #10

Closed con2net closed 3 months ago

con2net commented 3 months ago

I do not have the option to add new tags via System > Tags. If I enter tags directly via the DB table, they appear here and can also be selected in a news item. Have I perhaps just not found the correct way to create them yet or is this a bug?

bennyborn commented 3 months ago

This is intentional. Tags are created when they are needed, e.g. when creating a News. The mask in System > Tags is just there for an overview and for a possible translation 😉

con2net commented 3 months ago

Yes, of course that's what I thought at my first try 😉, but entering (new) tags directly in the input line in a news item doesn't work for me. It is not “taken over”. I can only select existing ones.

bennyborn commented 3 months ago

It should work, just press enter after adding a new tag 😊

con2net commented 3 months ago

Hmm, maybe I have to search for an alternative enter key on my keyboard? :-D

bennyborn commented 3 months ago

Enter, Comma and Tab should work.

con2net commented 3 months ago

That's what I thought. We previously had the tags extension from Helmut Schottmüller and the input is the same there. Unfortunately, nothing happens here ... Tried all the buttons and mouse actions I know ;-)

numero_tags_1

bennyborn commented 3 months ago

Can you confirm, using the browsers Devtools, that /bundles/tags/js/backend.js is successfully loaded?

con2net commented 3 months ago

Yes, will be loaded. But ... HTML status code 303

There is a redirection to the 404 page ...?

It may be important to know that we have not set a URL suffix for the pages.

numero_tags_2

bennyborn commented 3 months ago

That's the problem right there 😀 System > Maintenance > Recreate the symlinks should fix it.

con2net commented 3 months ago

Unfortunately, that doesn't help ... Same problem ... I have also emptied all other caches.

bennyborn commented 3 months ago

So I guess the Symlink in /public/bundles is still missing? If so check the permissions and try composer install once more.

con2net commented 3 months ago

OK, problem solved. The symlink was not there at first. But I saw that - for whatever reason - I had a /web directory and the symlink was set to tags underneath. But my webroot was/is actually /public ... I don't know where the /web came from again, but I changed it to public in composer.json and recreated the symlinks. Now there is also a symlink to tags below public and everything works as expected. Thanks a lot and sorry that I posted it here and it's not a bug after all.