- Posts: 3
Postings
You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).
Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!
Different style per category
- Buruman
-
Topic Author
- New Member
-
Less
More
IP: 46.144.117.9
12 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 ?
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 ?
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.181.228.28
12 years 4 months ago - 12 years 4 months ago #3695
by admin
Olivier.
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!
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: 12 years 4 months ago by admin.
- Buruman
-
Topic Author
- New Member
-
Less
More
- Posts: 3
IP: 46.144.117.9
12 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.
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.
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.181.228.28
12 years 4 months ago #3697
by admin
Olivier.
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.
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.
- Buruman
-
Topic Author
- New Member
-
Less
More
- Posts: 3
IP: 46.144.117.9
12 years 4 months ago #3698
by Buruman
Replied by Buruman on topic Different style per category
ok, many thanks for your help !
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 173.2.237.88
12 years 3 months ago #3720
by admin
Olivier.
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.
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.
