drop down list with page links? help please.
-
jasebloke
drop down list with page links? help please.
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.
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.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: drop down list with page links? help please.
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'}
Then you'd call it like {menu template='myfunkytemplate'}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
jasebloke
Re: drop down list with page links? help please.
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.
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.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: drop down list with page links? help please.
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.
Then if a distributor changes for a countie, you would just edit the particular page. The menu would continue to work.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
jasebloke
Re: drop down list with page links? help please.
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.
I understand where you are coming from.
Sorry my fault for not fully explaining the numbers etc
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.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: drop down list with page links? help please.
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.
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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
javathunderbird
Re: drop down list with page links? help please.
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
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
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: drop down list with page links? help please.
oh, that's cool. can you thow that into a menu manager template, and paste the template here.... It'd be really useful.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
javathunderbird
Re: drop down list with page links? help please.
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
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
Last edited by javathunderbird on Wed May 16, 2007 12:08 am, edited 1 time in total.
-
jasebloke
Re: drop down list with page links? help please.
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.
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.
