I told you I was posting without access to the code and so some things may not be accurate. The function should be called CUSTOM_templatesetvars. Also the $type will be "featuredstorytext", "archivestorytext" or "storytext" and not "article" as I presumed.
You need to change the strings 'the right topic' and 'pageid' to the actual values needed for your install.
I have access to the Geeklog sources now so here is an updated function. But you still have to fill in a few details: the topic_id and the staticpage_id
it is works but there some problems:
1) It displays the contents of the entire page, but I need to display only the content of static page
2) how to make this code work in article.thtml? because when I put {extracontent} in storytext.thtml it is displaying in preview of each story, but I need only in full text of story
thanks
I told you I was posting without access to the code and so some things may not be accurate. The function should be called CUSTOM_templatesetvars. Also the $type will be "featuredstorytext", "archivestorytext" or "storytext" and not "article" as I presumed.
You need to change the strings 'the right topic' and 'pageid' to the actual values needed for your install.
I have access to the Geeklog sources now so here is an updated function. But you still have to fill in a few details: the topic_id and the staticpage_id
AND you need to put the {extracontent} into the storytext.thtml (and featuredstorytext.thtml and archivestorytext.thtml). That will ensure it is displayed with every appearance of the story.
1) add a second parameter to SP_returnStaticpage('pageid', 'autotag'. I think that will work but I'm not 100% sure.
2) Put {extracontent} in the article.thtml and change the 2nd line of the function back to
if ( $type != 'article' ) return;
Apparently I'm hallucinating. I thought there was a call to PLG_templatesetvars() in article.php. There isn't. You could add one, but then you would have to add it everytime you upgrade. You could put in a feature request and hope they add it. Or we can go back to the older code and add another check:
Here you have to add {extracontent} back into featuredstorytext.thtml and storytext.thtml and archivestorytext.thtml. In theory, the "story_display" value is set to article when the story is rendered from article.php. But again, I'm not 100% sure.
I think you need to add 'autotag' as shown here, but again, I'm away from the code: