Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
Code generation malfunction?

rsifontes
Registered User
Quote
2022-01-14 14:13:47

Hi,
I have a page that uses a masterpage (I call it: "child" page): when I add "additional attributes in body", it is saved, but the code is not generated when I publish the site (the code that contains the masterpage is kept).

Example:
the masterpage contains in "additional attributes in body":
on load="fpop_modal('Main-Modal-Container',0);fcheckCookies();"


but, in the "child" page, I need it to contain the code:
on load="fcheckCookies();fanotherFunctionRelatedtoChildPage();"


But when generating the site, the code that is in the masterpage is always generated, without taking into account the code entered in the "child" page.

This only happens with additional attributes in body, I have tried the other options (additional code in header, code before header and css styles) and they work fine, generating the corresponding code in the "child" page.

I want to express my gratitude to the creators of Rocket Cake, it is a very useful tool, the more I use it the more I like it!


niko
Moderator
Quote
2022-01-16 11:03:33

Yes, it is like this right now, the additional attributes are taken from the masterpage only. If you have set both, difficult to say which would be the right element to take. Some people need the one from the masterpage, some from the child page. Maybe I could introduce an option for this in an upcoming release.


rsifontes
Registered User
Quote
2022-01-18 17:37:34

Thank you Nico for your answer. For now, I have been able to solve using on the master page "additional attributes in body":

on load="onAfterLoadingPage();"



Then, I define the onAfterLoadingPage() function on the child pages where I need it.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "In?ernational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact