No announcement yet.

Template conditional based on profile field (checkbox)

  • Filter
  • Time
  • Show
Clear All
new posts

  • Template conditional based on profile field (checkbox)

    Is it possible to display something based on a whether or not one option is checked off in a multiple-choice custom profile filed?

    Basically I wanted to add a custom field that allowed users to customize which social bookmarking icons show up. So, if I created a checkbox for Facebook, Twitter, etc, I could put a conditional around something in the bookmarks template, eg: "If <facebook's field is checked>, Show Facebook option".

    Of course the bookmarks template only has one iteration, so I'm assuming the template would have to be severely modified.

    Is this something that could be accomplished by template edits alone, or will this require code changes?

  • #2
    Here's a great list of conditionals explained -


    • #3
      Originally posted by Floris View Post
      Here's a great list of conditionals explained -
      Thanks, Floris! Searching for something exactly like that was next on my list.

      Any idea if editing the bookmarks template to apply conditionals to specific existing-bookmarks (eg facebook, twitter) is possible?


      • #4
        I have no experience with that, sorry.


        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.