Joomla! Discussion Forums



It is currently Tue Nov 24, 2009 1:43 pm (All times are UTC )

 


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  [ 7 posts ] 
Author Message
 Post subject: Related module
Posted: Wed Aug 31, 2005 3:08 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Aug 26, 2005 8:59 am
Posts: 114
Let me try to explain my issue with this  ::)

I have published the 'related items' module so it appears on my 'Latest (news)' and 'local history' categories. And it does appear when those categories are accessed via the menu.

But when items in these categories are accessed direcctly from the home page, via the 'read more' link, the 'related items' module doesn't appear. Should it? It would be nice if it did!

Secondly, I have several stories in a category called 'site news'; in the meta keywords I have added for each the words 'site news' - among others. But the related module fails to relate the stories, and appears blank. Have I misunderstood?

Thanks


Top
  E-mail  
 
 Post subject: Re: Related module
Posted: Wed Aug 31, 2005 10:20 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Thu Aug 18, 2005 4:35 pm
Posts: 2838
Location: Cheshire, England
Your issue with the related items module is down to the itemid in the read more link

Each menu has its own item id. When you access an item of content from e.g. a blog page called History, it will have an item id equal to that of the blog page history and therefore will display the same modules as the blog page history.

I assume that your problem is that when you access the item from the frontpage read more link, it is getting an itemid equal to that of the frontpage and therefore displays the frontpage modules.

I do not fully understand how the itemid is allocated. I have one site where some items on the frontpage have a frontpage itemid and others where they have the correct itemid for its section. I cannot follow what circumstances cause an item id equal to the frontpage.

Maybe someone can give a way of influencing it but if not, a few work arounds that I can think of are:

1: Publish the related items module on the frontpage too - that way when viewing content via frontpage read more... link, it will have the same modules as the frontpage.

2: If the items on the frontpage are remaining fairly static, you could choose not to show the automatic read more links and add your own read more... links, hard coded into the bottom of the intro text with the correct itemid.

3: If you do not want the module on the frontpage, you could use a conditional statement to only include the module position for the related items module on certain types of page output.

e.g.
you could add the following code into your template index file:
Code:
<?php if ($option =="com_content") { mosLoadModules ( 'user7' ); }; ?>


This would then only load the module position user7 on pages output with com_content. You can publish the module to the position user7 on the homepage (and other pages where you want it) and it will not show when viewing the normal homepage, but will show when viewing an item via the read more link with a homepage itemid because it uses com_content. The downside to this is that the other frontpage modules will show too.

Obviously it would be best if someone could help you on how to influence the itemid in frontpage items rather than work around it. I actually requested that someone on the forum should create an FAQ about itemid issues because it keeps cropping up and yet there is a lack of firm info on it. Nobody has taken up the request as far as I know.

_________________
Look at the page source... Lots of useful info...


Top
   
 
 Post subject: Re: Related module
Posted: Thu Sep 01, 2005 8:50 am 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Aug 26, 2005 8:59 am
Posts: 114
Thanks for your detailed reply.

I will look into some  of the options you suggest.

Any thoughts about why it doesn't 'relate' two items with identical keywords, anyone?

Cheers.


Top
  E-mail  
 
 Post subject: Re: Related module
Posted: Thu Sep 01, 2005 8:56 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Sat Aug 20, 2005 9:07 pm
Posts: 60
Location: Brno, Czech Republic (for US: consider as Europe :-)
xgipper wrote:
Thanks for your detailed reply.

I will look into some  of the options you suggest.

Any thoughts about why it doesn't 'relate' two items with identical keywords, anyone?

Cheers.


Did you check that all this items are published, not in static content and not only e.g. for registered users?
Maybe some of this restriction prevent show others items.

Also, you can try my new related item module ( more options here), download it from http://tomh.gdi.cz

_________________
Tomas Hanzelka
-------------------------
Related Items Bot/Module Extended, AkoComment and SimpleBoard  Most Active Modules
http://tomh.gdi.cz


Top
  E-mail  
 
 Post subject: Re: Related module
Posted: Wed Nov 30, 2005 8:50 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Oct 21, 2005 9:01 am
Posts: 63
The "Related Items" appear on the frontpage without any items  :laugh:  do you know how to fix it coz ppl might question why it's there for  :P


Top
  E-mail  
 
 Post subject: Re: Related module
Posted: Fri Feb 09, 2007 3:16 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Jul 20, 2006 9:07 am
Posts: 79
I think I have the same problem: related items links always lead to a menu-page with it's own template assigned. No content item shows up. From a normal menu, the conent items show up. I'll be glad if somene could help me with this. I understand it is connected with the wrong itemid issue.

Or is it? ???

_________________
Say hello to my little friend!


Top
  E-mail  
 
 Post subject: Re: Related module
Posted: Thu May 08, 2008 6:19 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Dec 06, 2005 2:00 pm
Posts: 22
I can't even see how to use or setup the related module?

is there any documentation on this module?

thanks


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

Quick reply

 



Who is online

Users browsing this forum: No registered users and 48 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 © 2000, 2002, 2005, 2007 phpBB Group