Home » Forum
NoNumber!

Joomla! Extensions •
Web Development •
Web Design •

I try to respond within 24 hours (excluding weekends). If I haven't responded by then, feel free to post a reminder or bug me via email.
Welcome, Guest
Please Login or Register.    Lost Password?

Extending AddToMenu to add a different menu type - possible?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Extending AddToMenu to add a different menu type - possible?
#5272
Extending AddToMenu to add a different menu type - possible? 8 Months, 2 Weeks ago  
"Trying to get an option in to change/choose the menu type would be quite a lot of work.

If you always want the articles to be saved as 'Open Source MSC', you could simply change the 'component' template file for articles that comes with Add to Menu:
/administrator/modules/mod_addtomenu/addtomenu/components/com_content/content.php

Especially look at the part:
", "'urlparams' => array(
", "", "'option' => 'com_content',
", "", "'view' => 'article',
", "", "'id' => '$cid',
", "),

Change the option to whatever MSC uses. And change/add anything else that needs to be in the url."
Peter van Westen
Admin
Posts: 4280
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! NºNumber!NºNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#5270
Extending AddToMenu to add a different menu type - possible? 8 Months, 2 Weeks ago  
Hello,

This extension is a great timesaver - we are saving hundreds of articles into a joomla site and having to manually create menus would be a nightmare.

The problem is that the type of menu your AddTOMenu extension creates is not adjustable, ie. it adds a menu of type 'Articles » Article' by default.

My problem is we are using the Open Source MSC component to provide extended user access controls, and menu items need to be saved as type 'Open Source MSC » Article'

I'm willing to get my hands dirty and delve into your source code, but if you can provide any time-saving tips on where I may start to alter your component so I may be able to achieve this i'd be very grateful...

Particularly pointers such as 'don't bother it's not possible', or my hopeful 'easy, check out file ...' etc! as I'm assuming you know your source code back to front.

Many thanks in advance!,
Natacha
chickwithbob
Posts: 2
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#5281
Extending AddToMenu to add a different menu type - possible? 8 Months, 2 Weeks ago  
Great - I'm happy to always make it the same...
Thanks for the reply!

chickwithbob
Posts: 2
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Joomla Open Source Training