close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Static & Dynamic Recordset Menu Lists

Thread began 7/23/2010 12:42 pm by Thomas Hill | Last modified 7/26/2010 11:58 am by Thomas Hill | 1280 views | 5 replies |

Thomas Hill

Static & Dynamic Recordset Menu Lists

Hi,

I have created a dynamic menu list in Dreamweaver for users to select an item. Each of the items has it's own year category (up to 4 years) and has it's own order column. This way I can view all records and order them by year and order.

Although I have all this working great, can anyone tell me if there is anyway to add separate static lines within the menu at specific points to separate these elements so the user can see that the first few items are in year 1, the next in year 2 and so on?

If you see my attached image this should make it clear.

Many thanks.

P.S. I actually own all of the WebAssist plugins but am struggling with the implementation on this one.

Sign in to reply to this post

CraigRBeta Tester

there may be other ways of doing this, but...

as each of the items has it's own year category, you could have the year category in a column in your recordset and concatenate this value in the display field, so, for example, the list could look like

(Year 1) Unit 1...
(Year 1) Unit 2...
(Year 1) Unit 6...

etc

Sign in to reply to this post

Jason ByrnesWebAssist

Yes CraigR, that is the most strait forward way to accomplish this.

Sign in to reply to this post

Thomas Hill

Many thanks for your replies. This does seem a good way to accomplish this.

However, is there anyway of creating the list with a single header for each year rather than place this besides each of the items as below:

----year 1----
Unit 1...
Unit 2...
Unit 6...
----year 2----
Unit 3...
Unit 4...

and so on....

Perhaps this is very complicated?

Sign in to reply to this post

CraigRBeta Tester

One possible way of doing this, (i think ?) , but it would need to be hand coded.

You would need to created a separate recordset for each year group, 1-4

the year 'title' could be dispayed using <optgroup label="Year 1"></optgroup> tags aroung the dynamic data.

use a different recordset within each set of optgroup tags.

eg

<select name="xxxx" multiple>
<optgroup label="Year 1">
<?php
do {
?>
<option value="<?php ...RECORDSET FOR YEAR 1></option>
<?php
} while ...
?>
</optgroup>
<optgroup label="Year 2">
<?php
do {
?>
<option value="<?php ...RECORDSET FOR YEAR 2></option>
<?php
} while ...
?>
</optgroup>

...
etc
</select>


...Another approach could be to use the parent/child relationship of dynamic dropdowns.

Use the first dropdown to choose the year, and the second (filtered) list for the relevant course.
This would, of course, depend on how a visitor selected their course

Sign in to reply to this post

Thomas Hill

Thank you so much. This is EXACTLY what I was looking for.

Using this with the show if command as well really gives a great user experience.

Thanks again!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...