: News Display, Home Menu Button and SEF : rickconn June 14, 2010, 04:34:14 AM Greetings,
Thanks for the great product. I am having issues using SEF urls with the News Display (mod_s5_news_display). url: http://www.ozaccess.com/NEW I have set $live_site to /NEW in the configuration.php When SEF is off and I click any of the top 4 News Display stories, I am forwarded to a new page eg: http://ozaccess.com/NEW/index.php?option=com_content&view=article&id=336:perth-western-australia&catid=35:news-display or: http://ozaccess.com/NEW/index.php?option=com_content&view=article&id=335:sydney-harbour-bridge&catid=35:news-display This seems to work as expected. Note: When set like this with SEF off, I lose the 'News Display' module at the top, when viewing a linked article... When I set SEF to on and I click any of the top 4 News Display stories, I am forwarded to a new page eg: http://ozaccess.com/NEW/component/content/article/35-news-display/336-perth-western-australia.html or: http://ozaccess.com/NEW/component/content/article/35-news-display/334-nitmiluk-national-park.html This seems to work as expected. Note: When USED like this with SEF on, I lose the 'News Display' module at the top, when viewing a linked article... However the issue: With SEF set to 'on' and having used the 'Home' menu button, the home page url becomes:: http://ozaccess.com/NEW/home.html Then, if you click any of the four 'News Display' linked articles, the url becomes: eg: http://ozaccess.com/NEW/home/35-news-display/336-perth-western-australia.html or: http://ozaccess.com/NEW/home/35-news-display/334-nitmiluk-national-park.html Now the article linked is opened on the 'Home Page' not a 'new page' and the 'News Display'is still being displayed, but with no images. also the 'thumbnail images' for the 'News Display' are missing. Im guessing, its not suppose to behave that way, and the links should open on a new page. I have read through the forum and saw a post that suggested this may help: Appending this: if ($mitem->name == "Home") { $mitem->link = ""; After this: if ($s5_check_itemid > 1) { $mitem->link = ""; } Around line 107 of the s5_no_moo_menu.php I have tried that but it made no difference for my issue... I'm out of ideas, and dont really want to hack away at the template as my understanding of it is not that deep. This install was preformed with Site_Shaper_Sportopolis.zip Thanks, hoping someone can help... Kind regards Rick : Re: News Display, Home Menu Button and SEF : mikek June 14, 2010, 09:12:58 AM Hello,
Try the following code instead: if ($mitem->home == 1) { $mitem->link = ""; } : Re: News Display, Home Menu Button and SEF : rickconn June 14, 2010, 02:58:52 PM Hi Mike,
Thanks for your quick reply. Please let me check I understand your suggestion. After this at around line 107 of the s5_no_moo_menu.php: if ($s5_check_itemid > 1) { $mitem->link = ""; } Change to this: if ($s5_check_itemid > 1) { $mitem->link = ""; } if ($mitem->home == 1) { $mitem->link = ""; } I have tried that but it made no difference for my issue. Please let me know how I can get more info to you if you need it. Thanks again, Rick : Re: News Display, Home Menu Button and SEF : rickconn June 14, 2010, 05:32:29 PM Hi Mike,
A quick update... I may have found my solution, I have added: RewriteRule ^home\.html$ http://www.mydomain.com/NEW/ [R=301,L] to the .htaccess file, I will let you know if I have any further/new issues because of my edit. Thanks again for you interest... Rick |