The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Aug 06, 2012 9:43 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Aug 01, 2012 8:39 pm
Posts: 2
I have taken over a Joomla site created by a 3rd party. Due to a serious falling out, we can't go back to them with questions. I'm fairly new at this, but learning a lot.

It's a fairly simple site structure, with two templates - one for the home page and one for the other pages. The latter seems to be at issue here.

Ostensibly the page title that appears on the generated pages should be taken from the title that's listed for the article that makes up the page, but when I change the latter, it doesn't show up on the former. We have another Joomla site where this actually does work, and I don't know what's wrong / different with this one.

The snippet of template code that sets the various non-home page titles (and content) is as follows:

<div id="sub-content">
<a href="<?php echo $_SERVER['REQUEST_URI'] ?>"> <h1 id="page-title"><?php echo $this->title ?></h1></a>
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>

I know this is the correct snippet because when I change $this->title to a string constant, that constant does appear as the new title on the generated page. However, when I change the article title, no change appears on the generated page. But I don't know where ELSE $this->title could be pulling the title from.

I've done some searching on the Web for the proper way for a template to set the page title, and found two variations of $this->title. I've tried both variations: $this->getTitle() and $this->get("title") . Both gave the same results, so it appears they are just syntax variations for the same thing.

We do have SEO friendly URLs turned on, and currently the SEO alias is set to the same string as the title. I tried changing the alias too, but it seemed to have no effect whatever.

The site is http://stenocalltowerstorage.com , and the page whose title I'm experimenting with is http://stenocalltowerstorage.com/units . In the article edit screen I change the title from Units to something like Description of Storage Units, but still the generated page shows Units.

Any ideas?


Top
 Profile  
 
PostPosted: Thu Aug 23, 2012 7:52 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Aug 01, 2012 8:39 pm
Posts: 2
Well, looks like I managed to stump absolutely everyone on this question! (Not intentionally of course.)

I finally did stumble onto the solution for this. It turns out the title of all the non-front-pages was being drawn, not from the article, but from the Menu Manager section -- specifically the Menu Title of each entry in the Main Menu.

Not sure why this would happen, especially since the template code seems to be using the method that's documented to pull the title from the title of the article. If anyone knows why this would happen, I will appreciate being enlightened.

Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 



Who is online

Users browsing this forum: nevodj and 9 guests


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 post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group