Hi All,
My problem is that currently, my navigation/left sidebar only appears on one page, the homepage/front-page.

I would like to get it to display on all pages across the site, rather than the text "back to homepage" link that is currently displayed upon clicking on articles and story links.

Any help is appreciated in advance,

Jon.

Comments

bcn’s picture

hi,

It sounds to me that maybe you need to configure the navigation block (in the block administration page) to be visible across (all paths) the site. It seems that maybe it is now set to "only show" on the '' page.

Alternatively, it could be a theme issue. Which theme are you using?

JonGirard-1’s picture

Hi,
Thanks for your reply

It seems that the navigation menu is indeed set to "show on every page except the listed pages" (and I haven't listed any).
For theming, my client has requested a complete custom theme, but in true fact, I am actually working with a severely modified version of bluemarine.

However, when I say "severely modified", I simply mean that I have completely changed the look, so it would be unrecognizable as being bluemarine, but in fact, the core files are still very simillar, if not untouched to the original bluemarine.

Could it be something I have changed in the page.tpl.php file perhaps? I haven't really changed anything much in the other .tpl.php files.
My page.tpl.php file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language ?>" xml:lang="<?php print $language ?>">

<head>
<title>Courtenay Story- a battle with lymphoblastic cancer</title>
  <?php print $head ?>
  <?php print $styles ?>
  <?php print $scripts ?>
  <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
  <style type="text/css" media="all">@import "themes/style.css";</style>
</head>

<body>

<div id="layoutholder">
<div id="headholder"></div>
<div id="bodyholder">

     
<div id="topcorners"></div>
<div id="bodycontainer">


<?php if (isset($secondary_links)) { ?><?php print theme('links', $secondary_links, array('class' =>'links', 'id' => 'subnavlist')) ?><?php } ?>

      <?php if (isset($primary_links)) { ?><?php print theme('links', $primary_links, array('class' =>'links', 'id' => 'navlist')) ?><?php } ?>

<?php if ($sidebar_left) { ?>
  <td id="sidebar-left"><div class="navigation" id="navigation">
      <?php print $sidebar_left ?> <?php }?>
	  </div>
 <?php print $breadcrumb ?>
       
        <?php print $messages ?>
        <?php print $content; ?>
        
        
		<?php  ?>

</div>
</div>

<?php print $closure ?>
</body>    
</html>

Thanks,
Jon.

acolyte26’s picture

may be the $sidebar variable is only in the page-front.tpl and it is missing from the page.tpl file, in that case it only shows in the front page.

JonGirard-1’s picture

Hi,
Thanks for your quick reply.

It seems that I don't even have a "page-front.tpl" file and only a "page.tpl" file with what seems to be $sidebar in it??
(code for page.tpl file is a few posts up)
Perhaps do I have to add the $sidebar variable to someplace else aswell as where it currently is?

Thanks

Jon

acolyte26’s picture

i just saw your page.tpl file and i could help but notice that there is a <td> tag , what is it for? and also that there isn't a closing tag for it, try removing that.

(Edited so tag would show, nevets)

JonGirard-1’s picture

Ah yes, the tag is actually to wrap my naviation in another div, and it was the only way that I could figure out how to do it (it's working too!). The reason I wrapped it in another div was because when I created my menu, I had an issue of the expanded bg images being disturbed when I tried to move the menu down any, so wrapping it in another container just gave it a little it more flexibility.

As for it's compatability issues with the rest of the script, I don't think it could be it because I just very recently added this, and was having the problem of the navigation not appearing on all pages even before I added it. :)

Could it be an issue of the $variable not being in another .tpl file?

Thanks,

Jon

tm’s picture

kinda learning through your issues, here...

a couple of things:
- my "div" math is not working out. could not "close" all the divs (could be my headache making me cross-eyed). see 6 "opens" and 5 "closes".
- on the "td" thing previously mentioned; the original bluemarine was a table-based theme, and you no longer seem to have any tables, so what is the "td" for? maybe another "div" and the associated close tag?

then, does your sidebar show up in the page source? wondering if it is a display/placement issue, or is there anything for the browser to interpret/display at all? and does this behavior carry through the other pages? i ask, because i get "content smashed into the right-margin" issues all the time when i try to "touch" things; oops!

thanks for bearing with the stupid questions. apologies if this does not help things any.

JonGirard-1’s picture

Hi,

Thanks for your reply.. my need for help a this point is desperate, as it seems I am the only one with this problem!! Do you believe I should create an "issue support" post?

As for the <td id="sidebar-left"> my guess is that it is something to do with the sidebar left just becuase of what it is called. As for why it is a table, I am not sure, but perhaps I should set it as a "div" rather than a td?

My sidebar/ navigation only seems to show up in the source code on the frontpage/homepage. As for all the other pages they are all blank with the source code only being displayed as:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
<title>Courtenay Story- a battle with lymphoblastic cancer</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/drupal/drupal-5.1/misc/favicon.ico" type="image/x-icon" />
  <style type="text/css" media="all">@import "/drupal/drupal-5.1/modules/node/node.css";</style>
<style type="text/css" media="all">@import "/drupal/drupal-5.1/modules/system/defaults.css";</style>
<style type="text/css" media="all">@import "/drupal/drupal-5.1/modules/system/system.css";</style>
<style type="text/css" media="all">@import "/drupal/drupal-5.1/modules/user/user.css";</style>
<style type="text/css" media="all">@import "/drupal/drupal-5.1/themes/bluemarine/style.css";</style>
    <script type="text/javascript"> </script>
  <style type="text/css" media="all">@import "themes/style.css";</style>
</head>

<body>

<div id="layoutholder">
<div id="headholder"></div>
<div id="bodyholder">

     
<div id="topcorners"></div>
<div id="bodycontainer">



      
	  </div>
        
                        
        
		
</div>
</div>

</body>    
</html>

, which I hardly think is normal? I'm beginning to think that I need to put the source for the sidebar in another file, aswell as the one it is currently in (page.tpl.php)..

Thanks Again,

Jon.

tm’s picture

what is that themes/styles.css file being imported? may not have any relevance to your issue, but just curious.

as far as the td tag, you probably should make it a div in the current context, but be sure to close the pair in any case.

anyway, do things work okay if you revert to an unmodified "core" theme? if they don't, it may not be (only) your theme. what happens if you set "node" as your default front page?

sorry, just SWAGing this.

JonGirard-1’s picture

Hi,

The themes/styles/css file is a file that it is importing iteself for some reason.. not to sure.
As for the td tag, I have changed it to div, and made sure that it was properly closed.

As for reverting to the original core files I came upon some very interesting, and intriguing results.
It seems that on the reverted bluemarine theme, I have no navigation whatsoever.
However, on the charmelon theme, I have navigation, but upon clicking on a link, I get directed to a page stating "page not found."

This is interesting to me because, why would the navigation show up in the new bluemarine theme, with design only customized, minimal core customization, and then not show up on the original bluemarine?

However, this is making me very suspicious now after the charmeleon incident. Perhaps my modified design is trying to tell me that upon clicking on a link such as about, or photos or something that I created, it is saying "page not found" but just not displaying the text. That would explain everything..

However, what truly puzzles me is why would the page not be found? Am I doing something incorrectly, I am simply creating new links and thinking that they are also creating the new corresponding pages, am I correct?

Also, how would I set "node" as my default front-page?

Thanks again
Your help is truly appreciated.

Jon

tm’s picture

you set your default front page in administer | site information. it's at the bottom.

saw another post this evening where the user, getting "page not found" errors, found that they had a folder in drupal root that was named the same as one of their paths. after that folder was removed (or renamed), things were fine. something else to chase. might also be a reserved word thing.

are you able to get to your logs, drupal, php, web, etc.? might give you some clues.

that style.css file seems out of place. wondering if you should move it out and re-save your theme configuration? i initially thought it may have been some leftover from a css aggregation function, but that makes a files/css folder. i don't have this file in any of my configs, so i thought to ask. so, what's in it?

also, consider moving customized themes to sites/all/themes; all custom/contrib stuff should be in sites/all (there is a readme file there. if you are using a customized version of bluemarine, consider renaming it during the move, so the names are not confused.

hope you find something. luck!

JonGirard-1’s picture

Hi,
Thanks again to all the help you've offered me. I feel now as if i'm very close to solving this problem.

My default page is infact already set to "node" so I didn't have to change anything there.
I also removed the mysterious style.css file as it was doing nothing, and actually did not even exist (as the logs proved).

I moved my customized theme to sites/all/themes but still with no success. You said put custom/contrib stuff just in themes/all > would that be modules and stuff?

I did make one discovery though, that when fixed, will solve everything.
Infact, upon checking my logs, the reason why I have no navigation on other pages, and for that matter nothing on other pages, is because on every link I have created, I am indeed getting page not found errors. It still does not display the words "page not found" on the page, nor in the source, but the logs did confirm that they were not being found (aswell as the charmeleon theme, which did display those words.)

So now the problem is not with the navigation anymore, but now simillar to the other persons problem of "page not found" errors.

I couldn't find any folders in the drupal root that was named the same as one of my paths, but then again I really had no idea what to look for.

Do you perhaps still have the link of the other persons post (page not found errors)?

Thanks again,

Jon.

tm’s picture

sorry, lost the trail to that other node. will run some searchers.

in the meantime, you have drupal content (nodes/teasers) on the front page? if you can click on the teaser title, does the resulting page display correctly?

JonGirard-1’s picture

Hi,

I actually had the teaser "read more" and teaser title link disabled. However, for this test I re-enabled the teaser "read more" link (forgot how to re-enable title links :&).

Upon clicking on the read more link, the user does get moved to the full length story, at a destination of "?q=node/2".
Also, there is a home link, and navigation on that page too.

Other links however, continue to not work, proceeding one to a blank ("page not found") page.

I've been reading some articles, and one said this problem could be resulting from a line missing from the .htaccess file?
(http://drupal.org/node/145227)

Jon.

tm’s picture

at least you know your whole site is not broken... may i ask what is the construct of the menu/link? generally, the internal links in drupal can omit drupal_home, and no leading slash in menus; you need the slash for anchor tags.

doing a google search on (links "page not found " site:drupal.org), you mght see something that resonates. one in particular caught my attention: http://drupal.org/node/161106

JonGirard-1’s picture

Hi,

I have found something strange,
in my menu settings, when I change the about link that was leading me to a "page not found", if I change the path from "about" to "node/3" or something it will take me to my front page article..

In the link you posted, I'm starting to think it's my .htaccess file (which I cannot find) or something in the database.

Thanks,

Jon.

tm’s picture

do you have an "about" alias in your url aliases (need to have path module enabled)? that is how you get your "nice names", manually.

if "node/x" is coming up, don't think you have an .htaccess problem, unless you have custom mod-rewrite rules.

JonGirard-1’s picture

Hi,

I've enabled path, and upon setting my link back to "about" for the path, I get back to the same problem.. blank page no navigation.. evidentally "page not found."

I haven't ever created an alias for "about" though, which is most likely the problem, how would you go about doing that?

Thanks,

Jon.

tm’s picture

so i don't rewrite the wheel and/or make it square: http://drupal.org/handbook/modules/path

path is a core/included module, but not enabled by default. if you do not want to do this url alias stuff manually, you should investigate the contributed modules/projects; one that seems to come up often is pathauto.

if you have not done so, you may wish to read nancyw's handbook page at http://drupal.org/handbook/customization/tutorials/beginners-cookbook. drupal takes a bit to get the head around, but it is worth it.

good luck!

JonGirard-1’s picture

that all seems to be working fine now, but one last final question!

How would I get the content on "?q=about" to not bring up the "node/x" AKA frontpage content?

I'm sure this is simple to do, but one of your wonderous explanations would be very much appreciated

Thanks for everything

Jon

tm’s picture

don't understand the question. by "frontpage" content, do you mean the teasers (don't know why it would do this, properly created), or the sidebars and such (block visibility)?

JonGirard-1’s picture

Hi,

Sorry I figured out what I was trying to do..

I had to set the path on the page content I was trying to post.
I'm now looking into the path auto module, but wondering if it is stable enough for use.. (only in beta)..

Thanks again for all your help, you have helped me through this situation.

Jon.

tm’s picture

you can determine the viability of the of the module by the support queue. if it moves quickly, you will probably be okay. as far as the beta goes, that is for the .2 version; you can look in the all version link for the last "stable" version. guessing it should be okay, though (in this case); it is being maintained by a reputable group.

funny; i entered this thread confused, and left confused. sigh...

good luck!

JonGirard-1’s picture

Well you have one thing you shouldn't feel confused about..
you helped someone acheive something, fix something.

Once again thanks for everything.

I'm no-where near to being finished this project though.. still have a very long ways to go!! Thanks for the good-luck! I'm gonna need it!

Out.
Jon.

JonGirard-1’s picture

Please! I know somebody out there knows how to do this, and so far by searching I have not been able to find anyone with a similar problem!
I need help getting this menu to show up on all pages of the site.

Thanks,

Jon.

taisto’s picture

Since this was such an similar match to my problem, I'll just mention....that I've got exactly the same problem on my 5-hour old site I just set up, but ONLY on the predefined error-404 page.

Its a brand new installation(5.x, garland theme) with *nada* php-customisations, and when clicking on a link that doesnt go to a valid page, the navigation-bar disappears, even though its set to show on all pages. (Tried with a
as well, but no.)

--TQ--

johnalbin’s picture

Unfortunately, if you are putting your site navigation in a block, Drupal doesn't display blocks on Page Not Found pages.

You'll have to edit your theme's template.php file and add the following function:


/**
 * Allow blocks to be displayed on 404 (page not found) error.
 */
function THEMENAME_page($content, $show_blocks = TRUE) {
  return phptemplate_page($content, TRUE);
}

Replace THEMENAME with the name of your theme. For example, if you are using Garland, use garland_page as the function name.

  - John (JohnAlbin)

  - John (JohnAlbin)