[SOLVED] Image instead a text in CB list

12 years 11 months ago - 12 years 11 months ago #163670 by manucausse
[SOLVED] Image instead a text in CB list was created by manucausse
Hi,

I hope there is not an answer to my question somewhere in the forum (I have not found it).
Is it possible to display an image instead a text in a list?

Example :
I have a field "Rank" (drop down single list) with 5 values (1 to 5)
I want to display in the list, in the "Rank" column a png image instead of the value (1 is 1.png).
Is there a way to do it ?

Thanks ^^

Regards

Emmanuel

Please Log in to join the conversation.

12 years 11 months ago - 12 years 11 months ago #163803 by krileon
Replied by krileon on topic Re: Image instead a text in CB list
Using a delimiter field set to display on your list and substitutions you could display whatever you like based off that fields value. Example as follows.

[cb:if cb_myrank="1"]
<img src="[cb:config param="live_site" /]/images/1.png" />
[/cb:if]

The above would display the image 1.png from inside your image folder assuming the value of cb_myrank is 1. This would be placed inside a delimiter field then placed directly on your userlist. More on substitutions can be found at the below tutorial.

www.allmysocials.com/tutorials/item/233-substitution-usage


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: manucausse

Please Log in to join the conversation.

12 years 11 months ago #164084 by manucausse
Replied by manucausse on topic Re: Image instead a text in CB list
Thank you very much !!!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.183 seconds

Facebook Twitter LinkedIn