Hi all,
i'm trying to figure out how to pre-populate feilds in a mosaic with the current data & time & user when the tile is created.
currently have:
Obviously this just pulls in the date/time the page was last saved and the user who saved it.
What I need is the data, time & user when the '+ Note' add tile button is clicked.
Have tried to see if dyanamic option could be used, but can't see what to make dynamic for a text box.
Any pointers would be greatly appreciated,
thanks,
gwil
i'm trying to figure out how to pre-populate feilds in a mosaic with the current data & time & user when the tile is created.
currently have:
- Code: Select all
<!-- NOTES -->
<cms:set nice_edit_btns='bold,italic,underline,left,center,right,justify,ol,ul,removeformat,indent,outdent,link,unlink,forecolor,bgcolor,image' />
<cms:editable name='grp_notes' label='Notes' type='group'/>
<cms:mosaic name='notes' label=' ' group='grp_notes'>
<cms:tile name='text' label='Note'>
<cms:config_list_view>
<cms:field 'k_content' >
<div class="mosaic-list">
<div class="row">
<div class="mos_item mos_item--note_date"><cms:show note_date />, </div><!--
--><div class="mos_item mos_item--note_time"><cms:show note_time />, </div><!--
--><div class="mos_item mos_item--note_auth"><cms:show note_auth /></div><!--
--><div class="mos_item mos_item--note_text"><cms:show note_text /></div>
</div>
</div>
</cms:field>
</cms:config_list_view>
<cms:editable name='note_date' type='text' label='created on' width='140' ><cms:date k_page_modification_date gmt='1'/></cms:editable>
<cms:editable name='note_time' type='text' label='at' width='80' ><cms:date k_page_modification_date gmt='1' format='%X'/></cms:editable>
<cms:editable name='note_auth' type='text' label='by' width='140' ><cms:show k_user_name /></cms:editable>
<cms:editable name='note_text' type='nicedit' label='note' height='600' maxheight='900' buttons="<cms:show nice_edit_btns />" ><cms:dump_all /></cms:editable>
</cms:tile>
</cms:mosaic>
Obviously this just pulls in the date/time the page was last saved and the user who saved it.
What I need is the data, time & user when the '+ Note' add tile button is clicked.
Have tried to see if dyanamic option could be used, but can't see what to make dynamic for a text box.
Any pointers would be greatly appreciated,
thanks,
gwil