Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I have the need to edit some of the autogenerated HTML and CSS RocketCake generates and have it "stick" the next time the site is published and not revert back to what RocketCake initially created. Is there any mechanism to do this. I know I can refrain from republishing the page but then I can't use RocketCake to make any changes to that site asset. |
||||
|
Yes, there are several ways: - The easiest is to insert a HTML code element (or JavaScript or PHP element), which you can find on bottom part of the toolset. Place it exactly where you want to insert your code. Then double-click and you can enter your code. - A second way is to right-click any element on your page which you want to extend. Then choose "HTML Code..." and a dialog opens where you can insert attributes, code before that element and additional CSS styles. - And finally you can also use the menu "View -> HTML Code of page" where you can add aditional code in the header, attributes in the body, code before the header or additional CSS styles. It takes a bit time to get used to this system, but you can basically do anything with that. |
||||
|
My Question was misunderstood. I DO NOT want to INSERT Additional Code. I want to modify Code Rocket Cake has autogenerated. Example: RocketCake autogenerated this CSS: Container_FileList_Header { box-sizing: border-box; vertical-align: top; position:relative; display: inline-block; width:50%; min-height:37px; background:none; border: 1px solid 404040; } Container_FileList_Header_padding { margin: 10px; display: block; } I need to remove the "display: inline-block;" and not have it regenerated. I can view this code in RocketCake but appears to be READ ONLY. Is there any way to access ALL the code RocketCake Generates and edit it? Thanks. |
||||
|
Doesn't work like that. In that case, you can overwrite it. Select that Container_FileList_Header, additional css styles, write display: whateverModeYouWant; Last style will have precedence over the first one. |
||||
|
Understood. Thank you for the workaround. This will however make spaghetti code, so perhaps think of a future mode to allow direct editing of generated code and for Rocket Cake to "remember" the changes during publication cycles. |
|