Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Admin Interface - Bricks Position 06 Oct 2011 17:00 #137

Hello,

On the component I'm making, I was able to add Classes to create a better user interface. It was easy to me, because I already know the classes to be added. I was wondering, if it is possible to add those options on the property box of the bricks... for instance...

Lets pretend I have 3 Bricks One is Fly, so it will display some info about the item and I want it positioned on the right side 40%, so I used the classes "width-40 fltrt".

Than I have another brick called Parameters and I also want it positioned on the right side 40% again "width-40 fltrt".

At the end I have my main brick, that will hold the editing of my item and it bill be positioned on the left side 60% and the classes would be "width-60 fltlft".

So.. the final result would be
<div class="width-60 fltlft">
	<fieldset class="fieldsform">
		<legend>Main Brick</legend>
		{BRICK MAIN}
	</fieldset>
</div>
<div class="width-40 fltrt">
	<fieldset class="fieldsform">
		<legend>Info Brick</legend>
		{BRICK INFO}
	</fieldset>
	<fieldset class="fieldsform">
		<legend>Params Brick</legend>
		{BRICK PARAMs}
	</fieldset>
</div>

If I made myself clear, I'm suggesting to add the option to choose the side and size in % of the brick
Paulo Griiettner

Please Log in or Create an account to join the conversation.

Last edit: by admin.

Re: Admin Interface - Bricks Position 06 Oct 2011 17:09 #138

Complementing my previous post...

Would be nice, to have as well, the option to choose if the <fieldset> can be generated as Tab Panel or Slide Panel, so it can have those nice effect other extensions have...

For Slide Panels the code to be used is:
<?php echo JHtml::_('sliders.start','id-sliders-'.$this->item->id, array('useCookie'=>1)); ?>
<?php echo JHtml::_('sliders.panel',JText::_('SLIDE_PANEL_TITLE'), 'details'); ?>

    Content goes here

<?php echo JHtml::_('sliders.end'); ?>

For Tab Panels:
<?php echo JHtml::_('tabs.start','id-tabss-'.$this->item->id, array('useCookie'=>1)); ?>
<?php echo JHtml::_('tabss.panel',JText::_('TAB_PANEL_TITLE'), 'details'); ?>

    Content goes here

<?php echo JHtml::_('tabs.end'); ?>
Paulo Griiettner

Please Log in or Create an account to join the conversation.

Re: Admin Interface - Bricks Position 07 Oct 2011 12:15 #159

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
This functionality will come with the layouter.

The bricks will have positions like common templates (top, teft, bottom-left...)

For the tabs, this is brillant idea. We take note.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Last edit: by admin.

Re: Admin Interface - Bricks Position 21 Apr 2012 08:18 #2096

Hi,

With griiettner's sample, it's very easy to implement it manually! :)

Thank you very much,

Fred

Please Log in or Create an account to join the conversation.

Last edit: by Frederic. Reason: typo

Re: Admin Interface - Bricks Position 22 May 2017 20:16 #15149

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.070 seconds

Hi guys Before I ask for help just like to say I tried the tutorials on how to make a 2.5 component WOW.... HECTIC!! J-Cook is really amazing in its simplicity!!
Dorac (Forum)  

Get Started