Metatag for Title of form

deafbiz 31 Jul, 2007
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
GreyHead 31 Jul, 2007
Hi deafbiz,

I think you can do it with
$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
Max_admin 31 Jul, 2007
Hi deafbiz,

How did it go ? Please let us know!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
deafbiz 31 Jul, 2007
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
GreyHead 31 Jul, 2007
Hi deafbiz,

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

The first part is set in your Global Configurations.

Bob
deafbiz 31 Jul, 2007
Awesome, it works! Didn't even have to mess with Global Configurations.
This should be a "sticky"
alexthecatta 14 Jun, 2010
Hello everybody,

I'm managing a site that runs with joomla 1.0.15. I've customized all the tag TITLE, except for the 3 forms I have.

Let's take this one for example:
http://www.3imballaggi.it/index.php?option=com_chronocontact&chronoformname=Preventivo&Itemid=60

In the Joomla control panel, I select Chrono forms --> forms management, then I choose "Preventivo" that is the form mentioned above, then I select the "Form Code" tab.

Here, in the "Form HTML" option I add the following code:

<?php 
global $mainframe;
$mainframe->setPageTitle("My Title"«»);
?>


But I do no get any benefit: the TITLE do not change. Can you pls help me?
GreyHead 14 Jun, 2010
Hi alexthecatta,

'$mainframe' is Joomla 1.5 speak not Joomla 1.0. I don't remember what the Joomal 1.0 equivalent was I'm afraid.

Bob
This topic is locked and no more replies can be posted.