Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 10:47 am EST
Geeklog Forums
Subgroups and Fieldsets
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hi everybody,
When there is one subgroup, to sort fieldsets in the install_default.php I found:
'fs_2', NULL, 'fieldset', 0, 1, NULL, 0, true, 'myplugin'
'fs_3', NULL, 'fieldset', 0, 2, NULL, 0, true, 'myplugin'
'fs_4', NULL, 'fieldset', 0, 3, NULL, 0, true, 'myplugin'
but how to sort them when there is 2 or more subgroups like in this exemple?
$LANG_confignames['myplugin'] = array(
'config1' => 'Config 1 in Subgroup1 Fieldset1',
'config2' => 'Config 2 in Subgroup1 Fieldset1',
'config3' => 'Config 3 in Subgroup1 Fieldset2',
'config4' => 'Config 4 in Subgroup2 Fieldset1',
'config5' => 'Config 5 in Subgroup2 Fieldset1',
'config6' => 'Config 6 in Subgroup2 Fieldset1',
'config7' => 'Config 7 in Subgroup2 Fieldset2'
);
$LANG_configsubgroups['myplugin'] = array(
'sg_1' => 'Subgroup #1',
'sg_2'=> 'Subgroup #2'
);
$LANG_fs['myplugin'] = array(
'fs_11' => 'Sub group 1 Fieldset #1',
'fs_12' => 'Sub group 1 Fieldset #2',
'fs_21' => 'Sub group 2 Fieldset #1'
);
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
When there is one subgroup, to sort fieldsets in the install_default.php I found:
Text Formatted Code
'fs_1', NULL, 'fieldset', 0, 0, NULL, 0, true, 'myplugin''fs_2', NULL, 'fieldset', 0, 1, NULL, 0, true, 'myplugin'
'fs_3', NULL, 'fieldset', 0, 2, NULL, 0, true, 'myplugin'
'fs_4', NULL, 'fieldset', 0, 3, NULL, 0, true, 'myplugin'
but how to sort them when there is 2 or more subgroups like in this exemple?
Text Formatted Code
$LANG_confignames['myplugin'] = array(
'config1' => 'Config 1 in Subgroup1 Fieldset1',
'config2' => 'Config 2 in Subgroup1 Fieldset1',
'config3' => 'Config 3 in Subgroup1 Fieldset2',
'config4' => 'Config 4 in Subgroup2 Fieldset1',
'config5' => 'Config 5 in Subgroup2 Fieldset1',
'config6' => 'Config 6 in Subgroup2 Fieldset1',
'config7' => 'Config 7 in Subgroup2 Fieldset2'
);
$LANG_configsubgroups['myplugin'] = array(
'sg_1' => 'Subgroup #1',
'sg_2'=> 'Subgroup #2'
);
$LANG_fs['myplugin'] = array(
'fs_11' => 'Sub group 1 Fieldset #1',
'fs_12' => 'Sub group 1 Fieldset #2',
'fs_21' => 'Sub group 2 Fieldset #1'
);
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
6
8
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Use the sort_order field there, too. Groups are requested from the database with a ORDER clause. Also check the config-install.php in the install directory.
bye, Dirk
Text Formatted Code
ORDER BY fieldset,sort_order ASCbye, Dirk
3
9
Quote
All times are EST. The time is now 10:47 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content