Adding Articles Automatically to Menu

Need help with the Administration of your Joomla! 1.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
lamis
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Jul 01, 2008 11:19 am

Adding Articles Automatically to Menu

Post by lamis » Wed Jul 09, 2008 4:19 am

Well I dont know if I'm still newbie or not, however, I'm tired of seeing people adding articles and having to add them manually to the menu.
is there a way to assign sections articles to specific menu automaticlly? any help would be appreciated

User avatar
dextercowley
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3286
Joined: Sun Apr 06, 2008 4:44 am
Location: Seattle, WA, USA

Re: Adding Articles Automatically to Menu

Post by dextercowley » Wed Jul 09, 2008 5:18 am

Hi. Have you thought about using a Section List or Category List layout? It's not technically a menu, but it does what you want, which is to automatically add articles without having to modify menus. Another option to consider might be the free extension swMenuMaker, which at least makes it easy to add lots of menu items at one time. Hope this helps. Mark
Mark Dexter
"Well...how did I get here?"

rjo
Joomla! Intern
Joomla! Intern
Posts: 59
Joined: Wed May 23, 2007 7:37 pm

Re: Adding Articles Automatically to Menu

Post by rjo » Mon Jul 14, 2008 11:57 pm

Hello,
I use the latestnews module. The module generates a list of articles and it is pretty easy to display this list like a real menu.

Unfortunately the latest news module does not recognize which article is currently displayed and therefore does not know whether a list item is active.

Are there any workarounds for this?

(It could be done with some Javascript: Once the page is loaded, check the URL and then add the "active" attribute to the corresponding list item, but perhaps someone has already resolved the issue somewhat deeper in the system.)

User avatar
dextercowley
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3286
Joined: Sun Apr 06, 2008 4:44 am
Location: Seattle, WA, USA

Re: Adding Articles Automatically to Menu

Post by dextercowley » Tue Jul 15, 2008 1:04 am

Hi. Have you played with the Related Items module? This is very cool because it is based on keywords, so you are not tied to a section/category hierarchy (although you could just use the section and categories as the keywords if you wanted). You might give that a look. Hope this helps. Mark
Mark Dexter
"Well...how did I get here?"

rjo
Joomla! Intern
Joomla! Intern
Posts: 59
Joined: Wed May 23, 2007 7:37 pm

Re: Adding Articles Automatically to Menu

Post by rjo » Mon Jul 21, 2008 11:10 pm

Here is a followup:
Finally I created an template overwrite for mod_latestnews. This is the code:

<?php // @version $Id: default.php 9718 2007-12-20 22:35:36Z eddieajau $
defined('_JEXEC') or die('Restricted access');
//rjo 2008.07.15, rewrite to identify which article is active.
if (count($list)){
$uri = JFactory::getURI()->toString();
echo '<ul class="latestnews'.$params->get('pageclass_sfx').'">';
foreach ($list as $item){
if(strpos($uri, $item->link) === false)
$act = '';
else
$act = ' active';
echo '<li class="latestnews'.$params->get('pageclass_sfx').$act.'">';
echo ' <a href="'.$item->link.'">'.$item->text.'</a></li>';
}
echo '</ul>';
}
?>
Hope that helps
rjo wrote:Hello,
I use the latestnews module. The module generates a list of articles and it is pretty easy to display this list like a real menu.

Unfortunately the latest news module does not recognize which article is currently displayed and therefore does not know whether a list item is active.

Are there any workarounds for this?

(It could be done with some Javascript: Once the page is loaded, check the URL and then add the "active" attribute to the corresponding list item, but perhaps someone has already resolved the issue somewhat deeper in the system.)

User avatar
dextercowley
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3286
Joined: Sun Apr 06, 2008 4:44 am
Location: Seattle, WA, USA

Re: Adding Articles Automatically to Menu

Post by dextercowley » Mon Jul 21, 2008 11:17 pm

