Register | FAQ Search Today's Posts Mark Forums Read
Old 12-07-2008   #1 (permalink)
RPG Messiah
Guest
 
RPG Messiah's Avatar
[+] more user info
 
 
Posts: n/a
Article Index Page Titles



Joomla 1.5.7
Website: www.galanovagames.com (currently offline for development)



Hey everyone, I was just wanting to know how I can edit the formatting of the article index page titles. The current format is:

Article Title - Page Title

Click the image to open in full size.


I\'d rather it just be: Page Title

This is because I already have the title of the article showing at the top so it seems pointless to have the title showing twice on every page.

I already tried searching everywhere for a simple solution to this but couldn\'t find anything. I know that stuff is dealt with in the /plugins/content/pagebreak.php but I\'m not sure what to change or take out. I\'m pretty sure it\'s in this portion somewhere:

Code:
// adds heading or title to <site> Title
		if ( $title )
		{
			if ( $page ) {
				$page_text = $page + 1;
				if ( $page && @$matches[$page-1][2] )
				{
					$attrs = JUtility::parseAttributes($matches[$page-1][1]);

					if ( @$attrs[\'title\'] ) {
						$row->page_title = $attrs[\'title\'];
					}
				}
			}
		}
Any help would be greatly appreciated.
  Reply With Quote
This is a Advertisement. Sign up to have these ads removed.
Old 12-08-2008   #2 (permalink)
Matt
Guest
 
Matt's Avatar
[+] more user info
 
 
Posts: n/a
Re:Article Index Page Titles



I would just turn it off. Go into your Joomla backend.

Menu/Main menu/Home-> then click \"Parameters component\" and then turn off the article titles or edit the settings however you desire.
I believe you can override this per article as well when you are editing the article.
  Reply With Quote
Old 12-08-2008   #3 (permalink)
RPG Messiah
Guest
 
RPG Messiah's Avatar
[+] more user info
 
 
Posts: n/a
Re:Article Index Page Titles



Thank you for the quick reply after your weekend break B)

Ok, after playing around with the title settings throughout the backend some more I have a clearer picture of what I\'m trying to accomplish. So my question has changed slightly:

The subject is the page title....not the article title. I went under Menus-->mainmenu-->RM2K3 (my desired category)-->Parameters (System) and set \"Show Page Title\" to no. This gave me the desired effect I wanted for the articles held within:)

But now it doesn\'t show the Category title (RM2K3) for the Category list layout. How can I show the category title without it turning on the page titles for the articles within that category?


Category list layout (title not showing)
Click the image to open in full size.
  Reply With Quote
Old 12-09-2008   #4 (permalink)
Matt
Guest
 
Matt's Avatar
[+] more user info
 
 
Posts: n/a
Re:Article Index Page Titles



What template is this? It doesnt look like one of ours.
  Reply With Quote
Old 12-09-2008   #5 (permalink)
RPG Messiah
Guest
 
RPG Messiah's Avatar
[+] more user info
 
 
Posts: n/a
Re:Article Index Page Titles



Yea sorry, this is a different template for one of my other sites. I managed to figure out how to do what I wanted! I got my 1st experience with template overriding so I was able to figure out a solution. For the sake of possibly answering someone\'s future question I\'ll share how I did it.

I went to /components/com_content/views/category/tmp/default.php and copied that file to /templates/\"template name\"/html/com_content/category/ (I had to create the last 2 directories)

All I did then was delete the conditional statement in the following portion of code that shows the title since I don\'t want the \"Properties (System)\" to control whether it shows or not:
Code:
<?php if ($this->params->get(\'show_page_title\', 1)) : ?> <--------Remove
<div class=\"componentheading<?php echo $this->params->get(\'pageclass_sfx\');?>\">
	<?php echo $this->escape($this->params->get(\'page_title\')); ?>
</div>
<?php endif; ?> <--------Remove
I really appreciate you taking the time to try to help me out. Can\'t get any assistance at .org.....
  Reply With Quote
Old 12-09-2008   #6 (permalink)
Matt
Guest
 
Matt's Avatar
[+] more user info
 
 
Posts: n/a
Re:Article Index Page Titles



Well I am happy you got it figured out hwo you wanted it. :) Thanks for sharing your solution to everybody.
  Reply With Quote
This is a Advertisement. Sign up to have these ads removed.
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
You can help me set up the so index.php template f xml Zappa 17 02-09-2009 11:50 PM
Anyway to spilt menu titles to 2 lines? dmunz Rational Magic (discontinued) 1 09-14-2008 11:31 AM
Change Font in Article Titles brett man Snappa 3 08-29-2008 11:22 AM
Article Separators for Front Page marcsitkin Rational Magic (discontinued) 2 07-29-2008 06:01 PM
Article Seperator Displaying On Every Page showmecreative Ario Light 5 07-08-2008 03:54 PM

Forum by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1 Downloads powered by vBadvanced Dynamics v1.1.0.