Search
Other Articles Anywhere questions
Forum

Not working anymore after migration to Joomla 4

Thomas Venugopal's Avatar Thomas Venugopal
Hello, why is this not working anymore?
{articles category="205"}
	{if input:redirect=id}
            <div class="uk-alert-warning uk-margin-medium uk-margin-medium-top uk-width-1-1 uk-width-1-2@m uk-margin-auto uk-text-center" uk-alert>
              <a class="uk-alert-close" uk-close></a>
              <p>[text]</p>
            </div>
		{else}
	{/if}
{/articles}

I can't see that this code is affected by the beraking changes which are described in the docs. Only difference: This code is injected by a rereplacer tag. In J3 this works fine.
Peter van Westen's Avatar Peter van Westen ADMIN
Can you explain what exactly isn't working.
Please post a rating at the Joomla! Extensions Directory
Thomas Venugopal's Avatar Thomas Venugopal
The article tag isn’t converted I just see the code. But on the same page are other article tags which work fine.
Peter van Westen's Avatar Peter van Westen ADMIN
It is probably due to the system plugin ordering. Try changing the ordering of the plugins in question.
See: regularlabs.com/blog/242-plugin-order-is-important
Please post a rating at the Joomla! Extensions Directory
Thomas Venugopal's Avatar Thomas Venugopal
That did help. Thank you!
Thomas Venugopal's Avatar Thomas Venugopal
Hi again, I tried the migration process again and (parts) stopped working even after setting up the plugin order.
{articles category="265,272,280" id="input:hl" empty="Fallback"}[text]{/articles}

Shows me ALL articles of all three categories if no value for hl is provided. If a value is provided, only that article is shown.
{articles category="267" separator="&nbsp;&nbsp;" order="id"}<div>{if input:ba=id}
			<span class="uk-badge" style="background:#3dc372">[id]</span>
		{else}
      	<span class="uk-badge">[id]</span>
	{/if}&nbsp;&nbsp;<a id="lp-badge-[id]" class="lp-hero-badge" href="#" style="transform: rotate(6deg) translate(0,0%)!important;">[badge]</a></div>
        {/articles}

Doesn't show me the image from the custom field. But images from intro and full image fields work.

It seems that during the migration process still some things don't work quite well.
Peter van Westen's Avatar Peter van Westen ADMIN
Regarding the first thing:
Please try the latest development version from:
regularlabs.com/development-releases

Regarding the second: not sure what you mean. And please create a new thread for a different issue. Not easy to keep replying to multiple issues in every reply.
Please post a rating at the Joomla! Extensions Directory
Thomas Venugopal's Avatar Thomas Venugopal
This is one topic. The logic isn't working after migration. Will try the dev version.
Peter van Westen's Avatar Peter van Westen ADMIN
One is about the id="input:hl" Filter not working.

The other is something about the custom field image Data Tag not working.
Please post a rating at the Joomla! Extensions Directory
Thomas Venugopal's Avatar Thomas Venugopal
The dev version fixed the syntax problem. But now the images are broken:

This code:
<div id="lp-hero" class="uk-tile uk-padding-large uk-background-cover uk-flex uk-flex-middle" sources="srcset: {articles category="268,273" id="input:hr" empty="images/skl/heros/tj-hero-standard-desktop.jpg"}[image-fulltext-url]{/articles}; media: (min-width: 640px)" data-src="{articles category="268,273" id="input:hr" empty="images/skl/heros/tj-hero-standard-mobile.jpg"}[image-intro-url]{/articles}" uk-img>

returns:
<div id="lp-hero" class="uk-tile uk-padding-large uk-background-cover uk-flex uk-flex-middle" sources="srcset: [image-fulltext-url]; media: (min-width: 640px)" data-src="/landing_j4/%5Bimage-intro-url%5D" uk-img>
Peter van Westen's Avatar Peter van Westen ADMIN
Also expected behaviour. There is a difference in syntax for Joomla 4.
See: docs4.regularlabs.com/articlesanywhere/g...new-data-type-prefix
and: docs4.regularlabs.com/articlesanywhere/data-tags/images
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