Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

question-circle Different style per category

More
10 years 4 months ago #3692 by Buruman
Different style per category was created by Buruman
Hi

Is it possible to have a different border and backgroundcolor if the item is on a another category.

for example maybe by puting the category id into the <li>,

<li id="catid#" class="latestnews-item">


Any suggestions ?

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago - 10 years 4 months ago #3695 by admin
Replied by admin on topic Different style per category
I will look into it and see what would be the proper way to do it. The category id as id for the item cannot work, it would not be unique. It would probably be better as an extra class.
Could you explain with an example why you would need this? I am not certain to fully understand the need for this feature.
Thank you!

Olivier.
Last edit: 10 years 4 months ago by admin.

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #3696 by Buruman
Replied by Buruman on topic Different style per category
Here is an example

This is a mockup, just for the idea of the website.
The page will be something like this based on the possibilities with the module

What I want is to give the of the boxes a certain border color which is depending on the category of the item it is in.

which I think can only be done by parsing an category ID of the item in the <li> </li> section of the code.

I hope you have a solution.
Attachments:

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #3697 by admin
Replied by admin on topic Different style per category
Thanks for the mockup, I do appreciate it.
I now fully understand what you are trying to do, that makes perfect sense. I will think of the best solution to do this. Unfortunately, I won't be able to come up with an update until next week, I am in the middle of a move inter-states and it takes all of my time. Thank you for your understanding.

Olivier.

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #3698 by Buruman
Replied by Buruman on topic Different style per category
ok, many thanks for your help !

Please Log in or Create an account to join the conversation.

More
10 years 3 months ago #3720 by admin
Replied by admin on topic Different style per category
Hello, I have a test version ready for you.

If you would like to try this out, please contact me at [email protected].
I apologise for the late reply.

Each 'li' tag has now an extra class catid-XX where XX is the category id for each item.

Olivier.

Please Log in or Create an account to join the conversation.