plainblack.com
Username Password
search
Bookmark and Share

PostById macro

Templatable macro for displaying a Post. This macro can be used in SQL Report Templates that search through posts.

Tested in 7.4.8-stable/7.4.10-stable.

       process ( assetId, templateId )

       assetId

       The assetId of the Post.

       templateId

       The templateId of the template to use with this macro. It can be identical to what’s in the post_loop of
       the collaboration template.

System RequirementsPlease be advised: this contribution was tested with something older than WebGUI 7.5. When this contribution was uploaded there was no field for the author to fill out regarding it's requirements.
Comments
3yhkhoe: "
Arjan,

 This version of the PostById macro does not work with the current stable version of WebGUI. It works on version 7.3.x. To make it work for 7.4.x this line:

$var{"dateSubmitted"} = $post->get("dateSubmitted"); 

has to be replaced with this: 

$var{"dateSubmitted"} = $post->get("creationDate");

Yung 
"
4arjan: "
Thanx Yung,

Changed that and tested. Updated the file above.

Kind regards,

Arjan. 
"
DownloadPostById.pm.txt PostById.pm.txt
PostById.tmpl PostById.tmpl
LinksNo Support Offered
Statistics Downloads: 1270
Views: 3213
Rating: 4
Updated: 10/19/2007
Keywords macros
NavigationBack to the Bazaar
© 2018 Plain Black Corporation | All Rights Reserved