If you are extending your YJSG based theme this is the place to start.
In YJSG you can add additional 7 grids. Each grid can have up to 5 modules. Please note that they all must be named as you see it in example below. Only changeable variable is the name of your module position. You can name your module positions aka. modNames
located in yjsg_print_grid_area
function as you wish.
<?php yjsg_print_grid_area('yjsgName=newgrid1|modNames=anynameyoulike'); ?> <?php yjsg_print_grid_area('yjsgName=newgrid2|modNames=anynameyoulike'); ?> <?php yjsg_print_grid_area('yjsgName=newgrid3|modNames=anynameyoulike'); ?> <?php yjsg_print_grid_area('yjsgName=newgrid4|modNames=anynameyoulike'); ?> <?php yjsg_print_grid_area('yjsgName=newgrid5|modNames=anynameyoulike'); ?> <?php yjsg_print_grid_area('yjsgName=newgrid6|modNames=anynameyoulike'); ?> <?php yjsg_print_grid_area('yjsgName=newgrid7|modNames=anynameyoulike'); ?>
You should first decide where to add your new grid position. Open template index.php
and try to find a suitable place for your new grid.
For example under the main menu.
<?php yjsg_print_grid_area('yjsgName=newgrid1|modNames=newposition',true); ?>
See information about Grid print function for additional function options.
templateDetails.xml
: <position>user25</position>
<position>newposition1</position> <position>newposition2</position> <position>newposition3</position> <position>newposition4</position> <position>newposition5</position>
template-settings.xml
: <fields name="params" addfieldpath="/plugins/system/yjsg/elements">
<fieldset name="YJSG_LAYOUT_LABEL"> <field name="yjsg_newgrid1_width" type="yjsgmultitext" default="20|20|20|20|20" labels="Newposition1|Newposition2|Newposition3|Newposition4|Newposition5" customchrome="YJsgxhtml|YJsgxhtml|YJsgxhtml|YJsgxhtml|YJsgxhtml" items="5" size="2" class="serialize_multiple" /> </fieldset>
YJsgxhtml, YJsground, YJsgblank, YJsgtabs, YJsgaccordion, YJsgslides
.
Please note that new field name variable name="yjsg_newgrid1_width" must match the grid print function attribute yjsgName=newgrid1
.
Once you are done your new grid will be visible in template manager under tab Layout. Also note that the position of the grid in index.php
will be replicated in your Layout tab. As you can see in our example the new grid is positioned under the main menu.
Go to your desired module manager and publish the module in your new module position.