What param types can I add to my views xml-file?

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
User avatar
torkil
Joomla! Apprentice
Joomla! Apprentice
Posts: 45
Joined: Wed Aug 24, 2005 9:34 am
Location: Bodø, Norway
Contact:

What param types can I add to my views xml-file?

Post by torkil » Mon Mar 10, 2008 11:45 am

I have a component with a view, and it has a template which in turn has an xml-file. The xml-file provides the data for the menu setup, so that I can provide parameters for my menu items. So far so good.

But: I have a menu item that I want to assign a param type=date to, but that does not seem to be possible. All I have seen in similar xml-files are select-boxes, radiobuttons, checkboxes and text fields. Is there a param type that supports dates out there? And does anyone know where the code that does the parsing of those parameters is located?
Torkil Johnsen
Bedre Reklame as - http://www.bedre.no
Dittnettsted.no - spør oss om Joomla... eller noe annet - http://www.dittnettsted.no

User avatar
torkil
Joomla! Apprentice
Joomla! Apprentice
Posts: 45
Joined: Wed Aug 24, 2005 9:34 am
Location: Bodø, Norway
Contact:

Re: What param types can I add to my views xml-file?

Post by torkil » Mon Mar 10, 2008 11:50 am

Seems as param type=calendar did the trick :)

The allowed JElement-types can be found in libraries/joomla/html/parameter/element
Torkil Johnsen
Bedre Reklame as - http://www.bedre.no
Dittnettsted.no - spør oss om Joomla... eller noe annet - http://www.dittnettsted.no


Post Reply