Username Password
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 )


       The assetId of the Post.


       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.
3yhkhoe: "

 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");

4arjan: "
Thanx Yung,

Changed that and tested. Updated the file above.

Kind regards,

PostById.tmpl PostById.tmpl
LinksNo Support Offered
Statistics Downloads: 2093
Views: 4137
Rating: 4
Updated: 10/19/2007
Keywords macros
NavigationBack to the Bazaar
© 2023 Plain Black Corporation | All Rights Reserved