Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name: Password:
Ambiera Forum > RocketCake
Option for generated code
Author Text

Registered User
2022-06-02 00:24:05

I'm using ajax in my project and many times need a specific designed "page" be treated not as an complete html page when generated, but as an snippet.

I mean: in some cases I don't need the whole structure to be created for some pages like RC do now:

.. code
.. code

I want just the code needed to render the design, because, later, I can insert this, for example in a div, and don't need all the code of a complete web page, just the necessary to render the design inside the div.

For example: this code is extracted from a RC generated code for a "page" design that only contains a form and its elements:

<div class="textstyle2">
<form action="" enctype="application/x-www-form-urlencoded"
method="POST" id="form_5705fe1d">
<div class="textstyle1">
<span class="textstyle3">COMPRA DE CARTONES<br/></span>
<div class="textstyle2">
<span class="textstyle3">Precio del carton: [@moneda] [@precioCarton]<br/>Cantidad:
<input type="text" value="1" title="" name="TextEdit2" id="edt_cantidad" ="fCalculaTotal(document.getElementById('edt_cantidad').value,document.getElementById('field_pvpCarton').value,document.getElementById('field_moneda').value);" >
<span class="textstyle3"><br/></span>
<div id="div_totalPagar">
<div id="div_totalPagar_padding" >
<div class="textstyle2">
<div id="text_50c99fc5">
<div class="textstyle2">
<span class="textstyle3">TOTAL A PAGAR: [@moneda] 0
<div style="clear:both"></div>
<input type="hidden" value="[@precioCarton]" name="HiddenFormField3" id="field_pvpCarton" >
<input type="hidden" value="[@moneda]" name="HiddenFormField4" id="field_moneda" >

This is just what I need to be generated, not the whole stuff.

The option needed is when generating page we could tell to RC: "for this design don't generate the whole structure for a complete web page, just the snippet RC".

The inconvenient I see for implementing this is with the styles used in the design. And for that would be great that RC has global styles.

Global styles could be achieved with an option which permit save styles and then be applied to objects.

With global styles we can get consistency in website design, and will be faster to apply same style for example to buttons (same color,same font, same size,etc) that be configuring each button (or any object) one by one...

Again, maybe this is not for everyone, but would be a good hidden weapon for RC.

Could this be an option in future updates?

(sorry for so long text)

2022-06-02 17:06:25

That's true, good idea. The part with the snipped would be very useful for me personally too. Added to the list. Thanks!

Registered User
2022-06-08 16:01:22


And for global styles:

For example:
If drop an object into the editor (button, image, container, text input, etc), then after "customize" the object (font-size, font-color, background color, etc) with right click over the object show the option "save style", then this will be saved to the RC file (or wherever must be) and will be show in a new window called for example "custom styles or custom classes".

Once there, we can drop objects into the editor, select the object and then click in the appropriate style from the list and the object will assume all the properties of that style. If this is possible would be a terrific time saver.

Create reply:

Posted by: (you are not logged in)

Enter the missing letter in: "I?ternational" (you are not logged in)




Possible Codes

Feature Code
Link [url] [/url]
Bold [b]bold text[/b]
Image [img][/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]



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