Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListAdding drop down filter on category field... or alternative solution?Adding drop down filter on category field... or alternative solution?
Previous
 
Next
New Post
6/30/2008 10:42 AM
 

Hi everyone,

I hope someone can help me as I am a complete newbie when it comes to xsl.  I have a user defined table which lists training courses, these are categorised under a category column so several courses would have the same category. To add data to the table I have a dropdown in the category field.

I would like to somehow filter my table view on the category field, preferably with a drop down menu of the categories.. but if this is not possible then maybe another solution?  I'm using the latest version of the UDT module (3.05) and the advanced table transform.  Can I add a drop down menu (say alongside the search box) to filter the categories, and if so could this be extended to other fields?  If not could I create links and pass a query string to the table and achieve the filtering in the same way?    How would I go about doing this?

Many thanks

Simon

 

 
New Post
6/30/2008 12:27 PM
 

Simon, it is possible. AdvancedTable is not a good starting point though; this requires customized xsl. Don't be afraid for the first steps, UDT comes with a token 2 xsl  generator. Check out the documentation.

Next step would be customizing your xsl to filter categories

 

 
New Post
7/1/2008 3:51 AM
 

Thank you Stefan. I've figured out the advanced table and can see maybe how to change the filtered data "query" code, but I wasn't sure if i could incorporate a drop down menu within the xsl file?  Would this just be standard html, or would it need to post back the module, as does the search feature?  Or maybe it would easier to add another html module on the same page and create the menu with query type links to the table?

Simon

 

 
New Post
7/1/2008 9:10 AM
 

You will always create standard html, and you are free to use a form post (search feature) or a querystring (paging support). UDT supports automized querystring/ form post parameters to XSL parameters mapping. Please check documentation  page 40.

You may start with static html inside another html module containing the drop down menu, and only apply filtering first. If this works, you can go further and replace the static selector with a dynamic, xsl based one.

 

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListAdding drop down filter on category field... or alternative solution?Adding drop down filter on category field... or alternative solution?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out