--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
Aloha again,
throw some code reading in the night I found out that it have to be w
default="now"
then it works perfectly.
I think someone should generate a wikipage where the possible XML values for the fields are listed, or?
regards
Sven
2012/5/10 Prasit Gebsaap <prasit....@gmail.com>
Hi,
Hi,
You should put the value in your model code, you can override getItem() to modify your data or preprocessForm() to modified your form or data.
You can use $form->setFieldAttribute($field, $name, $value) to acheive what you want.
On 10 May 2012 01:31, Sven Schultschik <svenschultschik@googlemail.com> wrote:
Aloha,
I'm using the new jform class and want to generate a calendar field. It works till the thing that the today date is not shown on loading. I've found $this->value == now in the code so I tried to use that but several ways I tried didn't work …
<field
type="calendar"
name="name"
id="name"
label="label"
required="true"
value="NOW">now</field>
Can someone point me to the missing thing?
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To post to this group, send an email to joomla-dev-general@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-general+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
--Prasit GebsaapNonthaburi, Thailand
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To post to this group, send an email to joomla-dev-general@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-general+unsub...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/t-_PEtDQe14J.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.