Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
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! |
||||
|
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. |
||||
|
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. |
|