Hi,
I want to use this technique : viewtopic.php?f=8&t=7097
but with Folders instead. While I can easily load the url, title name etc I wanted a little more control over the <option> list so I could output in the CMS:
Template editable:
Work List Folder file:
the desire format then for the admin panel dropdown would output:
rather than using the pipe| method.
Basically this will allow the cleint to select a work item to link to rather than using relationships which I cant see how to use with Folders? It seems to list images etc and a bit messy.
Furthermore - is it possible with a PHP SQL query to get a list of every page and clonable in the site to create a typeahead field in the CMS for the user to link to a page without having to type the whole URL / copy it from the front end? A bit like you have with Expression Engine in a Module for Structure called Structure Pages.
I want to use this technique : viewtopic.php?f=8&t=7097
but with Folders instead. While I can easily load the url, title name etc I wanted a little more control over the <option> list so I could output in the CMS:
Template editable:
- Code: Select all
<cms:editable
name="case_study_study_work"
label="Related Work Link"
desc="Select the work to link to"
opt_values='work_list.txt'
dynamic='opt_values'
type='dropdown'
order='25'
/>
Work List Folder file:
- Code: Select all
<cms:folders masterpage='our-work.php' hierarchical='1' depth='2'>
<cms:if k_level='1'>
<cms:show k_folder_title />|
</cms:if>
</cms:folders>
the desire format then for the admin panel dropdown would output:
- Code: Select all
<option value="<cms:show k_folder_link />"><cms:show k_folder_name" /></option>
rather than using the pipe| method.
Basically this will allow the cleint to select a work item to link to rather than using relationships which I cant see how to use with Folders? It seems to list images etc and a bit messy.
Furthermore - is it possible with a PHP SQL query to get a list of every page and clonable in the site to create a typeahead field in the CMS for the user to link to a page without having to type the whole URL / copy it from the front end? A bit like you have with Expression Engine in a Module for Structure called Structure Pages.