Search
Other Snippets questions
Forum

Snippets in backend

Thomas Thrane's Avatar Thomas Thrane
Hi
Is there a way to use snippets ind the backend?
I'm using a snippet to generate af PDF-template for ConvertForms and I use it on 26 forms.
When updating the backend in ConvertForms, it fails, since Snippets aren't working there.

Regards
Thomas
Peter van Westen's Avatar Peter van Westen ADMIN
No, it is not possible to use Snippets in the administrator side.
Please post a rating at the Joomla! Extensions Directory
Thomas Thrane's Avatar Thomas Thrane
Bummer for me 🙁
Thanks for your quick reply!
Thomas Thrane's Avatar Thomas Thrane
A followup ...

I tried ReReplacer in this case.
Seems to almost do the trick, but when I enter the ConvertForms I use it in, the tag I have made has been replaced with the whole replace string.
Is this the way it works?
I assumed the tag just stayed as a tag?
This is the case on several dropdown-fields I also use ReReplacer in.

So I can't figure out if this is af CF issue og RR issue?

Kind regards
Thomas
Peter van Westen's Avatar Peter van Westen ADMIN
ReReplacer will replace the search in the areas you tell it to, except for in the ReReplacer edit forms.

So not sure what you expect here.
So you want to use a tag, that gets replaced with something else in the admin side... but you don't want it replaced in the admin side???
Please post a rating at the Joomla! Extensions Directory
Thomas Thrane's Avatar Thomas Thrane
Sorry, I might not at have explained it so well.

As it is now in my ConvertForm I have a dropdown - in this in the backend some fields have this this RR tag: {Pris_Kasse}
Which stays this way when I save, exit and enter again.

In a textarea in the same form I have entered this RR tag: {RR_bestilling}, but in this case, when I save, it gets replaced with the whole string from RR.

So they behave different.

I was hoping to be able to have 1 RR tag I could use in 26 forms, so changes in RR would reflect in ConvertForms.
But since the replace happens right away, this isn't possible.

Makes more sense now? I hope!
Peter van Westen's Avatar Peter van Westen ADMIN
If the "Enable in edit forms" option is off in the ReReplacer item settings, then it shouldn't replace in edit form.
But it can be that ReReplacer doesn't recognize the ConvertForm pages as edit forms.
Please post a rating at the Joomla! Extensions Directory
Thomas Thrane's Avatar Thomas Thrane
That option has been set to OFF from the start.
Peter van Westen's Avatar Peter van Westen ADMIN
Can you give me (super) admin and (s)ftp access so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Please post a rating at the Joomla! Extensions Directory
Thomas Thrane's Avatar Thomas Thrane
Of course!

You can use this ConvertForms: Bestilling Standard Aabenraa (15071) (ID=9)
Go to Behavior > PDF Form Submission.
In the field PDF Template is where I place the RR tag: {ReReplacer-BestillingStandard}.
On save and close the tag is replaced with its content.

Regards
Thomas

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Thomas Thrane's Avatar Thomas Thrane
Seems to work - thank you so much!
Peter van Westen's Avatar Peter van Westen ADMIN
Ok, great 🙂
The fix will be included in the next release.
Please post a rating at the Joomla! Extensions Directory
Thomas Thrane's Avatar Thomas Thrane
Hold on, just tested the actual form and when I submit it, all I get in the PDF is the string:
{ReReplacer-BestillingStandard}

RR or CF issue?
Peter van Westen's Avatar Peter van Westen ADMIN
That would be a ConvertForms issue.

ConvertForms probably does not pass the contents through the Joomla plugins before generating the PDF. That probably means you cannot use any plugin tags in the PDF texts.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription