The Joomla! Forum ™



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.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon May 08, 2006 7:58 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Mar 24, 2006 4:03 am
Posts: 31
Is there a good solution to dispaying modules that are on pages linked to by other pages and NOT menus.

for instance:  Menu links to Page 1;  Page 1 has a link to Page 2; Page 2 has a link to Page 3

If one wishes to display different modules on each of the pages how is this accomplished?

The method Joomla provides of associating modules with menu's certainly has its advantages, but it would be very useful to b able to associate modules to specific pages. In effect "lock down" what modules are displayed on particular pages.


Top
 Profile  
 
PostPosted: Tue May 09, 2006 4:08 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Thu Aug 18, 2005 4:35 pm
Posts: 2860
Location: Cheshire, England
this may work for you:

create links to Page 2 and Page 3 in an unused menu that does not display on the site

eg if you do not use the top menu, add the links in there in the menu manager. make sure that they are published so that they work when accessed by your links but you do not need to show the module for the top menu on the site.

Now that you have menu links, you can assign modules to them (even though you do not access them with the menu)

Now you can access the pages with direct links rather than menu links ( make sure you copy the relevent link from the topmenu ) and et the modules you want.

_________________
Do you want the answer to be as vague as your question?


Top
 Profile  
 
PostPosted: Tue May 09, 2006 4:17 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Mar 24, 2006 4:03 am
Posts: 31
yes, that works.  That is the method I have been using.  However, it gets quite cumbersome after the site gets large and complex.

I was just hoping for a more elegant and practical solution.


Top
 Profile  
 
PostPosted: Tue May 09, 2006 5:48 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Aug 26, 2005 11:09 am
Posts: 198
Using a hidden menu item for this will also mess up your pathway and menu highlighting, unfortunately.

It's a bit of a pain really.

Often you want to show content items without extra modules on the side (so that there is more space), but have side modules on the pages which list the items in a particular section or category.

A good way to achieve that on a news/magazine-type site, where it is not practical to publish a hidden menu link to each individual content item, is to publish a hidden Table - Content Section link for each section (which mostly takes precedence for ItemID purposes) and then remove from that single link (rather than hundreds of individual content item links) the modules you don't want to show when viewing your articles from that section.

It works very well if you are using Blog (rather than Table) listings for your real (ie. not hidden) menu items. You can assign modules to the blog menu links, but those modules won't show up when you click through to the article, because the link to the article in the blog listing will take its ItemID from the hidden Table - Content Section link.

But, as I say, it messes up your pathway and menu highlighting.

Unfortunately, because the ItemID is the single key used to determine what modules to display, what menu items to highlight and also what pathway to construct, things get messy when these requirements conflict.

It also means you can't assign modules to specific pages in a multi-page content item (because all the pages have the same ItemID). Though you can get round that one by including modules within the content item using the {mosloadposition} mambot.

You can only assign modules to ItemIDs, and ItemIDs have to be specifically created (ie. by making a menu link of some kind) in order to appear in the interface which allows you to do that - which is why occasionally, if there is a bug with something and an ItemID isn't appended to a link (or, for instance, you link directly to http://www.yoursite.com/index.php?option=com_search , without an ItemID) any modules not set to appear on ALL pages will disappear.

So the short answer to the question is: "No, not as far as I know; but there may be a kind of solution depending on your particular site setup and precisely what you are looking to achieve."

However, I would personally love to find a simple solution so that I can get rid of modules on content items without having to make separate links.

Of course, if you have a site-wide policy which says (for example) never show right-hand column modules when displaying a full content item, you can always put PHP logic in your template file which removes the module positions on the right when option=com_content&task=view


Top
 Profile  
 
PostPosted: Wed May 10, 2006 6:21 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Mar 24, 2006 4:03 am
Posts: 31
Thanks so much for your insight and explanations.  The hidden table-section idea is one i had not thought of.  I may have an application for it.

The more I know the more I don't......


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 



Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group