Output published date in Meta tag using render tag

108 views
Skip to first unread message

manikandan rajuiyer

unread,
Jun 9, 2011, 8:07:00 AM6/9/11
to RedDot CMS Users
Hi,

I want to put published date of the page in the page meta tag using
render tags?

<meta name="publisheddate" content=<<Published Date>> >

is there any way to get the current date using render tag so that when
ever the page is getting published published date gets added to the
meta tag?

Please let me know the syntax of the render tag to use if possible.

Thanks

Mani

Andreas Thumfart

unread,
Jun 9, 2011, 2:23:46 PM6/9/11
to reddot-c...@googlegroups.com
Hi,

I don't know of a render tag to do this, but you can use a preexecute code to write the current date into the tag while publishing.

emily stange

unread,
Jun 9, 2011, 4:08:24 PM6/9/11
to reddot-c...@googlegroups.com
Another option would be to use an Info type placeholder and select publication date/time.

-Emily


On Thu, Jun 9, 2011 at 2:23 PM, Andreas Thumfart <athu...@gmail.com> wrote:
Hi,

I don't know of a render tag to do this, but you can use a preexecute code to write the current date into the tag while publishing.


--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/reddot-cms-users/-/quWrn8-dbrkJ.

To post to this group, send email to reddot-c...@googlegroups.com.
To unsubscribe from this group, send email to reddot-cms-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.

markus giesen

unread,
Jul 4, 2011, 2:56:03 AM7/4/11
to RedDot CMS Users
I recommend to not add the publishing date.
This causes all pages to be published every time you run a full site
publish.
Which means your publishing will take forever, only for a date
change..

I'd suggest to add the page modification date instead.
This should be written inside a standard field, since info elements
which provide the date cause the above behavior when running a full
site publish.

Cheers,
Markus


On Jun 10, 5:08 am, emily stange <esta...@gmail.com> wrote:
> Another option would be to use an Info type placeholder and select
> publication date/time.
>
> -Emily
>
Reply all
Reply to author
Forward
0 new messages