Jump to content

profile fields display format


Tactical Geeks

Recommended Posts

Posted

i am making a select box with ranks and each rank has a image i wanna display with option is it possible to do fillowing

 

Recruit as option but the image name is rec

 

if tried

{{if ($content=='Recruit')}}
<img src="siteurl/director/rec.png"><br/>Recruit
{{elseif (=='Private First Class')}}
<img src="siteurl/director/.png"><br/>Private First Class
{{endif}}

 

that didnt work

 

any suggestions?

Posted

You can do this in IPS 3.4, not in IPS4. I suggest you to rename your image with the same name of the rank and use the following syntax :

<img src="siteurl/director/{content}.png"><br/>{content}

But there is actually a bug in IPS4 because a space is added before {content} on display => so you will have :

<img src="siteurl/director/ Recruit.png"><br/> Recruit

 

Archived

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

  • Recently Browsing   0 members

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