Let's say I am creating a slider on my home page, that draws the visitors attention to various pages on my site.
So, each slide will have the following information :
1) Image
2) Title, e.g. "Summer Deals"
3) Description, e.g. "We have some great offers in July and August!"
4) Read More URL, e.g. 'summer-deals.php'
The first three are easy enough in Couch. Number four could just be a simple text field, but I'd like to give the client a way of selecting an existing Couch page from a dropdown menu.
So, is there a way of getting every Couch page (and it's url) into a select menu?
It's the [GET ALL PAGES] bit I need help with ...
Cheers
PS. I'm not currently using Nested Pages.
So, each slide will have the following information :
1) Image
2) Title, e.g. "Summer Deals"
3) Description, e.g. "We have some great offers in July and August!"
4) Read More URL, e.g. 'summer-deals.php'
The first three are easy enough in Couch. Number four could just be a simple text field, but I'd like to give the client a way of selecting an existing Couch page from a dropdown menu.
So, is there a way of getting every Couch page (and it's url) into a select menu?
- Code: Select all
<cms:editable
name="slide_url"
label="Slide URL"
desc="Select which page this slide should link to"
opt_values='[GET ALL PAGES][PAGE NAME]=[PAGE URL] | [/ GET ALL PAGES]'
type='dropdown'
/>
It's the [GET ALL PAGES] bit I need help with ...
Cheers

PS. I'm not currently using Nested Pages.