Search
Other Articles Field questions
Forum

Protecting Articles Anywhere Syntax

Andrea Malalana's Avatar Andrea Malalana
Hello,

Inside an Articles Field custom layout, I have a code similar to this:
{article [id]}
....
<h3 class="contentheading"><a href="[url]">[title]</a></h3>
...
<div class="property-type">[property custom_html="[title]"]</div>
....
{/article}

Inside the h3 I'm outputting the title of the current article in the Articles Field loop.

But inside the property-type div, I'm embedding another Articles Field and passing it a custom layout override as well. So [title] should output the title of [property].

But instead, it outputs the title of the current article in the Articles Field loop in both occurrences.

In short, I guess the Articles Anywhere syntax should be protected / executed first.

It used to work correctly in Joomla 3.

If you need more clarification, let me know. Thanks!
Peter van Westen's Avatar Peter van Westen ADMIN
First off, try this:
{article id="[id]"}
Please post a rating at the Joomla! Extensions Directory
Andrea Malalana's Avatar Andrea Malalana
Didn't make a difference 🙁
Peter van Westen's Avatar Peter van Westen ADMIN
Using this (nesting a tag inside the custom_html value of another tag) works fine when placed in an article.
I'll have to dig into this when placing this in an Articles Field template.

Essentially you are nesting an Articles Field layout (custom_html) inside Articles Anywhere inside Articles Field...
Please post a rating at the Joomla! Extensions Directory
Andrea Malalana's Avatar Andrea Malalana
Essentially you are nesting an Articles Field layout (custom_html) inside Articles Anywhere inside Articles Field...
Yup.... I know, crazy... 😁
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
Andrea Malalana's Avatar Andrea Malalana
Awesome, it works 🙂
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription