Wrong shrotcodes rendering position

How to fix ChronoForms shortcodes rendering in the wrong position.

Overview

The issue occurs because shortcodes are processed and output at the beginning of the page, disrupting the intended HTML structure.
Use the {view.output:view_name} or {fn.output:action_name} syntax to control placement. An upcoming update will remove the .output requirement for simpler use.

Answered
ChronoForms v8
wb wbuk 20d ago

Trying to make it work more like a Chronoconnectivity (with views and functions in a repo that can be called with shortcodes).

When we code it like:

<div class="top">

  Header

</div>

<div class="body">

  Body

  {view:input1}

  {view:input2}

 {view:javascript}

</div>

<div class="footer">

  Footer

</div>

{fn:some_php}

The rendered page looks like:

{view:input1}

{view:input2}

{view:javascript}

{fn:some_php}

Header

Body

Footer

The elements get called at the start of the page, instead of further down. IE if the javascript targets the "Body", it fails because it appears before the target "Body".

It is much easier and flexible to code in Chronoforms7 with the repository, can the same be done in Chronoforms 8?

Max_admin Max_admin 20d ago

Where do you place the code ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin Max_admin 19d ago
Answer

Hi wbuk

I have checked this, you can make it work the way you want now by using this syntax:

{view.output:view_name}
// or
{fn.output:action_name}

But I have removed the ".output" requirement in the next update.

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
wb wbuk 18d ago

Hi

Thank you

So just to clarify, you will be releasing an very minor update for CF7 in the new few weeks.

if we install that, we can then update to Joomla 6, and then have CF7 and CF8 installed on joomla 6 and begin migrating all CF 7 stuff to CF8 with ease and no rush.

Thank you so much, that is so good news for me and I would think for so many people.

Thank you again for supporting us Max, it is so much appreciated.

Max_admin Max_admin 18d ago

Hi wbuk

The fix here is about ChronoForms v8, this is the update which is supposed to be released this weekend.

What fixes do you need for v7 ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Post a Reply