how do I override home links?

Phatchopolis - January 2, 2009 - 21:37
Project:Front Page
Version:6.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Dublin Drupaller
Status:duplicate
Description

So I use this so people have to click a page agreeing they're 18 before proceeding into the site. That works like a charm. The problem is unregistered blokes who click the home link and the like keep getting kicked back to the agreement page. So I used the "Override your HOME breadcrumb links" feature to redirect site home links to /node but that doesn't seem to be working. Any idea how to fix it?

#1

davidafuller01 - November 11, 2009 - 14:22

I'm also have a problem with "Redirect your site HOME links". I have checked the box, entered http://www.broomfieldsoccerclub.org/frontpage as the redirect target, then saved the config. Not working. Viewing the site as an unauthenticated user, I can click the logo in the upper left of any page or any Home breadcrumb and I'm sent back to the splash sitting on http://www.broomfieldsoccerclub.org/. Give it a try...

I can recreate this effect with Google Chrome 3.0.195.27 and MS IE 8.0.7600.16385.

Have I missed a config setting somewhere or is setting it to /frontpage causing the problem?

#2

Dublin Drupaller - November 11, 2009 - 14:40
Assigned to:Anonymous» Dublin Drupaller

@david & phat. The "home breadcrumb redirect override" ONLY overrides the home breadcrumb. It doesn't affect your site logo link.

You can use some php in your page.tpl.php file to wrap your LOGO link to achieve something similar. Although, if you have the breadcrumb override enabled, it should be sufficient to change your logo link in your page.tpl.php to point to 'front_page'....in other words, it will pick up the breadcrumb override.

can you try that?

dub

.

#3

davidafuller01 - November 11, 2009 - 15:44

Thanks for the quick response. The module doesn't appear to be overriding the Home breadcrumb or the site logo link. I understand your comments on the site logo link (see below), but not sure why the breadcrumb bit isn't working.

Re: the site logo link, I'm afraid I'm not much good with PHP. My site uses the default Garland theme. I found a page.tpl.php file sitting in /themes/garland. Is the bit of code below what you are talking about? I have NOT edited this code... should I change $front_page to $frontpage? Did your module change the code to $front_page and will your module override any manual changes I make to page.tpl.php every time I deactivate / activate the module? Just trying to understand the functionality a little better.

          if ($logo || $site_title) {
            print '<h1><a href="'. check_url($front_page) .'" title="'. $site_title .'">';
            if ($logo) {
              print '<img src="'. check_url($logo) .'" alt="'. $site_title .'" id="logo" />';
            }
            print $site_html .'</a></h1>';
          }

#4

Dublin Drupaller - November 11, 2009 - 16:45

@david

re: breadcrumb link. What node are you redirecting the HOME link to at the moment?

#5

davidafuller01 - November 11, 2009 - 17:38

The default. I haven't changed the breadcrumbs (not sure how to do that?). It just goes to the / node (i.e. http://www.broomfieldsoccerclub.org/). Does that make sense?

#6

Dublin Drupaller - November 11, 2009 - 18:03

On the front page module settings page.....under REDIRECT HOME BREADCRUMB LINK...do you have it enabled and what node are you redirecting the HOME BREADCRUMB link to at the moment?

#7

Dublin Drupaller - November 12, 2009 - 08:57
Title:Breadcrumb Redirect not functioning» how do I override home links?
Status:active» by design

unable to recreate the problem you're having David. Can you reopen this issue if you're still stuck?

cheers

Dub

#8

davidafuller01 - November 13, 2009 - 16:40

Dub - Sorry for the slow response. I got pretty busy the past 48 hrs and just now coming back to this. Re: your question in #6, I have checked the box and entered http://www.broomfieldsoccerclub.org/frontpage (not /front_page) as the redirect target.

FYI... I am running Drupal 6.1x and Front Page 6.x-1.2.

#9

Dublin Drupaller - November 13, 2009 - 17:32
Status:by design» duplicate

no worries. a quick guess is that it's a cache issue. can you try installing the cache exclude module as per this thread here: http://drupal.org/node/604974#new

 
 

Drupal is a registered trademark of Dries Buytaert.