Hello Miro,
This is what I would do.
Under Link Properties (you can do the same for category properties too)
1) Add Column
2) Column Name: SpecialColor
3) Column Type: ENUM
4) Column Values: Yes/No (Make sure that Yes & No are in 2 separate lines)
5) Not Null: No
6) Default: No
7) Form Display: SpecialColor
8) Form Type: Select
9) Form Names: Yes/No (Make sure that Yes & No are in 2 separate lines)
10) Form Values: Yes/No (Make sure that Yes & No are in 2 separate lines)
Now in link.html if you want to display link title for specialcolor links with specified color, you can use tag such as
Quote:
<%if SpecialColor 'eq' Yes'><a class="specialcolorclass" href="<%detailed_url%>"><%Title%></a>
<%else%>
<a class="normallinkcolorclass" href="<%detailed_url%>"><%Title%></a>
<%endif%>
& to have category with different color in the list of categories, in subcategory.html you can use something like:
Quote:
<%if SpecialColor 'eq' Yes'><a class="specialcolorclass" href="<%escape_html URL%>"><%Name%>
<%else%>
<a class="normallinkcolorclass" href="<%escape_html URL%>"><%Name%>
<%endif%>
You can use the luna template and modify it as required, and add above if/else/endif tags as required.
P.S.. When in doubt... or working with any link/table/user/review properties... ALWAYS backup your db. So you don't have to strangle yourself later on.
Hope this helps.
Vishal
Vishal
-------------------------------------------------------