Search
Other Articles Anywhere questions
Forum

multiple articles tags with database not working correctly

Liam Hanks's Avatar Liam Hanks
Hi Peter,
you're going to get tired of me soon, I'm sure...

I've set up an article with the following (example):
{articles category="category_name_here" custom_field_1="custom_field_value" order="custom_field_2 ASC,custom_field_3 ASC"}
[custom_field_2] / [custom_field_3]
{/articles}

On its own, this works perfectly, however if I then add the following further down in the same article, the first set of {articles} tags filtering and custom field output stops working.
{articles ids="123,456,789" database="other_database_name"}
[title]
{/articles}

Removing the second set of {articles} tags restores the first set's functionality. Also changing the second {articles} tag to not reference an external database also restores the first tag's functionality, so I'm fairly sure that the problem lies with the database="" attribute on articles where another {articles} tag is present.

Sorry for all of the examples, but I wasn't sure how to just write this all out in a way that would make sense.

Thanks
Peter van Westen's Avatar Peter van Westen ADMIN
Hmmm, I can't really reproduce this issue.

What do you gett if you simplify things:
INTERNAL:
{articles ids="123,456,789"}- [title]
{/articles}

EXTERNAL:
{articles ids="123,456,789" database="other_database_name"}- [title]
{/articles}
Please post a rating at the Joomla! Extensions Directory
Liam Hanks's Avatar Liam Hanks
Yup, works fine with a list of IDs and the title tag, or with the title and custom fields tags for the output. But if I try to filter by category name and a custom field name, I get all of the articles in the category and no values for any custom field outputs. Again, removing the database from the second {article} makes the first one work correctly.
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Liam Hanks's Avatar Liam Hanks
Hi Peter,
the new development version works perfectly. Thanks!
Peter van Westen's Avatar Peter van Westen ADMIN
Great! 🙂
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription