Welcome, Guest
Username: Password: Remember me

TOPIC: [ADDED] Admin Interface - Bricks Position

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

  • griiettner
  • griiettner's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 12
  • Karma: 8
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
Last Edit: 15 Nov 2011 14:24 by admin.
The administrator has disabled public write access.

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

  • griiettner
  • griiettner's Avatar
  • Offline
  • Senior Member
  • Posts: 73
  • Thank you received: 12
  • Karma: 8
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
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
  • Karma: 140
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
Last Edit: 22 Apr 2012 18:37 by admin.
The administrator has disabled public write access.

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

  • Frederic
  • Frederic's Avatar
  • Offline
  • Senior Member
  • Posts: 56
  • Karma: 0
Hi,

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

Thank you very much,

Fred
Last Edit: 21 Apr 2012 11:11 by Frederic. Reason: typo
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
  • Karma: 140
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.126 seconds

Get Started