Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
Editing Rocket Cake Generated HTML and CSS to that it Sticks when Republished?

jimsteele
Registered User
Quote
2024-08-17 22:29:30

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.


erik
Registered User
Quote
2024-08-18 06:56:59

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.


jimsteele
Registered User
Quote
2024-08-18 17:23:50

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.


erik
Registered User
Quote
2024-08-18 18:34:39

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.


jimsteele
Registered User
Quote
2024-08-19 23:19:16

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.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inte?national" (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