Jump to content

Pages - Category Logos/Icons


Scoobs

Recommended Posts

If someone needs a quick solution for this, it can be done manually in the template:

{{if $category->_id == '1' }} 
<i class="fa fa-user"></i>

{{elseif $category->_id == '2'}}
<i class="fa fa-building-o"></i>

{{elseif $category->_id == '3'}} 
<i class="fa fa-calendar"></i>

...

{{else}}
<i class="fa fa-info"></i>
{{endif}}

 

Link to comment
Share on other sites

If someone needs a quick solution for this, it can be done manually in the template:

{{if $category->_id == '1' }} 
<i class="fa fa-user"></i>

{{elseif $category->_id == '2'}}
<i class="fa fa-building-o"></i>

{{elseif $category->_id == '3'}} 
<i class="fa fa-calendar"></i>

...

{{else}}
<i class="fa fa-info"></i>
{{endif}}

 

​nice one. One thing: my id's start with 11, to 14

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...