Hi Rjo. That is very cool and a great tip! Would you be willing to make a post in the Tips and Techniques forum with this? Perhaps with an example screenshot of what it looks like in use? I think other people would like to use this. Thanks. Mark
Mark Dexter
"Well...how did I get here?"

rjo
Joomla! Intern
Joomla! Intern
Posts: 59
Joined: Wed May 23, 2007 7:37 pm

Re: Adding Articles Automatically to Menu

Post by rjo » Tue Jul 22, 2008 2:43 am

Thanks Mark,
I just posted it on the T&T section (http://forum.joomla.org/viewtopic.php?f=236&t=309696) No screenshot though ;-) (the website design is not approved yet.)
And on the new documentation wiki too (http://docs.joomla.org/Menu_Items_Autom ... w_Articles)
have a good day
dextercowley wrote:Hi Rjo. That is very cool and a great tip! Would you be willing to make a post in the Tips and Techniques forum with this? Perhaps with an example screenshot of what it looks like in use? I think other people would like to use this. Thanks. Mark

orware
Joomla! Explorer
Joomla! Explorer
Posts: 255
Joined: Mon Jul 10, 2006 8:16 pm
Location: CA
Contact:

Re: Adding Articles Automatically to Menu

Post by orware » Wed Aug 13, 2008 1:20 am

I don't know if my module does exactly what you've been talking about here, but I was under the same impression that it sort of sucked that I had to create menu items for new articles to show up and I wanted to put something together that was more automatic, so I created my ArtCats module, which you can read a bit more about at the two links below.

http://forum.joomla.org/viewtopic.php?f=46&t=295262
http://forum.joomla.org/viewtopic.php?f=231&t=292997

Now the way the module works is you create your menu items to either sections or categories and the module will dynamically change its list of categories depending on the section you are visiting or it will change its list of articles depending on the category you are visiting (I've attached some screenshots showing the display).

Active Menu Highlighting currently isn't working, but that's also because I haven't the feature yet, which would be simple enough.

If you'd like to check it out and let me know if it's sort of what you were looking for I'd be glad to hear back :-).
You do not have the required permissions to view the files attached to this post.

brighton36
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Feb 10, 2010 7:55 pm

Re: Adding Articles Automatically to Menu

Post by brighton36 » Wed Feb 10, 2010 9:05 pm

I've been dealing with this problem myself, and decided to do something about it. I created a Joomla Plugin to basically do what you'd expect. Take a look:
http://www.derosetechnologies.com/commu ... menu-magic

It works a lot like AutoCat, except it integrates with the menu system - rather than side-stepping it entirely. I submitted the plugin to the JED repository - but it seems to be taking a little while to get approved. Perhaps leave a rating for it if you end up using it?

millend
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Thu Sep 04, 2008 8:42 pm

Re: Adding Articles Automatically to Menu

Post by millend » Fri Mar 12, 2010 10:42 am

brighton36 wrote:I've been dealing with this problem myself, and decided to do something about it. I created a Joomla Plugin to basically do what you'd expect. Take a look:
http://www.derosetechnologies.com/commu ... menu-magic

It works a lot like AutoCat, except it integrates with the menu system - rather than side-stepping it entirely. I submitted the plugin to the JED repository - but it seems to be taking a little while to get approved. Perhaps leave a rating for it if you end up using it?
Kudos! Wondrefuuuuul!!! Thank you... This just made my day - I already had pictured myself adding articles AND then menu items for a whole day, this saved me half the time! TY.

TatsujinUK
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Fri Jan 15, 2010 8:09 am

Re: Adding Articles Automatically to Menu

Post by TatsujinUK » Sun Apr 04, 2010 10:51 am

I'm having problems with this and haven't been able to find any comprehensive step-by-step instructions on the site or had a reply from the author. As far as I can tell I've got it set up the way it should be, but nothing happens on the frontend.

Is anyone who has got this working successfully able to throw some tips out to us on how to set this up step-by-step.

Cheers

Chris

millend
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Thu Sep 04, 2008 8:42 pm

Re: Adding Articles Automatically to Menu

Post by millend » Sun Apr 04, 2010 12:25 pm

TatsujinUK wrote:I'm having problems with this and haven't been able to find any comprehensive step-by-step instructions on the site or had a reply from the author. As far as I can tell I've got it set up the way it should be, but nothing happens on the frontend.

Is anyone who has got this working successfully able to throw some tips out to us on how to set this up step-by-step.
Only thing I followed, was the main installation tutorial and it worked right out of the box!

Few reminders;
*Have you enabled both plugins?
*Do you have article category & menu name exactly the same?
*Don't change any of the default values inside the plugin (at first anyway)

That's all I did basically and it worked perfectly! 8)

TatsujinUK
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Fri Jan 15, 2010 8:09 am

Re: Adding Articles Automatically to Menu

Post by TatsujinUK » Sun Apr 04, 2010 3:23 pm

Yup, done all that . . . nothing happens :(

mmponline
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Apr 16, 2010 11:23 am

Re: Adding Articles Automatically to Menu

Post by mmponline » Fri Apr 16, 2010 11:27 am

I get this to work on adding a new item to the corect Category and Section.
When I, however, move it to a new section, it's not removed. (Both plugins are installed and published). When I change an existing Article's Category / Section, it's not adding it as well. Only new articles.
What am I missing?

millend
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Thu Sep 04, 2008 8:42 pm

Re: Adding Articles Automatically to Menu

Post by millend » Fri Apr 16, 2010 11:44 am

mmponline wrote:I get this to work on adding a new item to the corect Category and Section.
When I, however, move it to a new section, it's not removed. (Both plugins are installed and published). When I change an existing Article's Category / Section, it's not adding it as well. Only new articles.
What am I missing?
I'am guessing it's not meant to do that - it's meant for just new articles/menu links and if you move stuff around, it does not recognize it...! Just a guess tho, haven't tried moving myself. ;)

mmponline
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Apr 16, 2010 11:23 am

Re: Adding Articles Automatically to Menu

Post by mmponline » Fri Apr 16, 2010 12:03 pm

On the site is the following: (I quote)
"Subsequent updates to content (publish status, trash status, category assignment changes) are automatically reflected as you'd expect in the site menus. When an article is deleted, so is its corresponding menu item."

Delete works, but not moving or assigning exsisting articles. Also updating the menu title is not changed when changing the article's name and/or alias.

desiredbard
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed May 19, 2010 5:04 pm

Re: Adding Articles Automatically to Menu

Post by desiredbard » Fri Jun 04, 2010 11:07 am

I am using a nested dropdown menu
If I add a section to this menu i would like it to automatically sub itemise the cathegories and articles instead of having to do this manually

kailey_joomla
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Mon Jun 28, 2010 5:59 pm

Re: Adding Articles Automatically to Menu

Post by kailey_joomla » Fri Sep 24, 2010 3:53 pm

I think the Automatic Menu Magic is great for doing this but does anyone know if there is something similar to this for automatically creating sub menus?

MarioFlying
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Jan 23, 2011 7:38 pm

Re: Adding Articles Automatically to Menu

Post by MarioFlying » Fri Feb 11, 2011 2:23 pm

There is! I needed something like this, too. But it's hard to find almost no reference on the entire Internet (like fifty downloads on the website, yuk).
It's an "Automatic Menu Magic" mod, I use it and it works!
Here it is:

Automatic Sub Menu Magic
http://www.bincom.net/works/extensions/ ... gic-bincom

Just be sure to set "all" in the "Carry out on Menu with name" voice of the plugin preferences page.
You create an article in "my pet" and you have a new menu in your "my pet" menu, whatever your original main menu name is.
Great!

User avatar
DC_Navan
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 217
Joined: Thu Feb 10, 2011 4:05 pm

Re: Adding Articles Automatically to Menu

Post by DC_Navan » Tue Apr 12, 2011 12:05 pm

MarioFlying wrote:There is! I needed something like this, too. But it's hard to find almost no reference on the entire Internet (like fifty downloads on the website, yuk).
It's an "Automatic Menu Magic" mod, I use it and it works!
Here it is:

Automatic Sub Menu Magic
http://www.bincom.net/works/extensions/ ... gic-bincom

Just be sure to set "all" in the "Carry out on Menu with name" voice of the plugin preferences page.
You create an article in "my pet" and you have a new menu in your "my pet" menu, whatever your original main menu name is.
Great!

Hi MarioFlying!

It's only on 73 downloads now! :eek:

Do you know if that will work with Joomla 1.6?

Cheers!

:pop

ms_buggy
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Mon Jun 01, 2009 7:48 am

Re: Adding Articles Automatically to Menu

Post by ms_buggy » Fri Jan 13, 2012 3:32 pm

The automenu magic -plugin sure does not work with joomla 1.7, just tested it. error 500 after enabling the plugin duo.

But I'm also curiously looking for solution to automatically create menu items, for new articles in a certain category. I thought this would have created to joomla core itself but it seems not.

Any easy solutions for this? Or is the only way use latest news modules, etc?
Thanks in advance!

Greyhame
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Jan 17, 2012 3:39 am

Re: Adding Articles Automatically to Menu

Post by Greyhame » Tue Jan 17, 2012 3:50 am

ms_buggy wrote:The automenu magic -plugin sure does not work with joomla 1.7, just tested it. error 500 after enabling the plugin duo.

But I'm also curiously looking for solution to automatically create menu items, for new articles in a certain category. I thought this would have created to joomla core itself but it seems not.

Any easy solutions for this? Or is the only way use latest news modules, etc?
Thanks in advance!
I had this same problem with 1.7 :(

The way I solved it was to use the latest news module (for certain categories) then used the Advanced Module Manager to assign this module to pages that included articles within certain categories. 8)

This is a great extension which allows you to assign modules to any page of your website, without needing to assign them to menu items.

I now have a menu item that automatically updates when I add an article, and the menu only shows up on the pages that I have chosen.
:D

ms_buggy
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Mon Jun 01, 2009 7:48 am

Re: Adding Articles Automatically to Menu

Post by ms_buggy » Thu Jan 19, 2012 12:48 pm

Glad to hear I'm not the only one in trouble with this feature. Not sure if I understood the use of advaced module manager, because I was happy to see that in 1.7 you can assign module "to all except". I have also written php if-clauses to assign modules based on menu-aliases.
Anyway the automatic manu creation would be nice feature to have on joomla 1.7 core. I think it would help alot of work for the users who mostly update content, and don't work with joomla continuously. But this conversation is under 1.5 so..

Au79
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Nov 08, 2008 6:09 am

Re: Adding Articles Automatically to Menu

Post by Au79 » Tue Nov 20, 2012 11:06 pm

Update for November 2012:

The Automatic Menu Magic plugin by DeRoseTechnologies works perfectly in Joomla 1.5.

Just remember to create a menu with the same name as the category of the article. In my case I just renamed "Main Menu" to "Pages". Now every new article under the category of Pages has a menu item created automatically.

Kudos and many thanks to the developers!

User avatar
trogladyte
Joomla! Guru
Joomla! Guru
Posts: 583
Joined: Sat May 03, 2008 9:27 pm
Location: Phoenix, AZ
Contact:

Re: Adding Articles Automatically to Menu

Post by trogladyte » Thu Jan 17, 2013 11:39 pm

I too faced this dilemma today. I found this extension and it works a treat.

http://extensions.joomla.org/extensions ... tors/20057
Ian Shere - Phoenix Website Design & Hosting
http://www.citruskiwi.com
Certified Flight Instructor http://www.flygoodyear.com


Locked

Return to “Administration 1.5”