To Put A Shortcode In A Text Addon. - Question | JoomShaper
🎃 Halloween Sale is Live! Get 35% OFF on all plans. Sale ends soon! Get Offer

To Put A Shortcode In A Text Addon.

H

HDcms

SP Page Builder 4 years ago

Hello, I need to put a shortcode in a text addon. This addon works well in a joomla article and the developer Tassos told me that I had to put "onPrepare" to get the rendering. In the override of a joomla article, I put <?\php echo \JHtml::_('content.prepare', '{convertforms 2}'); ?> but in this text addon, how to make a form appear by putting this shortcode: {convertforms 2} ? Regards

0
7 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #48887

BTW

I published unoffcial Shortcode addon here:

https://www.joomshaper.com/forum/question/7823

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 years ago #15544

Hi, the only working method was described here:

https://www.joomshaper.com/documentation/sp-page-builder/sp-page-builder-3/how-to-tips

tip named "How to use shortcodes"

0
H
HDcms
Accepted Answer
4 years ago #15655

HI, Thank you for the answer. I created the module, put prepare content and I inserted it in the text part of the text addon result, the code is displayed in the html page https://pic.infini.fr/gallery#3jToVVeA/8OwuOgvR.png https://pic.infini.fr/6KSNrvNR/NRJF48g0.png

It works if I use a module addon but the rendering is not so good! regards

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 years ago #15668
  1. Your img links don't work now. Anyway, this is the only method that sometimes works.
  2. If we talk about this same extension Convert Forms (tassos.gr) - just use MODULE from it, not shortcode! In PRO version there is.

foto_6101_2021.png

0
Pavel
Pavel
Accepted Answer
4 years ago #15671

Hi. Why do not you use convertforms in the form of a module? Publish Joomla Module Addon and select ConvertForms Module there.

0
H
HDcms
Accepted Answer
4 years ago #15751

HI, I initially preferred the solution with the shortcode in the text addon because it was more homogeneous graphically.

I used the convert forms module, a bit unpretty but it works. Thanks for your answers Regards

0
H
HDcms
Accepted Answer
3 years ago #49380

Hi Thanks

0