Forums

Add page title to form's page

ktsixit 09 Apr, 2009
Hello and thank you for this wonderful component.

I have created two forms. In Forms Management page there is a list of all created forms and for each form there is a Link url address. I use these addresses to link to the form's pages in a Joomla Article. The redirection works fine, the forms too.

But I'd like to add a Page Title to each form page. How can I do that?
GreyHead 09 Apr, 2009
Hi ktsixit,

Try this in the Form HTML
<?php
global $mainframe;
$mainframe->setPageTitle('some title or other');
?>

Bob
ktsixit 10 Apr, 2009
Perfect! Thank you very much! I wouldn't find this by myself.
You offer great support in this forum and we all appreciate it a lot
tracey 09 Jul, 2009
Hi, thanks from me too for a fantastic component. Im using it for the first time and have it easy to install and set up.

I would like to add an image to my form though and wondered whether I can use this code and replace the text 'some title or other' with a link to an image?

Would this be the way to do it?

If not can you tell me please,

Tracey

<?php
global $mainframe;
$mainframe->setPageTitle('some title or other');
?>
GreyHead 09 Jul, 2009
Hi Tracey,

You can't set the Page Title to be an image - it has to be a text line.

You can add images to your form though. Use an html <img . . .> tag in the Form HTML.

Bob
tracey 12 Jul, 2009
Of course!
Thanks very much
This topic is locked and no more replies can be posted.