Go Back   Mosets Community > Mosets Tree 3.x > Discussions, Troubleshooting & Problems

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-14-2015, 08:21 PM
peterwalker peterwalker is offline
Mosets'd
 
Join Date: Nov 2013
Posts: 53
Default Need to display date fields on frontend add listing form

I have created a special template that must show the fields for Created Date, Start Publishing and Finish Publishing, plus META Description and META Keywords in the frontend Add Listing form.

How can this be done?

I have reviewed page_addlisting.tpl.php and tried to use field coding from the admin files but to no avail.
Reply With Quote
  #2  
Old 08-16-2015, 03:14 AM
peterwalker peterwalker is offline
Mosets'd
 
Join Date: Nov 2013
Posts: 53
Default

This worked. Added to page_addlisting.tpl.php
Code:
<?php echo JHtml::_(
	'calendar',
	$this->link->publish_down,
	'publish_down',
	'publish_down',
	'%Y-%m-%d %H:%M:%S',
	array(
		'class'=>'input-medium calendar',
		'size'=>'25',
		'maxlength'=>'45'
		)
	);
?>
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with frontend add listing form - 1054 ERROR jonaszeierzeischgm Discussions, Troubleshooting & Problems 1 12-04-2013 02:40 PM


All times are GMT +8. The time now is 08:49 PM.

Copyright © 2005-2010 Mosets Consulting

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.