Recent Topics

1 Nov 21, 2010 13:26    

My b2evolution Version: Not Entered

When there are lots of skin parameters, they dont look nice as the list goes very long.

Screenshot: [URL=http://img225.imageshack.us/i/62538088.jpg/]http://img225.imageshack.us/img225/9921/62538088.th.jpg[/URL]

<fieldset id="" class=" fieldset">
<fieldset id="ffield_edit_plugin_18_set_skin_width">
<div class="label"><label for="edit_plugin_18_set_skin_width">
...
</fieldset>

<fieldset id="ffield_edit_plugin_18_set_custom_width">
......
</fieldset>

<fieldset id="ffield_edit_plugin_18_set_sidebar_choice">
.....
</fieldset>

etc.

I need to "group" some of these settings.like 'basic settings', 'advanced controls' etc.

Ideally sth like:



/**************Example***********/
<div id="basic_settings">
<h2>Basis Settings</h2>
/**************Example***********/

<fieldset id="" class=" fieldset">

<fieldset id="ffield_edit_plugin_18_set_skin_width">...</fieldset>
<fieldset id="ffield_edit_plugin_18_set_custom_width">......</fieldset>
<fieldset id="ffield_edit_plugin_18_set_sidebar_choice">.....</fieldset>

</fieldset>

</div>

/**************Example***********/
<div id="advanced_settings">
<h2>Basis Settings</h2>
/**************Example***********/

<fieldset id="" class=" fieldset">
<fieldset id="ffield_edit_plugin_18_set_skin_width">...</fieldset>
..............
</fieldset>
</div>

and so on... you get the idea.

Now; i see there is an empty <fieldset id="" in the default options set.What i need is a way to modify and multiply that fieldset to group the options, or insert extra div to group them like the code below.

2 Nov 25, 2010 15:29

You can group settings using the 'layout' settings in your skin class:

'some_cool_options_begin' => array(
	'layout' => 'begin_fieldset',
	'label' => $this->T_('My Cool Group Of Options'),
),

..... Cool settings go here..........

'some_cool_options_end' => array(
	'layout' => 'end_fieldset',
),

L

3 Nov 25, 2010 21:07

lturner wrote:

You can group settings using the 'layout' settings in your skin class:

'some_cool_options_begin' => array(
	'layout' => 'begin_fieldset',
	'label' => $this->T_('My Cool Group Of Options'),
),

..... Cool settings go here..........

'some_cool_options_end' => array(
	'layout' => 'end_fieldset',
),

L

much appreciated

4 Nov 27, 2010 19:37

I made a thorough search but couldn't find anything..
isn't there additional parameters to customize other than layout & label ?
such as :

'basic_settings_begin' => array(
'layout' => 'begin_fieldset',
'label' => $this->T_('Basic Settings'),
'class' => 'asdasd',
'fieldset_class' => 'asdasd',

),

I have tried fieldset_title etc. nothing seems to work.How do we apply id or class to those fieldset groups ?

5 Nov 28, 2010 22:36

I don't think this is possible using built in parameters.

L

6 Nov 29, 2010 01:30

lturner wrote:

I don't think this is possible using built in parameters.

L

i guess there is supposed to be, it does not make sense to call all fieldset id's same in the first place, and i have seen somewhere in docs there was;

fieldset_wrapper_$class$ to customize <div id="fieldset_wrapper_" class="fieldset_wrapper fieldset">

but can't figure out how to.

edit:

             'fieldset_begin' => '<div class="fieldset_wrapper$class$" id="$id$"><h2 $title_attribs$>$fieldset_title$</h2>',

http://doc.b2evo.net/HEAD.test/source/blogs/skins_adm/chicago/_adminui.class.php.html

7 Nov 30, 2010 20:47

OK, I have had a look in the code and it seems that you can use the following parameters:

'id' => 'mycoolid',
'class' => 'mycoolclass',

The only problem is that as far as I can tell any setting that has a ''layout' => 'begin_fieldset'," ignores these settings.

Doesn't really help you I'm afraid :(

L

8 Jan 26, 2011 03:12

thanks for the follow up.

I have searched the docs literally for hours.Just when i thought i found sth, it turns out to be nothing.Adding a tab/panel/fieldset of settings in a plugin/skin shouldn't be this hard.No wonder why people aren't developing for b2 anymore.

9 Sep 24, 2012 01:49

*BUMP*

has this fieldset id / class thing been fixed ?

10 Sep 24, 2012 03:57

In v5 you can add plain HTML in settings.

'whatever' => array(
   'layout' => 'html',
   'value' => '<h2>My cool header here</h2>',
),

11 Sep 24, 2012 14:39

sam2kb wrote:

In v5 you can add plain HTML in settings.

'whatever' => array(
   'layout' => 'html',
   'value' => '<h2>My cool header here</h2>',
),

cool.. the more reason to long for v5

12 Nov 01, 2012 06:11

sam2kb wrote:

In v5 you can add plain HTML in settings.

'whatever' => array(
   'layout' => 'html',
   'value' => '<h2>My cool header here</h2>',
),

Is this v5 is the latest one? I guess it has lot options to ad than the other version.


Form is loading...