We’re with you. JoomShaper is offering a 20% Discount on all plans due to the impact of COVID-19.

Support Online : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Custom Code Front End Editor

Featured Lock Resolved Issue
I am using Sourcerer plugin in order to add some custom code in a module by wrapping the syntax in {source} tags.

I am displaying this module on my home page, it all works well and I can see the result of the code (some tweets I using the Twitter API).

When I edit the home page using sppb front end editor I can see the full contents of the module, all the code, many lines of my custom code.

Is there any way I can simply display the output of the code, rather than the code itself? It can be rather annoying having to scroll way down past these lines of code in order to edit certain parts of the page

I have set the module to 'prepare content' but this makes no difference.

7 Answers

Paul Frankowski - Staff

2 weeks ago #Permalink
Hi,
as you may read in SP PB documentation in How to tips > we recommend using different methods for using custom code inside SPPB, for sure not Sourcerer plugin. However, it is a very good solution.

Use below module instead > put your custom code there > use Module addon to publish.

Attachments (1)

  • mod_hd-anycode3_j3.zip 1.7 KB

johnny

2 weeks ago #Permalink
Thanks for this and can I ask why you say for sure not Sourcerer?

Paul Frankowski - Staff

2 weeks ago #Permalink
Because it may not work properly inside SPPB. And that's why I cannot give you any warranty.

johnny

2 weeks ago #Permalink
Because it may not work properly inside SPPB. And that's why I cannot give you any warranty.


Thanks, so you can give a warranty with hd-anycode3?

Paul Frankowski - Staff

2 weeks ago #Permalink
Please read whole tip in the documentation, I have written there

johnny

2 weeks ago #Permalink
ok thanks


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

126

Templates

333264

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us