Filtering data with a user control Options
mortenbock
Posted: Friday, November 10, 2006 2:12:42 PM

Rank: Addict

Joined: 7/19/2006
Posts: 789
Location: Århus, Denmark
It's time for me to start planning my firts advanced Umbraco function.

It's basically a search function that needs to filter pages based on a lot of parameters.

My Document Type has a lot of properties like:

Season: (Checkboxes: Winter, Summer, Spring, Fall)
Theme: (Dropdownlist: Theme1, Theme2, Theme3)
Text: (RTE text)

Now I want to create a usercontrol that has input fields for all the properties of the page, and does an auto postback so the sorting starts as soon as a checkbox is selected.

There are a few issues with this as far as I can see.

First of all I need to somehow sort the pages from the chosen values. Sencondly (and possibly more tricky) is that I need some of the input fields to be generated from the datatypes i've created in Umbraco. I need to do this so the search box will reflect the actual values if I for instance create a new Theme4.

How would you go about this? Would the sorting be easier to do in an XSLT template getting the values from querystring, or would I be better off loading the pages into a dataset and displaying the with a datagrid? (The site is not under heavy userload, so ease of implementation is preferred over performance.)

I hope to get your input on this.

Morten Bock - Level 2 certified - MVP 2008/2009 - My danish blog with a few english posts

mortenbock
Posted: Friday, November 10, 2006 2:14:29 PM

Rank: Addict

Joined: 7/19/2006
Posts: 789
Location: Århus, Denmark
Damn line breaks... Trying to post it from EI...maybe that's better?

It's time for me to start planning my firts advanced Umbraco function.

It's basically a search function that needs to filter pages based on a lot of parameters.

My Document Type has a lot of properties like:

Season: (Checkboxes: Winter, Summer, Spring, Fall)
Theme: (Dropdownlist: Theme1, Theme2, Theme3)
Text: (RTE text)

Now I want to create a usercontrol that has input fields for all the properties of the page, and does an auto postback so the sorting starts as soon as a checkbox is selected.

There are a few issues with this as far as I can see.

First of all I need to somehow sort the pages from the chosen values. Sencondly (and possibly more tricky) is that I need some of the input fields to be generated from the datatypes i've created in Umbraco. I need to do this so the search box will reflect the actual values if I for instance create a new Theme4.

How would you go about this? Would the sorting be easier to do in an XSLT template getting the values from querystring, or would I be better off loading the pages into a dataset and displaying the with a datagrid? (The site is not under heavy userload, so ease of implementation is preferred over performance.)

I hope to get your input on this.

Morten Bock - Level 2 certified - MVP 2008/2009 - My danish blog with a few english posts

Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.