Metatag for Title of form

Post any questions you may have here

Metatag for Title of form

Postby deafbiz on Tue Jul 31, 2007 12:56 am

Almost every form I created is linked at the Main Menu. However the Title Metatag is at the mercy of the Global Configuration. How do I add a Title to a form page?
<Title></Title> format in the HTML doesn't work.
Thanks,
JG
deafbiz
Senior Boarder
 
Posts: 42
Joined: Mon Jun 18, 2007 4:10 pm

Re:Metatag for Title of form

Postby GreyHead on Tue Jul 31, 2007 4:14 am

Hi deafbiz,

I think you can do it with
Code: Select all
$mainframe->setPageTitle( "My Title" );
You'll probably need to ensure that $mainframe is initiated either with a global declaration or by instantiating the class.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3417
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Metatag for Title of form

Postby admin on Tue Jul 31, 2007 4:45 am

Hi deafbiz,

How did it go ? Please let us know!

Cheers

Max
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3181
Joined: Mon Aug 14, 2006 5:29 am

Re:Metatag for Title of form

Postby deafbiz on Tue Jul 31, 2007 5:37 am

I see only three files that have "$mainframe-"
in chronocontact v2.2

I now have 4 forms on one website so how do I make each one have their own title?

JSG
deafbiz
Senior Boarder
 
Posts: 42
Joined: Mon Jun 18, 2007 4:10 pm

Re:Metatag for Title of form

Postby GreyHead on Tue Jul 31, 2007 1:22 pm

Hi deafbiz,

Add this code to the beginning of your 'Form HTML' on the 'Form Code' tab
Code: Select all
<?php
global $mainframe;
$mainframe->setPageTitle("My Title"«»);
?>
This will add 'My Title" to the page title like this: Image

The first part is set in your Global Configurations.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3417
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Metatag for Title of form

Postby deafbiz on Tue Jul 31, 2007 9:41 pm

Awesome, it works! Didn't even have to mess with Global Configurations.
This should be a "sticky"
deafbiz
Senior Boarder
 
Posts: 42
Joined: Mon Jun 18, 2007 4:10 pm


Return to ChronoForms Questions & Answers

Who is online

Users browsing this forum: morph and 6 guests