Here's a simple example how to use Ditto to generate a dropdown / select menu.
Imagine you have a container full of documents, and you need to build a dynamic dropdown-menu for these documents for easy navigation, here's how:
Create a chunk named "dropdown" with the following content:
In case you didn't know by now, the special syntax
[~[+id+]~] generates a link: Even if you use "SEO-friendly URLs", Evo will make sure it outputs the correct page-name for you.
In your document (or template) insert:
The small "javasscript" bit is responsible for jumping to the selected URL. If you use it on every page, it makes sense to save it as an external file of course.
The rest is just the form-enclosure with a Ditto call that lists all documents of parent id 56, sorts in ASCending order by pagetitle, and uses our custom template "dropdown".
For browsers not using JS and searchbots, you can (and should) create simple text-links inside
Suggest an edit to this page.