Joined: 27 Apr 2006
Posts: 22009
Location: Southern California
Posted: 01/21/10 23:36
You would probably need to create a custom function similar to jmTextBannerEnd, but the form.tpl content would be modified slightly to create your divider, instead of "ending" the the button. So jmTextBanner is called first, then you have your jmButtons and your custom function, and then at the very end jmTextBannerEnd.
Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa
Posted: 01/06/11 15:03
I have been trying to do this also same thing I believe I have the same thing you have set up and couldnt get it to work exactly how I want
I do get separation of the areas but cant get a heading for each area which isnt very nec but would be nice to add
the main thing right now is I am getting the mrnu option twice in the admin menu layout which i obviously do not need which comes up with the following line
are you aware of how to get rid of the menu option I attempted taking the section_ecmModuleMenu out but that didnt do it
Thaks James
musiccreatures:
In my custom modules admin control panel, there are a number of "buttons".
I would like to be able to group these buttons on their own line.
For example,
New Category Modify Category Delete Category
Pending Ads Ad Complaints
Module Settings
Is this possible? I tried the jmDivider() which didnt work as i planned. I also tried using the following approach:
Code
// Start new control panel section Part 1(Category Admin)
jmTextBanner('Classified Ads Admin','false','false','false','section_mcClassifiedAdsMenu');
jmButton('New Category','mcClassifiedAds.php?mode=createcat','blog_create');
jmButton('Modify Category','mcClassifiedAds.php?mode=modifycat','blog_modify');
jmButton('Delete Category','mcClassifiedAds.php?mode=delcat','blog_delete');
jmTextBannerEnd();
// Start new control panel section Part 2(Ad Admin)
jmTextBanner('Classified Ads Admin','false','false','false','section_mcClassifiedAdsMenu');
jmButton('Pending Ads','mcClassifiedAds.php?mode=pending','blog_create');
jmButton('Ad Complaints','mcClassifiedAds.php?mode=modifycat','blog_modify');
jmTextBannerEnd();
// Start new control panel section Part 3(module settings)
jmTextBanner('Classified Ads Admin','false','false','false','section_mcClassifiedAdsMenu');
jmButton('Module Settings', 'jrconfig.php?mode=detailed_settings§ion=mcClassifiedAds', 'blog_delete');
jmTextBannerEnd();
It seemed to place the buttons in the "grouping" I wanted, but created 3 buttons, in the control panel navigation.
Any other suggestions?
Thanks,
Tim
_________________ One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...