Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
2 Rows in control panel?
musiccreatures



Joined: 20 Jun 2009
Posts: 344
Location: Portland Oregon

Posted: 01/21/10 22:33 
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&section=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

Back to top
smith.kyle
CodeSmith


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.

Kyle


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
musiccreatures



Joined: 20 Jun 2009
Posts: 344
Location: Portland Oregon

Posted: 01/22/10 10:59 
BRILLIANT! Thanks for the reply. Great Idea. I'll post my function, if anyone else has a need for it.

thanks again,
Tim

Back to top
jamesd116



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


Code
 jmTextBanner($language['ecmModule'][1],'false','false','false','section_ecmModuleMenu');

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&section=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...
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Developers

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.