Articles Anywhere -> Output of Custom MediaJCE...

Search
Other Bug Reports questions
Forum

Articles Anywhere -> Output of Custom MediaJCE Field in special context

Marc Pradel's Avatar Marc Pradel
Hi,

when I try to output a subform via foreach the output of the mediajce field with an image goes like this:

Editor-Syntax:
<img src="[row:testi-bild:value]" alt="[row:testi-titel:value]" width="150" class="el-image uk-border-circle" />

HTML-Output in Browser:
<img src="/%5Brow:testi-bild:value%5D" alt="Norbert Merz" width="150" class="el-image uk-border-circle">

Any idea why the output doesn't work inside "" when using a mediajce field. Using [row:testi-bild:value] outside of the "" show the right value -> images/testimonials/norbert-merz.jpg

Regards
Marc
Peter van Westen's Avatar Peter van Westen ADMIN
This is something done by the editor. It probably replaces the [..] characters inside the src attribute on save.
If not, it might be caused by the Joomla SEF plugin being triggered before Articles Anywhere.

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
Marc Pradel's Avatar Marc Pradel
After trying a custom layout I found out that the mediajce field outputs the rawvalue with space around the value

Editor-Syntax:
[row:testi-bild:value layout="rendermediajce"]

HTML-Output in Browser:
" images/testimonials/norbert-merz.jpg "

I don't know how to get rid of these spaces. I think the spaces are the problem?!
Peter van Westen's Avatar Peter van Westen ADMIN
If you use [row:testi-bild:value] it should output the raw value. It should not use the layout...

The space is not the problem. The '%5B' is an URL encoded version of the '[' character.

Did you try changing the system plugin ordering?
The SEF plugin(s) should be ordered AFTER Articles Anywhere.
Please post a rating at the Joomla! Extensions Directory
Marc Pradel's Avatar Marc Pradel
Yes, I did. The Articles Anywhere is in the first place of the system plugins and the sef at the last.

www.dropbox.com/s/9em36385r8lfs4c/screen...17-17_21_37.png?dl=0

Also if you are right

Editor Syntax
alt="[row:testi-titel:value]"

should also not, but it is

HTML-Output
alt="Norbert Merz"
Peter van Westen's Avatar Peter van Westen ADMIN
So where are you placing the {article} tags and those data tags?
In a normal article?

And what does the code look like after saving that item (article) in the HTML view of the editor?
Please post a rating at the Joomla! Extensions Directory
Marc Pradel's Avatar Marc Pradel
Thank you for your question! 🙂

It works after activated the 'Inhalte vorbereiten' in the site module options.

Thanks!!!
Peter van Westen's Avatar Peter van Westen ADMIN
Ah, in a module. Yes, the 'Prepare Content' can solve a lot of headaches when working with plugins.
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in