|
|
#1 |
|
Junior Member
Join Date: Mar 2009
Posts: 17
Rep Power: 1 ![]() |
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 |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,356
Rep Power: 41 ![]() ![]() |
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 v3.1.10 Developer IndianaPC.org - A community website Sandbox v4.0.9, 4.1 Templates, Mods & Docs for sale | My blog with much content for 68 Classifieds. Web Hosting | Web Design & Development | 68 Classifieds Customizations I am not a 68C employee, just a user and try to help out |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Mar 2009
Posts: 17
Rep Power: 1 ![]() |
My page title tag is located within my layout.tpl just above the body like this:
Code:
{if $title}{$title}{else}Site Title{/if}
[code]{include file=$body}
__________________
Thanks, v4.1.2 - Developer |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Mar 2009
Posts: 17
Rep Power: 1 ![]() |
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 |
|
|
|
|
|
#5 |
|
Moderator
Join Date: Mar 2008
Posts: 813
Rep Power: 22 ![]() |
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.
|
|
|
|
|
|
#6 | |
|
Moderator
Join Date: Mar 2006
Posts: 4,166
Rep Power: 102 ![]() ![]() |
Quote:
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. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Mar 2009
Posts: 17
Rep Power: 1 ![]() |
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 |
|
|
|
|
|
#8 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,810
Rep Power: 111 ![]() |
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 Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Mar 2009
Posts: 17
Rep Power: 1 ![]() |
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 |
|
|
|
|
|
#10 | |
|
Moderator
Join Date: Mar 2006
Posts: 4,166
Rep Power: 102 ![]() ![]() |
Quote:
{if $title ==""} then display this text {/if}
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Home Page Problem 2 | go3matix | v4 Questions & Support | 3 | 02-03-2009 12:26 AM |
| placing a video on my about us page or the home page?? | apotrader | v4 Questions & Support | 4 | 11-04-2008 10:11 PM |
| Ad Title as Page Title | sbhkma | v3.1 Questions & Support | 2 | 11-19-2007 08:38 AM |
| Different Template for home page | RyanG | HTML, CSS, and Design Help | 11 | 01-18-2007 10:46 AM |