Page 1 of 1

Add option

Posted: Fri Feb 12, 2021 4:33 pm
by crispy68
Hey Pablo,

Would it be possible to add a tab for: Inside <body> tag

I have a script for an extension I'm working on that requires this and currently I don't have a way of adding this into extension builder.

Re: Add option

Posted: Fri Feb 12, 2021 4:49 pm
by Pablo
I did consider this because I also needed it for the Parallax Tiles extension.
But the problem with this is that if you use multiple extensions, then it will duplicate the code inside the body tag.

Re: Add option

Posted: Fri Feb 12, 2021 4:57 pm
by BaconFries
Hi Ron if it is just a onload to be used between the <body onload....> then maybe the following would be of help see Pablo's and my reply.
https://www.wysiwygwebbuilder.com/forum ... 3&p=397892

Re: Add option

Posted: Fri Feb 12, 2021 5:01 pm
by crispy68
Is it possible to still add it but put a note about this situation?

I have had other situations with multiple extensions doubling the code so my work around was to create 2 parts to the extension (2 extensions so to speak): 1 that handles the code and you place it on the page only once and the 2nd part of the extension that does the rest and you use it multiple times on the page.

Otherwise, without it what is the workaround?

Re: Add option

Posted: Fri Feb 12, 2021 5:03 pm
by Pablo
My workaround was to make a note in the document that some code should be added manually.
For events you can use the workaround mentioned by BaconFries.

Re: Add option

Posted: Fri Feb 12, 2021 5:05 pm
by crispy68
I'll take a look at the code BF posted. I hope you can still consider adding it to Ext. Builder. I'm sure only advanced users of it would use it anyway if at all and I already have a workaround for it if it was made available. Maybe you can add it, send me a special copy of it and leave the normal one available for everyone else? :D