hschottm / tags

Contao tags extension
11 stars 16 forks source link

Related tags and "active" class #88

Closed biowebfr closed 1 year ago

biowebfr commented 1 year ago

Hi,

I love your extension. It does an awsome job, I use it for many years (since contao 3)!

I have a question regarding the "active" class.

Is it possible to add the "active" class to the related tags selected ?

image

Thank you for your response.

hschottm commented 1 year ago

Hi Renaud,

sure that should be possible, I will have a look at it.

Cheers,

Helmut

Am Sa., 19. Nov. 2022 um 13:18 Uhr schrieb Renaud Kaczmarek < @.***>:

Hi,

I love your extension. It does an awsome job, I use it for many years (since contao 3)!

I have a question regarding the "active" class.

Is it possible to add the "active" class to the related tags selected ?

[image: image] https://user-images.githubusercontent.com/46192868/202850428-5b90cd65-fbff-4731-b24a-50b5120875b9.png

Thank you for your response.

— Reply to this email directly, view it on GitHub https://github.com/hschottm/tags/issues/88, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGVFGJ2O2Z6J7GT4J57W63WJDAQ5ANCNFSM6AAAAAASFJGTMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

biowebfr commented 1 year ago

Great ! Maybe the related tag could have a class .related too. :)

hschottm commented 1 year ago

I added a related CSS class for all chosen related tags in the "All tags" and the "Top 10 tags" tag clouds. I also added an active CSS class for the active tag into the "Top 10 tags" tag cloud. I don't add an active to the selected related tags because technically they are not active. There is only one active tag possible. But you can use the new related CSS class to create your 'active' styling for the selected related tags.

biowebfr commented 1 year ago

Brilliant!