The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

List pages as

  • # April 10, 2013 at 5:47 pm

    Howdy! It probably sounds odd, but I would like to put certain child pages in a drop-down menu to include in a form. The visitor need not visit the page, but the title of that page is what’s most important. In other words:

    Which of the following tours do you want more info on?

    I’m doing this simply so that if I add or delete pages in the future, this form field will be kept up-to-date without any effort on my part ;)


    # April 10, 2013 at 6:12 pm

    Cool, so some Googling and I figured it out! I’ll have to test this to see how/if it actually works within the form, but for anyone else who might benefit from it, the code (hard-coded, not a short-code) is something along the lines of:

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed