WebGUI
      Click here to register.
      
irc://irc.freenode.net#webgui

iPhoneGuy: WebGUI is a pile of crap.
rizen: If WebGUI is such a pile of crap, why do you use it?
iPhoneGuy: Because it's the best pile of crap out there.

If this is what people who hate us are saying, imagine what people who love us will say. Come join us on IRC.

PostById macro

User: arjan
Date: 10/18/2007 5:43 pm
Views: 622
Rating: 12    Rate [
|
]

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.



Replies

Re: PostById macro
User: yhkhoe
Date: 10/19/2007 9:12 am
Rating: 2    Rate [
|
]
Status: Approved

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 


Re: PostById macro
User: arjan
Date: 10/19/2007 10:12 am
Rating: 5    Rate [
|
]
Status: Approved

Thanx Yung,

Changed that and tested. Updated the file above.

Kind regards,

Arjan. 


PreviousBackNext