Jump to content

Pages, making a field entry clickable


Recommended Posts

I have a field in pages field_18, which is a checkbox set.

When I list values in my template, they usually are printed like this: Label: check1, check2, check3

I change to custom format in display options because I "need" it in a table, and I want each checkbox checked to be a link where it's filtering for that specific checkbox.

So I've tried to do the stuff below. Not very sure of what I'm doing, but it is sort of working. I do, however, have a hardcoded url there. I just use the url I get when doing such a record filter manually. I wonder how to do this more dynamically, for example if I change the name of the page I do not have to change all of these fields.

<tr><td>{$label}</td><td>
{{$myarray = explode(',', $value);}}
{{$myidarray = explode(',', $formValue);}}
{{foreach $myarray as $id => $entry}}
<a href="hardcodeurl&advanced_search_submitted=1&content_field_18[{$myidarray[$id]}]={$myidarray[$id]}&&&&sortby=primary_id_field&sortdirection=asc&record_type=all&time_frame=show_all"><span class="ipsBadge ipsBadge_style8">{$entry}</a></span>
{{endforeach}}
</td></tr>
 

 

Link to comment
Share on other sites

Thanks for posting!

Unfortunately, this issue is beyond the scope of our technical support. 👩‍💻

Our technical support is happy to help you with the Invision Community platform, but we're unable to help with things like server management, theme questions and modifications.

I've moved this to our Community Support area where other Invision Community owners will see it and help where they can.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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