You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)

Please post your question in the Forum and we will get back to you as soon as we can.

  Thursday, 12 May 2022
  9 Replies
  158 Visits
Hi,

I am using Regular Labs Article Anywhere in order to create some pages.
When I enter one off the AA code like :
{articles}
or
[Title]

It is automatically transformed into a shortcode entry and displayed as text and not rendered
https://i.postimg.cc/5tD5XKHd/screenshot-215.jpg

The "Protect Shortcode" is set to "Yes" in the default profile

What can I do in order to get the AA extension code working in my articles ?

I am using latest Joomla! 4.1.2 version and JCE 2.9.22 Pro (all other extensions are also up tot date)

It is strange that with Joomla 3.xx (latest version) and latest version of JCE too, I never had such a problem with AA coding ...

Thanks in advance for your help and advises,
Stéphane
one week ago
·
#111043
Accepted Answer
Good. It works in some situations, but the complexity of some shortcode examples makes it extremely difficult to make it stable for all, hence the "experimental" warning in the Protect Shortcode parameter description.

Just because you're not paranoid doesn't mean everybody isn't out to get you.

one week ago
·
#111032
If you click the toggle editor button (the little power button above the editor toolbar) to switch the editor off, before saving, what does the shortcode look like?

Just because you're not paranoid doesn't mean everybody isn't out to get you.

one week ago
·
#111036
Hello Ryan,

Have already done so, and no problem with the code execution...

But with JCE it is not possible... and this for any Regular Labs extension (Sourcer, Article Anywhere, ...)

Thanks for your help,
Stéphane
one week ago
·
#111037
It is automatically transformed into a shortcode entry and displayed as text and not rendered


This is done to protect the shortcode (so that it is not treated as text) and allow it to be edited. The code is not rendered in the editor, only when displayed int he front-end.

Just because you're not paranoid doesn't mean everybody isn't out to get you.

one week ago
·
#111038
It is automatically transformed into a shortcode entry and displayed as text and not rendered


This is done to protect the shortcode (so that it is not treated as text) and allow it to be edited. The code is not rendered in the editor, only when displayed int he front-end.

I do not agree with you, the code is not executed in the frontend...
Try to execute this code line and see how JCE modify's it...

<a href="https://formation.e-synergisud.fr/index.php/nos-formations/nos-formations-toutes/evenementsparannee/CODE/68" >Nos Prochaines Sessions ></a></p>

And CODE is :

{source}"opening php balise" echo date('Y');"close php balise"{/source}

Cannot enter php code into your editor here on the forum...
one week ago
·
#111039
If you click the toggle editor button (the little power button above the editor toolbar) to switch the editor off, before saving, what does the shortcode look like?

Does it look intact, or has it been changed by the editor?

Just because you're not paranoid doesn't mean everybody isn't out to get you.

one week ago
·
#111040
It is totally changed... I have to rewrite it each time I close JCE (top left button in editor pane)
one week ago
·
#111041
What is the result if you set Protect Shortcode to No?

Just because you're not paranoid doesn't mean everybody isn't out to get you.

one week ago
·
#111042
Sorry for the delay, I had a customer on the phone...

Great idea !!

removing the protection solved the problem !

Many thanks !
Stéphane
one week ago
·
#111043
Accepted Answer
Good. It works in some situations, but the complexity of some shortcode examples makes it extremely difficult to make it stable for all, hence the "experimental" warning in the Protect Shortcode parameter description.

Just because you're not paranoid doesn't mean everybody isn't out to get you.

steph38 selected the reply #111043 as the answer for this post — 1 week ago
  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!