Hi All,
I want to add a calendar control to my component, just like the one that is used in the "Add new content item" In J!1.5
Can someone point me in the right way?
Thanks,
Idan.
Calendar control?
Moderators: tjay, seadap, Rogue4ngel, matthewhayashida
-
idan sharon
- Joomla! Fledgling

- Posts: 2
- Joined: Thu Mar 15, 2007 5:19 pm
- Location: Israel
Re: Calendar control?
Take a look at the JParameter class and the JElementCalendar class. This is probably the easiest way to do it (the easiest way I've found).
Ian
Ian
Help test my Component XML Generator Tool!
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1997/Itemid,35/
All feedback appreciated!
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1997/Itemid,35/
All feedback appreciated!
-
idan sharon
- Joomla! Fledgling

- Posts: 2
- Joined: Thu Mar 15, 2007 5:19 pm
- Location: Israel
Re: Calendar control?
Hi Ian,
I've found the JParameter class in the reference wiki, but the JElementCalendar doesn't exist there...
Can I get a link?
Is this the way it's done in the "Insert new content item" page in the administration?
Thanks again,
Idan.
I've found the JParameter class in the reference wiki, but the JElementCalendar doesn't exist there...
Can I get a link?
Is this the way it's done in the "Insert new content item" page in the administration?
Thanks again,
Idan.
Re: Calendar control?
Indeed you are right... that class must have been created after I created the docs for the Parameter package.
It is still the same idea as the other ones. If you look in the com_content admin directory, you will see a article.xml file in the models directory. These is the parameters for articles.
So, you create a JParameter object something like:
$params = new JParameter( $row->params, JPATH_COMPONENT_ADMINISTRATOR.DS.'models'.DS.'example.xml' );
And then: echo $params->render();
Ian
It is still the same idea as the other ones. If you look in the com_content admin directory, you will see a article.xml file in the models directory. These is the parameters for articles.
So, you create a JParameter object something like:
$params = new JParameter( $row->params, JPATH_COMPONENT_ADMINISTRATOR.DS.'models'.DS.'example.xml' );
And then: echo $params->render();
Ian
Help test my Component XML Generator Tool!
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1997/Itemid,35/
All feedback appreciated!
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1997/Itemid,35/
All feedback appreciated!
