Results 1 to 2 of 2

Thread: channel list/drop down menu [mod]

  1. #1
    Join Date
    May 2007
    Posts
    588

    Default channel list/drop down menu [mod]

    If you want a list of channels or a drop down menu box that users can select to go directly to the channels page from any part of your site then just add this code to which ever template. A good one to add it to is the right.tpl template.

    Code:
    {insert name=list_channel assign=chinfo vid=$VID}
    {section name=i loop=$chinfo}
    {$chinfo[i].ch}
    
    {/section}
    if you want it as a drop down menu use this code
    Code:
    <form name="channel">
    <select name="menu" onChange="location=document.channel.menu.options[document.channel.menu.selectedIndex].value;" value="Go">
    <option value="">Select</option>
    {insert name=list_channel assign=chinfo vid=$VID}
    {section name=i loop=$chinfo}
    <option value="{$baseurl}/channel/{$chinfo[i].id}/{$chinfo[i].ch}/">{$chinfo[i].ch}</option>
    {/section}
    </select>
    </form>
    *edit added "<option value="">Select</option>" to drop down menu option to fix not being able to select first channel

  2. #2
    Join Date
    Sep 2007
    Posts
    14

    Default Re: channel list/drop down menu [mod]

    These both work great, thanks a lot!

Similar Threads

  1. Need Help with 2.7 menu
    By leo377 in forum Installation Support
    Replies: 3
    Last Post: 05-08-2009, 03:46 AM
  2. Top Menu
    By snake123 in forum Template Modifications
    Replies: 1
    Last Post: 01-22-2009, 11:03 PM
  3. Is it possible make a channel not appear on the channel list
    By sydawn in forum Template Modifications
    Replies: 5
    Last Post: 07-13-2008, 12:33 AM
  4. Make Tag Field a Drop downs list
    By slhawk98 in forum Feature Requests
    Replies: 1
    Last Post: 11-09-2007, 10:32 PM
  5. My new flash menu
    By karlmay in forum Template Modifications
    Replies: 3
    Last Post: 09-18-2007, 07:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •