Page 1 of 1
drop down list with page links? help please.
Posted: Tue May 15, 2007 6:01 pm
by jasebloke
Hi everyone,
I am new to CMSMS and I am in the process of completing my first project - So far I am very impressed.
However, I am finding it difficult to find out how to complete the following:
I would like to have a drop down list of UK counties, when the user selects their county and clicks submit they are directed to a CMSMS page with the details of their local distributor.
Can the form elements in the FCKeditorx handle this or is there a module available somewhere. I need it to be editable via the CMS as the distributors will change regularly.
Thank you in anticipation.
Re: drop down list with page links? help please.
Posted: Tue May 15, 2007 6:03 pm
by calguy1000
You should be able to do this with a custom menu manager template. One that creates a form, and a select list, instead of a bunch of nested links.
Then you'd call it like {menu template='myfunkytemplate'}
Re: drop down list with page links? help please.
Posted: Tue May 15, 2007 6:45 pm
by jasebloke
calguy1000, thanks for the quick reply, much appreciated.
I will look into that, however I would like if possible to create it in a way that other people in the business can edit it without having to understand the templates & menus etc. a WYSIWYG method would be my preferred option - If at all possible. That is why I have been trying it with the form elements of the FCKeditor.
Any further help would be appreciated.
cheers.
Re: drop down list with page links? help please.
Posted: Tue May 15, 2007 7:14 pm
by calguy1000
so, one countie = one page right? that's why I suggested a menu manager template.
Then if a distributor changes for a countie, you would just edit the particular page. The menu would continue to work.
Re: drop down list with page links? help please.
Posted: Tue May 15, 2007 7:36 pm
by jasebloke
Calguy1000,
I understand where you are coming from.
Sorry my fault for not fully explaining the numbers etc

We have 10 distrubutors at the moment each one with their own page. Each distributor is responsible for a number of UK locations and the UK has over 80 county locations. So therefore up to 10 counties could be linked to just one particular page and as new distrubutors join us then this will alter.
So I need a drop down list that directs the user upon a selection to their nearest distributor page and a table/list somewhere where I can edit the county/CMSMS page links
Hope it's not getting too confusing. Thanks for your help so far.
Cheers.
Re: drop down list with page links? help please.
Posted: Tue May 15, 2007 10:02 pm
by calguy1000
okay, you need some custom functionality. It may be possible to do this by:
a) Putting the form into your page template
b) Using a named content block for the options in the dropdown
b.1) filling the content block with stuff like:
county name
c) Using a UDT to process the form and redirect to the appropriate page
If this won't work, then you'll probably need to get a quick module developed.
Re: drop down list with page links? help please.
Posted: Tue May 15, 2007 10:13 pm
by javathunderbird
Hi,
I used to write this for fun:
http://www.pamground.com/main/work/cust ... /index.php
Hope this will give you a good starting point.
With my best,
Jim
Re: drop down list with page links? help please.
Posted: Tue May 15, 2007 10:28 pm
by calguy1000
oh, that's cool. can you thow that into a menu manager template, and paste the template here.... It'd be really useful.
Re: drop down list with page links? help please.
Posted: Wed May 16, 2007 12:05 am
by javathunderbird
Hi,
I just made up a simple cms made simple menu template:
{
*
A customized dropdown menu written in javascript.
The dropdown menu is meant to replace the traditional html selction box.
In order for this to work, one also need the style sheet and the ddmenu.js .
Written By Jim (the thunderbird)
*}
{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->type == 'sectionheader'}
depth}">
{$node->menutext}
{elseif $node->type == 'separator'}
{else}
depth}" href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}
{/if}
{/foreach}
{/if}
Note: one would also need to have a dropdownmenu.css and dropdownmenu.js in order for this to work.
The javascript file is here:
http://cmsmszone.pamground.com/dropdownmenu.js
and the css file is here:
http://cmsmszone.pamground.com/dropdownmenu.css
A demo link is here:
http://cmsmszone.pamground.com/
There's still some subtle display bugs there but I think the framework is done. Feel free to copy and study the code.
With my best,
Jim
Re: drop down list with page links? help please.
Posted: Wed May 16, 2007 6:56 am
by jasebloke
Hi Jim,
Thank you that's excellent - just what I need.
I hope you don't mind me asking but I am a CMSMS newbie and I am still learning the coding, could you complete a quick step by step guide to implement for me? including how and where the content is picked up, I presume it's a content block if so what format is the content written.
I am sure the step by step guide would prove useful to a lot of us.
Thanks again.