Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Template Directive for multiple Tags - but with individual colors

jozzhMay 2 2024 — edited May 2 2024

In the Template directive examples the loop directive is usually used to nicely render Tags.

@jon-dixon has a great blog on this topic as always:

https://blog.cloudnueva.com/apex-template-directives

The tags column in the SQL contains values delimited by a ':' e.g., PLSQL:APEX:ORDS.

{loop ":" TAGS/}
  <span class="a-CardView-badge a-CardView-badgeValue">&APEX$ITEM.</span>
{endloop/}

Now my question is:

Did anyone achieve different colors for different tags? If we have only 10 tags to choose from in the system I would like to always show the same tag with the same background color.

My feeling says this is not possible, but maybe you found out some Template hack?

This post has been answered by fac586 on May 2 2024
Jump to Answer
Comments
Post Details
Added on May 2 2024
4 comments
402 views