• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: news browsecat by $node.PARAM
PostPosted: Mon Sep 19, 2016 9:02 am 
Offline
Forum Members
Forum Members

Joined: Wed Aug 31, 2016 1:30 pm
Posts: 48
Hey,

i`m manipulating the news module at the moment (filter- and sortfunctions will follow) and this easy trick helps to filter by the $node. values:

Code:
      .news_category_id (string) = 1
      .news_category_name (string) = General
      .parent_id (string) = -1
      .hierarchy (string) = 00001
      .item_order (string) = 1
      .long_name (string) = General
      .create_date (string) = 10:59:45
      .modified_date (string) = 10:59:45
      .index (integer) = 0
      .count (integer) = 0
      .prevdepth (integer) = 1
      .depth (integer) = 1
      .url (string) = http://xxx.de


Just make a simple browsecat template {browsecat-test} and add an if-condition:

Code:
{foreach from=$cats item=node}
{if $node.parent_id == 4}
<p><a href="{$node.url}" title="{$entry->title}">{$node.news_category_name}</a></p>
{/if}
{/foreach}


and call it
Code:
{news action="browsecat" browsecattemplate="browsecat-test"}
within your page.

Hope that helps anybody ,mfg


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
A2 Hosting