Die Beste Aller Zeiten

Going direct to heaven, going direct the other way

Okay, so this just doesn’t work

I was looking for a workaround for the Itemid-issue for Joomla 1.0.12 (and for those who cannot use the compatibility setting in 1.0.13) and have to report that there is none.

The idea of of the content item module was to mimick the mainbody-call als closely as possible by using the core functions to display items. The Itemid is calculated in these core functions and unfortunately there is no way to override this (short of modifying core files which would defy the purpose of a plugin API).  So I have to say sorry, there is nothing I can do about that.

    Previous

    Space Age

    Next

    Not a fan yet

    2 Comments

    1. Hi,

      Joomla 1.0.13 has a setting somewhere under “Global Settings/contents” where you can tell Joomla to calculate the Itemids in the same manner it did up until (and including) Joomla 1.0.11 (that’S what i referred to as ‘compatibility mode’ ). If you can use this you should be alright, if you can’t there is no solution. Sorry I can’t be more helpful.

    2. Hi Eike,

      I love your module. I have spent about 8 hours tracking the front page issue and started looking at mod’ing your module with a menu item id parameter, so you can make sure which menu it works under.

      I have a site which needs to go live by the 15th Nov, where I need to have 3 mod_contentitems immediately below mainbody(); The problem is that as I hav e MX comment as soon as you click on an item all hell breaks loose as I can’t turn the contentitems off when it still thinks it’s on frontpage.

      I have tried setting $row->_Itemid before it is sent to HTML_content::show, but HTML_content::_Itemid resets it to 1. As you say, patching the core code is a very bad plan.

      Is there a solution in 1.0.13 ? I am not sure I get the “compatibility mode” issue.

    Comments are closed.

    Powered by WordPress & Theme by Anders Norén