I am creating a filter for a Projects page that displays the grandchild nodes as thumbnails.
I'm using dropdown menus to filter and sort the displayed thumbnails. There are 4 dropdown menus.
All sectors
Office
Retail
Hotels and Leisure
Science and Healthcare
Education
All project types
Fitout
Refurbishment
New build
All locations
NSW
VIC
QLD
SA
WA
Sort by
Newest to oldest
Client name
Sector
All sectors dropdown menu simply lists the child nodes and links to the page (currently not working).
All project types and All locations menus have dropdown datatypes listing those values. I need those values to populate the menus. Alias' projectType and projectState.
Sort by menu will have the option to sort the list by Newest to oldest, Client name and Sector. These values have datatypes, the Newest to oldest will be filtered by a datatype alias completionDate and Client name has a datatype alias projectClient. The sector can be filtered by it's child node.
I'm not sure how to populate the dropdown menu's with all those values, I've got the All sectors displaying but not linking.
The idea is of course for page to sort the thumbnails according to what values are selected in the dropdown. All thumbnails that do not contain those values won't be displayed.
Does anyone have any suggestions on how I can get this working?
Filter and sort child page list using dropdown menu
I am creating a filter for a Projects page that displays the grandchild nodes as thumbnails.
I'm using dropdown menus to filter and sort the displayed thumbnails. There are 4 dropdown menus.
All sectors dropdown menu simply lists the child nodes and links to the page (currently not working).
All project types and All locations menus have dropdown datatypes listing those values. I need those values to populate the menus. Alias' projectType and projectState.
Sort by menu will have the option to sort the list by Newest to oldest, Client name and Sector. These values have datatypes, the Newest to oldest will be filtered by a datatype alias completionDate and Client name has a datatype alias projectClient. The sector can be filtered by it's child node.
I'm not sure how to populate the dropdown menu's with all those values, I've got the All sectors displaying but not linking.
The idea is of course for page to sort the thumbnails according to what values are selected in the dropdown. All thumbnails that do not contain those values won't be displayed.
Does anyone have any suggestions on how I can get this working?
Here's the code for the filter macro:
Here's the code for the page that displays the grandchild node information as thumnails:
Cheers!
JV
Just at a quick glance it looks like you are mixing new & old schemas in the first snippet (/node/data...)
Wherever you aren't getting the values you expect, you can output a textarea with the raw XML to help you troubleshoot, ie
<textarea><xsl:copy-of select="$projectTypeList"/></textarea>
is working on a reply...