Search
Other Articles Anywhere questions
Forum

Current Author

Michael Scruse's Avatar Michael Scruse
I'm trying to use Articles Anywhere to show a list of articles but the author of the current page. Note that these are public so not linked to a currently logged in user.

Here is my test page code.
<p>test</p>
<p>&nbsp;</p>
<p>{articles category="Products" author-id="current"}</p>
<h3>[link][title][/link]</h3>
<p>{/articles}</p>

I'm expecting 2 articles to be listed from the Products category. There are 3 articles in this category but only 2 belong to the author of the current article.

This image shows my articles and their authors: ibb.co/d2GPGTH

This image shows the output: ibb.co/9GhGXnJ

As you can see from the first image the "Not my product" article should not be output.

I also did a test where I removed the category condition from the Articles Anywhere code and it returned all articles in the site.

Any ideas?
Peter van Westen's Avatar Peter van Westen ADMIN
Try this instead:
created_by="current"
Please post a rating at the Joomla! Extensions Directory
Michael Scruse's Avatar Michael Scruse
Thanks Peter, that works perfectly.
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription