|
|
| View previous topic :: View next topic |
| Author |
Message |
patriciarits
Joined: 01 Jan 1970 Posts: 15
 |
Posted: Sun May 20, 2007 12:34 am
Post subject: pathway hack
|
|
|
Hi,
I was looking into the pathway hack as provided here:
http://www.ijoomla.com/Joomla_Magazine/How_do_I.../My_p ath_is_messed_up%2C_how_do_I_correct_that?/
The result of applying the hack was that all the articles tied to joomlaMagazine were now showing up correctly, but the pathway for other components like the forum disappeared.
After searching a bit further I think I found a solution by expanding the hack to includes/joomla.php as follows:
Original code in includes/joomla.php:
| Code: |
/*
* Includes pathway file
*/
function mosPathWay() {
global $mosConfig_absolute_path;
$Itemid = intval( mosGetParam( $_REQUEST, 'Itemid', '' ) );
require_once ( $mosConfig_absolute_path . '/includes/pathway.php' );
}
|
Change to:
| Code: | /*
* Includes pathway file
*/
function mosPathWay() {
global $mosConfig_absolute_path;
$Itemid = intval( mosGetParam( $_REQUEST, 'Itemid', '' ) );
switch ($option) {
case 'com_magazine':
require_once($mosConfig_absolute_path."/ administrator/components/com_magazine/pathway.php" );
break;
default:
require_once ( $mosConfig_absolute_path . '/includes/pathway.php' );
break;
}
}
|
It's probably not perfect but it seems to do the job nicely at this point for my site. Cannot show you an example as I'm still doing the developing on a local server.
Hope this is helpful to anyone else having pathway problems...
Patricia |
|
| Back to top |
|
 |
merav

Joined: 25 Oct 2005 Posts: 4532 Location: Long Beach, CA, USA

 |
Posted: Sun May 20, 2007 4:40 pm
Post subject:
|
|
|
Thanks Patricia!  _________________ Merav
Founder, Product Designer
iJoomla.com |
|
| Back to top |
|
 |
|
|
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 vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|
Shopping Cart
|