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

  1. erwinds
  2. JCE Editor
  3. Saturday, 10 June 2017
hi,

Can I php code insert in a artikel:

<p> somelse tekst</p>
<?php echo "tekst" ?>
How can I this use?

mvg,

Erwin
Accepted Answer Pending Moderation
Joomla does not execute PHP code that has been inserted into content.

To insert PHP code into articles, I suggest you use an extension like Regular Labs Sourcerer - https://www.regularlabs.com/extensions/sourcerer
Just because you're not paranoid doesn't mean everybody isn't out to get you.
  1. more than a month ago
  2. JCE Editor
  3. # 1
Accepted Answer Pending Moderation
How can I put PHP code only for preview (as documentation), not for execute?
  1. more than a month ago
  2. JCE Editor
  3. # 2
Accepted Answer Pending Moderation
Hi / Ahoj,
If I may...
Use Sourcerer (Regular Labs) - to place PHP and any kind of HTML, CSS and JavaScript code right into your content, for example, articles.
  1. more than a month ago
  2. JCE Editor
  3. # 3
Accepted Answer Pending Moderation
A JCE plugin is available for inserting code to be formatted using the Prism library - https://prismjs.com/

You can download it here - https://github.com/widgetfactory/jce-editor-codesample

You will probably need to install the Prism plugin as well - https://github.com/widgetfactory/wf-prism
Just because you're not paranoid doesn't mean everybody isn't out to get you.
  1. more than a month ago
  2. JCE Editor
  3. # 4
Accepted Answer Pending Moderation
Thanks Ryan, that is right :)

Rudolf
  1. more than a month ago
  2. JCE Editor
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!