Forum Support

Shape 5
July 29, 2021, 07:42:55 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: News Display, Home Menu Button and SEF  (Read 237 times)
rickconn
Jr. Member
**
Offline Offline

Posts: 3



« on: 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
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: June 14, 2010, 09:12:58 AM »

Hello,

Try the following code instead:

if ($mitem->home == 1) {

$mitem->link = "";

}
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
rickconn
Jr. Member
**
Offline Offline

Posts: 3



« Reply #2 on: 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

Logged
rickconn
Jr. Member
**
Offline Offline

Posts: 3



« Reply #3 on: 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.