Search
Other Articles Anywhere questions
Forum

Force Content Triggers (Only enable only on specific places and usergroups)

Collin Lafrance's Avatar Collin Lafrance
Hello, I want to know if there is a way to enable content triggers only for specific pages and usergroups.

IF I have the global setting Disabled, what should I add to the {Articles} tags to enable it on that specific tag and for a specific usergroup only?

Thank you.
Peter van Westen's Avatar Peter van Westen ADMIN
The setting does not work per usergroup. It is either on or off.

You can override that setting on the [article] data tag using:
[article content_triggers="true"]

You could use Conditional Content to output the tag with or without that conditionally based on the usergroup.

Something like:
{article ...}

{show usergrouplevels="Registered"}
   [article content_triggers="true"]
{show-else}
   [article]
{/show}

{/article}
Please post a rating at the Joomla! Extensions Directory
Collin Lafrance's Avatar Collin Lafrance
Hi Peter,

Old topic here but revisiting it again as it still has never worked for me.

If I have the main plugin settings Content Triggers turned off, they don't show in the display results. If I have it turned on they show.

If I have it disabled, but then use your content_triggers="true" in my article statements, it has no effect. Same if I have it enabled and do content_triggers="false", they still show up with no effect.

Any ideas? Really would like it to work as some places we want them to show and others we don't. Right now I have it displaying everywhere which is clearly a hit on render speed.
Peter van Westen's Avatar Peter van Westen ADMIN
Can you reproduce this with a simple article without using the Conditional Content tags in there, as this might be down to caching...
Please post a rating at the Joomla! Extensions Directory
Collin Lafrance's Avatar Collin Lafrance
Yes I can. I am just doing it on a basic Articles Anywhere statement and it has no effect.
Peter van Westen's Avatar Peter van Westen ADMIN
Can you give me (super) admin and (s)ftp access so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Please post a rating at the Joomla! Extensions Directory
Collin Lafrance's Avatar Collin Lafrance
Hi Peter. I have attached the necessary information for you in the conf tab. Thank you.

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Well, you are using the content_triggers attribute on the main {articles} tag. That is not how you can/should use it.
You can only use it on the main [article] data tag.
Please post a rating at the Joomla! Extensions Directory
Collin Lafrance's Avatar Collin Lafrance
I see. So in other words, it can only be used to display a single article, not multiple? Sorry I don't think I'm understanding.
Collin Lafrance's Avatar Collin Lafrance
Do you mean do it like this?
{articles category="ACVA" ordering="title DESC"}[link][title][/link][content_triggers="false"]<br />
{/articles}
Peter van Westen's Avatar Peter van Westen ADMIN
No, the [article] (or [layout]) data tag. So like:
{articles category="ACVA" ordering="title DESC" content_triggers="false"}
[article force_content_triggers="true"] <== here
{/articles}

The content triggers only have an effect on the full page layout. Not on any other data tags.
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
In your example you are only outputting these data tags for the articles:
[link][title][/link]
The "Content Triggers" have no effect on that output. And the setting makes no difference.
Please post a rating at the Joomla! Extensions Directory
Collin Lafrance's Avatar Collin Lafrance
Thank you Peter. This was helpful and I have it working as intended now. Thank you.
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription