Binders: posts

TODO:

 

/**
 * @param {array} $params 
 *                  $params['show'] What to show (e.g. category, related, tag, all)
 *                  $params['name'] Name of the part (e.g. content-main.html)
 *                  $params['assign_to'] Variable withing the template engine to which the content has to be assinged.
 *
 * 
 * # EXAMPLE 1
 *  
 * {posts assign_to="posts"}
 * {posts show="all" assign_to="posts"}
 * 
 * 
 *
 * # EXAMPLE 2
 * 
 * {posts show="category" name="news" assign_to="posts"}
 * 
 * 
 * # EXAMPLE 3
 * 
 * {posts show="related" size="3" post_id="{$post.ID}" assign_to="related"}
 * 
 *
 * # EXAMPLE 4
 * 
 * {posts show="tag" name="news" assign_to="tags"}
 * 
 * 
 */

 

Leave a Reply

Your email address will not be published. Required fields are marked *