You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Radiant CMS: Dev
I couldn't find any info on the best way to generate the
disqus_identifier within Disqus' javascript embed. I'm a complete n00b
so please bear with me.
I think using the epoch timestamp of when the page was created makes
the most sense and I installed the Back Door extension allowing me to
put Ruby code directly into templates (so I could generated that
timestamp) but I'm still not clear on how to save that timestamp when
an article is created initially and then reference that saved
timestamp within the page (basic ActiveRecord stuff right?). Seems
like I need to make some DB changes (i.e. update the page model w/ a
new created_epoch_timestamp field and then reference that field within
the page?
Am I over-engineering/thinking this? Is there an easier way to
integrate w/ Disqus? Thanks in advance for the help :P
Benny Degezelle
unread,
Feb 6, 2011, 3:39:41 PM2/6/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Radiant CMS: Dev
there's no need for all that :)
pages have a 'created_at', 'published_at' and 'updated_at' timestamp
by default.
you can easily show these with a radius tag;
<r:date format="%s" />
which returns the time the current page was published or created on in
strftime fashion.
for more info, click 'Available Tags' on the page edit screen, and
type 'r:date'
Fima Leshinsky
unread,
Feb 6, 2011, 4:03:34 PM2/6/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to radiant...@googlegroups.com, Radiant CMS: Dev
Thanks for replying! Exactly what I was looking for :)