Skip to Content Skip to Menu

[SOLVED] Link field values in list/profile to articles

  • Dorkyme
  • Dorkyme
  • OFFLINE
  • Posts: 43
  • Thanks: 2
  • Karma: -1
11 years 9 months ago - 11 years 9 months ago #209207 by Dorkyme
Okay, so we fixed that. But still nothing is "printed" out to the list.
Are we doing something wrong now?
See the list for your self at www.amed.no/finn-behandler (caption on)
(Two fields are located to the most right tab, the original field on top, and the delimiter field below)

[cb:if cb_nameofcbfield!=""]
<ul>[cb:if cb_nameofcbfield includes "blabla"]
<li><a href="category/blabla">Blabla</a></li>
[/cb:if] [cb:if cb_nameofcbfield includes "blabla2"]
<li><a href="category/blabla2">Blabla2</a></li>
[/cb:if] [cb:if cb_nameofcbfield includes "blabla3"]
<li><a href="category/blabla3">Blabla3</a></li>
[/cb:if] [cb:if cb_nameofcbfield includes "blabla4"]
<li><a href="category/blabla4">Blabla4</a></li>
[/cb:if] [cb:if cb_nameofcbfield includes "blabla5"]
<li><a href="category/blabla5">Blabla5</a></li>
[/cb:if]</ul>
[/cb:if]
Last edit: 11 years 9 months ago by Dorkyme.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 47955
  • Thanks: 8170
  • Karma: 1434
11 years 9 months ago #209220 by krileon
The UL is being rendered, but the LI are not. This means the IF statements aren't matching properly. Please ensure the values are accurate. You may need to try using regex to match the values instead. Example as follows.

[cb:if cb_nameofcbfield=~"/blabla/"]<li><a href="category/blabla">Blabla</a></li>[/cb:if]


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.

Please Log in or Create an account to join the conversation.

  • Dorkyme
  • Dorkyme
  • OFFLINE
  • Posts: 43
  • Thanks: 2
  • Karma: -1
11 years 9 months ago #209230 by Dorkyme
That solved it, thanks krileon!

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum