Page 1 of 1

ideas and advice needed?

Posted: Mon Nov 19, 2007 9:47 pm
by Gillian.Hesse
Hi there,

I was wondering whether it is possible to implement a dynamic control for selecting all the items relating to a category in a module (say calender, news or glossary).  I am a newbie and still haven't got straight in my head all the possible options available; css, smarty, javascript, php, so I was hoping you give me some suggestions of where to start.

For example, you can display a subset of calendar events by including the category in the smarty tag

i.e. {cms_module module="Calendar"  category="interviews" }

is it possible to

1)have a pull down list or menu on the page that automatically reads in the possible categories from the calendar module
2)take the users selection and use this within the tag and force the calender module to update.

Or is some other more complicated method required.

Thanks

Gill

Re: ideas and advice needed?

Posted: Mon Nov 19, 2007 10:33 pm
by calguy1000
It's more complicated than that.

Lets use News as an example.

You would have to create a news browsecat template that built a 'select' list, of all of the categories (only possible in the newest, not released yet version of News).  This template would have to have then also build a url for each category to output news only for that category selected from the dropdown.

Then you would call the template like {news action='browsecat' browsecattemplate='blah'}

but that would only work for the latest and greatest version of the News module,which I haven't released yet. 

Other than that, you'd have to do some significant modifications to the code.

Re: ideas and advice needed?

Posted: Tue Nov 20, 2007 6:00 am
by Gillian.Hesse
Thanks,

I thought that that was probably the case, but was worried that there may be some easy and obvious thing I had missed.  Out of interest, why will the new News module be able to do what you describe and not earlier versions?  What has changed that allows it?

And it this going to be the same with the calendar and glossary modules?

But it looks like I can put this one much further down my wish list and wait until I'm a bit more proficient and comfortable with CMSMS.

thanks again

Gill

Re: ideas and advice needed?

Posted: Tue Nov 20, 2007 11:11 am
by cyberman
Gillian.Hesse wrote: why will the new News module be able to do what you describe and not earlier versions?  What has changed that allows it?

And it this going to be the same with the calendar and glossary modules?
Only News module has a browsecat parameter. Maybe it can be adapted for modules you want ...