The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun May 06, 2012 10:44 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun May 06, 2012 10:36 am
Posts: 2
Hi everyone!
I'm running Joomla 2.5 and it works great!

Though I have a problem that's really bugging me!

I have some pages on my site that is dynamic generated by php (using jumi)
I'm using strings to get information about dog breeds..
Like this: http://hundkartan.se/index.php/Hundrase ... npinscher&rasid=939
(Using sh404sef also)

The <title> is always: "Hundras | Hundraser" (Article | Category)

I want to do something like this:
if (isset($_GET['rasid'])) {
$title = $row['name'];
}
else {
do nothing
}

Any ideas? :)


Last edited by imanickam on Sun May 06, 2012 4:24 pm, edited 1 time in total.
Your other post with the text "Anyone?" that was used to bump the topic has been deleted. Please be informed that bumping is not allowed as per fhe forum rules.


Top
 Profile  
 
PostPosted: Fri May 11, 2012 8:16 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun May 06, 2012 10:36 am
Posts: 2
I kind of solved it (But not on the ultimate way)..

I did like this...
Open: libraries/joomla/document/html/renderer/head.php

Right after the line: defined('JPATH_PLATFORM') or die;

if (isset($_GET['test'])) {
$mytitle = $_GET['mytitle'];
echo '<title>'.$mytitle.'</title>';
}


and instead of this line:
$buffer .= $tab . '<title>' . htmlspecialchars($document->getTitle(), ENT_COMPAT, 'UTF-8') . '</title>' . $lnEnd;

if (empty($_GET['mytitle'])) {
$buffer .= $tab . '<title>' . htmlspecialchars($document->getTitle(), ENT_COMPAT, 'UTF-8') . '</title>' . $lnEnd;
}
else {}



The <title> is now changed, but before the head-tag (don't know if thats bad)


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



Who is online

Users browsing this forum: No registered users and 14 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