Summary:
Why don't integrate the following options by default in the jcook-builder?
example of functionalities needed:
- option to have nested bricks in layouts
- class autocomplete feature in the brick options ("span1" to "span12" these classes give the width of the dom element.)
- option to add extra empty FIELDS as spacer between fields.
- tabs functionalities in layout.
Even just as options without a real wysiwyg functionality in the j-cook builder would improve a lot the overall layout of the components generated.
To have a standard joomla layout, let's analize the joomla article form:
- element 1
<div class="span10">
...........
</div>
- element 2
<div class="span2">
...........
</div>
- nested element INSIDE the element 1)
<div class="row-fluid">
...........
</div>
- nested element INSIDE the element 3)
<div class="span6">
...........
</div>
- the same like the previous, nested element INSIDE the element 3)
<div class="span6">
...........
</div>
- div used as spacer between fields
<div class="control-group">
<span class="spacer">
<span class="before"></span>
<span>
<hr>
</span>
<span class="after"></span>
</span>
<div class="controls"> </div>
</div>
- joomla bootstrap tabs, example code:
<!-- start tabs set -->
<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'tab1')); ?>
<!-- start tab1 -->
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'tab1', JText::_('MYTEXTVARIABLE', true)); ?>
..............................
<!-- end tab1 -->
<?php echo JHtml::_('bootstrap.endTab'); ?>
<!-- start tab2 -->
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'tab2', JText::_('MYTEXTVARIABLE2', true)); ?>
..............................
<!-- end tab2 -->
<?php echo JHtml::_('bootstrap.endTab'); ?>
<!-- start tabN -->
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'tabN', JText::_('MYTEXTVARIABLE_N', true)); ?>
..............................
<!-- end tabN -->
<?php echo JHtml::_('bootstrap.endTab'); ?>
<!-- end tabs set -->
<?php echo JHtml::_('bootstrap.endTabSet'); ?>