Page 1 of 1
Extension Builder - code after <body> and before </body> tag
Posted: Tue Jul 17, 2012 10:50 pm
by r3za
Hello Support and everyone,
I am trying to build a extension with extention builder and I am wondering if there is ability to add a piece of code right after <body> and right before </body>. Basically i need to wrap the whole code from <body> to </body>.
I understand i can do this by adding a html extension to the page but it would be great if you could add this function to the extension builder or guide me to the best way.
thanks
Reza
Re: Extension Builder - code after <body> and before </body>
Posted: Wed Jul 18, 2012 12:07 am
by BaconFries
Cant you use the Between body in the extension builder?
body.jpg
Re: Extension Builder - code after <body> and before </body>
Posted: Wed Jul 18, 2012 12:44 am
by r3za
Thanks for response. the "BETWEEN BODY" it does not exactly do the job. i think extension builder needs two more tabs e.g. Right after body and Righ before body
i need exactly after <body> tag and exactly before</body> so i can wrap all wysiwygwebbuilder code with my own tag.
please se below example:
<html>
<body>
my tag or my code here
wysiwygwebbuilder code here
wysiwygwebbuilder code here
wysiwygwebbuilder code here
wysiwygwebbuilder code here
wysiwygwebbuilder code here
wysiwygwebbuilder code here
wysiwygwebbuilder code here
my tag or my code here
</body>
</html>
as mentioned earlier. we have this option under HML extension as you can see below:

Re: Extension Builder - code after <body> and before </body>
Posted: Wed Jul 18, 2012 12:52 am
by BaconFries
That is what the extension builder does I have used this for many extensions that require the code to be placed there.
Re: Extension Builder - code after <body> and before </body>
Posted: Wed Jul 18, 2012 1:06 am
by r3za
just tested again, it just does add only at one place which is the end of the code. i need also after <body> tag.
Re: Extension Builder - code after <body> and before </body>
Posted: Wed Jul 18, 2012 1:27 am
by BaconFries
@r3za it doesnt or shouldnt really matter aslong as it is contained within the <body></body ...meaning it doesnt need to be as below...I am also sure Support will verify this as this has also been questioned before when using the Page HTML After<body> Before</before> it works the same what ever you use aslong as it is containe within <body></body>
<body>
my tag or my code here
wysiwygwebbuilder code here
wysiwygwebbuilder code here
wysiwygwebbuilder code here
wysiwygwebbuilder code here
wysiwygwebbuilder code here
wysiwygwebbuilder code here
wysiwygwebbuilder code here
my tag or my code here
</body>
Re: Extension Builder - code after <body> and before </body>
Posted: Wed Jul 18, 2012 11:43 am
by Pablo
Why not use jQuery to insert the code wherever you want?
That will be a lot less work then to complete redesign the software to make this possible...