Support Forums

Home Page Title

This is a discussion on Home Page Title within the Technical Support forums, part of the Technical Support Forums category; Hello, When a new page is created within the admin section the title field used appears on the website. However, ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 04-06-2009, 07:28 AM   #1
Junior Member
 
Join Date: Mar 2009
Posts: 20
Rep Power: 6
Kyan is on a distinguished road
Default Home Page Title

Hello,

When a new page is created within the admin section the title field used appears on the website. However, this is not the case for the Home page. What do I have to do to get the title for the Home page to appear? For various reasons I do not use the home.tpl page so I need the title to appear in the home page used within the admin alone. I'm currently using my home page as a How It Works page and would really like this title to appear within a bar displayed just above the body as I have for all other pages created within the admin.
__________________
Thanks,

v4.1.2 - Developer
Kyan is offline  
Old 04-06-2009, 08:00 AM   #2
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,937
Rep Power: 57
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Well, I'm not sure exactly how you are doing what you say, but the pages title for pages created with the admin simply use a header 1 XHTML element <h1>page title</h1>.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Old 04-06-2009, 11:05 AM   #3
Junior Member
 
Join Date: Mar 2009
Posts: 20
Rep Power: 6
Kyan is on a distinguished road
Default

My page title tag is located within my layout.tpl just above the body like this:

Code:
{if $title}{$title}{else}Site Title{/if}
Just above:

[code]{include file=$body}
__________________
Thanks,

v4.1.2 - Developer
Kyan is offline  
Old 04-06-2009, 11:07 AM   #4
Junior Member
 
Join Date: Mar 2009
Posts: 20
Rep Power: 6
Kyan is on a distinguished road
Default

Sorry the last part of my last post was cut off, below is the continuation:

If I were to use a use a header 1 XHTML element <h1>page title</h1> in the admins home page I would basically have two page titles, one within my home page and the other within my layout.tpl. The title tag works for all pages created within the admin's Page Editor except �Home�, how do I enable the home page title tag?
__________________
Thanks,

v4.1.2 - Developer
Kyan is offline  
Old 04-06-2009, 01:10 PM   #5
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,666
Rep Power: 65
seymourjames is a jewel in the rough
Default

I am a little confused what you are asking but in your admin control panel, you have main settings and you can define the site title. In the default situation (you have not modified anything), this should come up on your home page.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline  
Old 04-06-2009, 01:17 PM   #6
curmudgeon
 
Join Date: Mar 2006
Posts: 5,223
Rep Power: 128
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by seymourjames
I am a little confused what you are asking but in your admin control panel, you have main settings and you can define the site title. In the default situation (you have not modified anything), this should come up on your home page.
I think what he is saying is that he is not using the default home page but instead using an admin created "extra page" and he wants the site title from the home page to show when viewing his new admin created extra page which is replacing his home page.

If thats the case I am confused as to why the home page template isnt just modified to remove whats not desired (ie categories etc).
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 04-06-2009, 01:49 PM   #7
Junior Member
 
Join Date: Mar 2009
Posts: 20
Rep Power: 6
Kyan is on a distinguished road
Default

Within admin, then Settings/Page Editor there are 4 default pages. The first default page is �Home� with ID #1. Then there's �Terms & Conditions� with ID #2, then �About� at ID #3 and �Contact� at #4. The latter 3 pages display a Title according to what is entered within the �Page Name� field of the Page Editor and displays the page name by way of $title. Any new page I create within the Page Editor also displays the Page Name by way of $title. �Home� or ID #1 does not, it has been disabled as most people do not need to have the words �Home� displayed on their home page. I however would like for whatever I type in the �Page Name� field of page ID #1 to display by way of $title just like all the other pages.
__________________
Thanks,

v4.1.2 - Developer
Kyan is offline  
Old 04-06-2009, 01:54 PM   #8
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,467
Rep Power: 130
Eric Barnes is just really nice Eric Barnes is just really nice
Default

When editing that page couldn't you just add it in the description field:
Code:
<h1>My Home Page Title</h1>
<p>the rest of the page text.</p>
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 04-06-2009, 02:19 PM   #9
Junior Member
 
Join Date: Mar 2009
Posts: 20
Rep Power: 6
Kyan is on a distinguished road
Default

No because I use $title in my layout.tpl. I have a border around my content with a top bar displaying $title. If I add it to the description I will have two titles. One will be the default $title, displayed within my layout.tpl which I have set to display the site title if no page titles are assigned (which seems to be the case with page ID #1) and the second (if put in the description) will display within the content, just below $title. For page ID #1 no title displays when using $title. I would like it to.
__________________
Thanks,

v4.1.2 - Developer
Kyan is offline  
Old 04-06-2009, 02:28 PM   #10
curmudgeon
 
Join Date: Mar 2006
Posts: 5,223
Rep Power: 128
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by Kyan
For page ID #1 no title displays when using $title. I would like it to.
I have to apologize if I am still not following you BUT If $title doesnt display when when using page ID1, how about adding logic to layout.tpl to check to see if its empty and if so use a hard coded value...

{if $title ==""}
then display this text
{/if}
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Home Page Problem 2 go3matix Technical Support 3 02-03-2009 12:26 AM
placing a video on my about us page or the home page?? apotrader Technical Support 4 11-04-2008 10:11 PM
Different Template for home page RyanG Templates, HTML, CSS, and Design Help 11 01-18-2007 10:46 AM


All times are GMT -4. The time now is 03:04 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0