Forums

Noob qiestion

webbuilders 12 Mar, 2009
Hi i use chrono form and is great.

I want to make a noob question .

My form is working properly in the front end. My problem is that i want the title of this component to be as everyone else in my site .
So i went to main menu -- menu and set show page title "example" but nothing i see only the text i have written before the fields

How can i have the title shown ??

thanks.
webbuilders 13 Mar, 2009
i used this code In Form HTML
<?php global $mainframe;
$title = "Your Title";
$mainframe->setPageTitle($title);
?>


But nothing. Where shall i add it .??
Max_admin 13 Mar, 2009
the form title was not changed ? try:

$document =& JFactory::getDocument();
$document->setPageTitle('my title');
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 13 Mar, 2009
Hi webbuilders,

I think the method is now just setTitle() so please try
<?php
$document =& JFactory::getDocument();
$document->setTitle('my title');
?>

Bob
gnubler 03 Aug, 2009
I've searched the forum and tried all the methods listed in this thread, but I still can't get a page title to show up. Like the OP stated, in my menu item parameters I entered a Page Title and checked Yes, but no title shows up on the page itself (only the browser window title).

I'm entering this page title PHP code above all the HTML of my form code - is that correct? Nothing shows up on my page, not in the source code either.

<?php global $mainframe;
$title = "Contact Us";
$mainframe->setPageTitle($title);
?>


I also tried this code and still nothing:

<?php
$document =& JFactory::getDocument();
$document->setTitle('Contact Us');
?>


Help!
gnubler 03 Aug, 2009
I think for now the easiest solution is to just put a form into an article and create a menu item for that article - when I do that the page title is showing up. When I made a menu item from the component I just can't get a page title to show up no matter what I try.
GreyHead 03 Aug, 2009
Hi gnubler,

One of those snippets, probably the setTitle one, in your Form HTML should to the trick. Please post a link to the form if it's on-line.

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