[geeklog-cvs] geeklog: Autotags can now be used in templates when an article i...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Thu Mar 1 18:30:30 EST 2012
changeset 8500:6eb91200d02b
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/6eb91200d02b
user: Tom <websitemaster at cogeco.net>
date: Thu Mar 01 18:29:23 2012 -0500
description:
Autotags can now be used in templates when an article is rendered (now includes article.thtml)
diffstat:
public_html/article.php | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 17b840fdaa1f -r 6eb91200d02b public_html/article.php
--- a/public_html/article.php Thu Mar 01 18:21:48 2012 -0500
+++ b/public_html/article.php Thu Mar 01 18:29:23 2012 -0500
@@ -292,7 +292,9 @@
$story_template = COM_newTemplate($_CONF['path_layout'] . 'article');
$story_template->set_file('article','article.thtml');
-
+
+ $story_template->postprocess_fn = 'PLG_replaceTags';
+
$story_template->set_var('story_id', $story->getSid());
$story_template->set_var('story_title', $pagetitle);
$story_options = array ();
More information about the geeklog-cvs
mailing list