
Donna
Staff
/ Moderator

Jun 27, 2006, 1:46 PM
Post #1 of 2
(8060 views)
Shortcut
|
|
Tutorial: Dropdown News Items in News Manager
|
Can't Post
|
|
Here's a nifty tutorial that shows you how to replace News Manager's standard index page with an automatically generated dropdown list. Selecting an article from the dropdown list will take you to the full article page. First, you'll need the jumpbox.cgi -- a free script that we have available. You can download the jumpbox script here. This is a neat little script that we use on our website so that when you select a link from a dropdown list and hit submit, it takes you to a specific page. We'll be using that here. Follow the installation instructions that come with it, then you can make the template changes. Once you've got this all setup, take your _index.html template, and replace your row templatecell and template insert section with this:
<form method=get action="/path/jumpbox.cgi" onsubmit="location.href=jb.options[jb.selectedIndex].value; return false;"> <select name="jb"> <!-- template insert : $list$ --> <!-- templatecell : row --> <option value="$url$">$name$</option> <!-- /templatecell : row --> </select> </form> Make sure you change the path in the <form> tag to match the actual path to the jumpbox script, and that's it! You can format the rest of the page as you want (make sure you don't remove the "not found" templatecell, but you can get rid of everything else if you want.) Then the easiest thing to do is to include the published index page as an SSI on your existing pages. Now, you've got a dropdown list that will take your readers directly to the article they're looking for, without having to go to an index page first. If you're having any trouble with getting this setup, let me know and I'd be happy to give you a hand. :) Donna -- support@interactivetools.com
(This post was edited by Donna on Jun 27, 2006, 2:12 PM)
|