<![CDATA[ Articles & Tag Chunks - My Forums]]> https://forums.modx.com/thread/?thread=74749 <![CDATA[Re: Articles & Tag Chunks]]> https://forums.modx.com/thread/74749/articles-tag-chunks#dis-post-564033
public function getTagListerCall($placeholderPrefix = '') {
  $settings = $this->getContainerSettings();
  $output = '[[tagLister?
      &tpl=`'.$this->xpdo->getOption('tplTagRow',$settings,'tag').'`
      &tv=`articlestags`
      &parents=`'.$this->get('id').'`
      &tvDelimiter=`,`
      &useTagFurl=`'.$this->xpdo->getOption('friendly_urls', null, false). '`
      &limit=`'.$this->xpdo->getOption('tagsLimit',$settings,10).'`
      &cls=`'.$this->xpdo->getOption('tagsCls',$settings,'tl-tag').'`
      &altCls=`'.$this->xpdo->getOption('tagsAltCls',$settings,'tl-tag-alt').'`
      &target=`'.$this->get('id').'`
  ]]';
$this->xpdo->setPlaceholder($placeholderPrefix.'tags',$output);
return $output;
    }


The getOption() call gets the TplTagRow from the settings. Via setPlaceholder, the whole taglister tag replaces the
[[+tags]] placeholder with the tpl property set to the name of the custom tag chunk.

The default chunk is in core/components/taglister/elements/chunks/tag.chunk.tpl. It's not in the Elements tree as far as I can tell.

The default chunk is:

<li class="[[+cls]]"><a href="[[+url]]">[[+tag]]</a> ([[+count]])</li>


Here's what I'd suggest trying. Create a chunk called myTagRowTpl with this code:

<li class="[[+cls]]"><a href="[[+url]]">[[+tag]]</a> XXX ([[+count]])</li>

Put myTagRowTpl in that advanced setting (in place of "tag"). Clear the site cache (you may also need to clear your browser cache). See if XXX shows up in the tag listing. If it doesn't, that setting is truly ignored. If it does, it's used, and you can modify myTagRowTpl to fit your needs.]]>
BobRay Feb 11, 2019, 04:55 AM https://forums.modx.com/thread/74749/articles-tag-chunks#dis-post-564033
<![CDATA[Re: Articles & Tag Chunks]]> https://forums.modx.com/thread/74749/articles-tag-chunks#dis-post-564027 I just have installed Articles on MODX 2.7.0 and there is still no tag chunk !]]> Spheerys Feb 10, 2019, 08:19 PM https://forums.modx.com/thread/74749/articles-tag-chunks#dis-post-564027 <![CDATA[Re: Articles & Tag Chunks]]> https://forums.modx.com/thread/74749/articles-tag-chunks#dis-post-429905
I create the chunk but it still uses the default.]]>
omega ridley Jul 13, 2012, 07:58 PM https://forums.modx.com/thread/74749/articles-tag-chunks#dis-post-429905
<![CDATA[Re: Articles & Tag Chunks]]> https://forums.modx.com/thread/74749/articles-tag-chunks#dis-post-429301 Everettg_99 Jul 08, 2012, 10:56 PM https://forums.modx.com/thread/74749/articles-tag-chunks#dis-post-429301 <![CDATA[Re: Articles & Tag Chunks]]> https://forums.modx.com/thread/74749/articles-tag-chunks#dis-post-414782 tomahl Mar 05, 2012, 08:18 AM https://forums.modx.com/thread/74749/articles-tag-chunks#dis-post-414782 <![CDATA[Articles & Tag Chunks]]> https://forums.modx.com/thread/74749/articles-tag-chunks#dis-post-414558
Under Advanced Settings/Tagging there is this field called "Tag Listing Chunk", where you can set your own custom chunk. I've tried that and it doesn't work. Output is still the default one. Is this feature broken or have I got this all wrong?

Help appreciated]]>
tomahl Mar 03, 2012, 07:09 AM https://forums.modx.com/thread/74749/articles-tag-chunks#dis-post-414558