I am using the 'repeatable' tag to define and show a list of files. Members of our club can see the list of files on the site after logging in and view or download them.
Since I do not think it is possible to use the 'folders' tag within repeatable regions, I have defined a field in the template for this. It is called 'type' to define the type of file (manual, form, meeting minutes, etc). It is defined as a radiobutton.
On the website I now would like to show all different types available as clickable links at the top of the page. By default, the user can see all files. When clicking one of the link only files of that type would be shown.
I think I should be able to access the unique values of the field 'type' by using get_custom_field. I have added this to the template (see below) but nothing shows up. How to fetch and then display the values (ie loop over them) of a editable field within a repeatable region?
Since I do not think it is possible to use the 'folders' tag within repeatable regions, I have defined a field in the template for this. It is called 'type' to define the type of file (manual, form, meeting minutes, etc). It is defined as a radiobutton.
- Code: Select all
<cms:editable name='type' opt_values='Rules | Forms | Manuals | Minutes | Other' type='radio' />
On the website I now would like to show all different types available as clickable links at the top of the page. By default, the user can see all files. When clicking one of the link only files of that type would be shown.
I think I should be able to access the unique values of the field 'type' by using get_custom_field. I have added this to the template (see below) but nothing shows up. How to fetch and then display the values (ie loop over them) of a editable field within a repeatable region?
- Code: Select all
<cms:get_custom_field 'type' masterpage='bestanden.php' />