Paginate by Category

7 posts by 2 authors in: Forums > CMS Builder
Last Post: May 11, 2009   (RSS)

Re: [jdancisin] Paginate by Category

By ross - May 7, 2009

Hi there.

Thanks for posting!

I think this one is going to come down to how you store the dates in your database.

Do you actually say what quarter each record is in, or do you just enter the current date when you add it?

This will determine how the code needs to work on your page.

Let me know and we'll go from there. Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Paginate by Category

By zip222 - May 7, 2009

They are entered as dates, using the "date/time" field type. Time is disabled.

Re: [jdancisin] Paginate by Category

By ross - May 8, 2009

Hi.

I think the first step here is going to be switching the name of that drop down menu from:

date_awarded_keyword

to

date_awarded_min

That will basically say, return all listings that have a date higher than the one you selected.

Now, from there, we can either do a little bit of code and calculate what quarter you are currently in and determine from there, what articles should be displayed.

An easier way might be to just have a second drop down for the max date (date_awarded_max) so you are basically just doing a range search.

The second option will be easier to setup.

Let me know what you think ;).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Paginate by Category

By zip222 - May 8, 2009

Right now I have it setup with using date_awarded_min and its not returning what I want, and the _max doesn't either. I need the user to be able to select a date and display only the grants given out on that date.

When I select "January 21, 2009" I only want to see the grants awarded on that date. Another thing is that after a search has been run I need the drop down to continue to display all of the possible dates. But right now it only displays the date I selected. I realize the methodology I am using to generate the drop down is to blame for this, but I don't know another way.

Re: [jdancisin] Paginate by Category

By ross - May 11, 2009

Hi there.

I think this is going to be something I need to take a closer look at.

Could you send me an email through consulting@interactivetools.com with a link to this post and some FTP details?

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Paginate by Category

By zip222 - May 11, 2009

Thanks. The information has been sent.