Keyword

Display Page Title in Form Results?!?!?

  • Lance Thompson
  • Lance Thompson's Avatar Topic Author
  • Offline
  • New Member
  • Making the Web Work For You
More
12 years 1 month ago #102279 by Lance Thompson
Display Page Title in Form Results?!?!? was created by Lance Thompson
I've used Phil Taylor's bfForms before to grab the K2 item title and display it in the form's results but now it won't work and I can't get an answer from Phil so I hope anyone here can help.

I've got a volunteer website that each K2 item is a project and there will be dozens or hundreds of items. I've created one form that I show on the K2 item page and it should grab the page title and display it in the results. Right now it's grabbing the menu alias instead of the page title...

Can anyone help and lead me in the right direction?

Not being a programmer, here's the code I THINK is the code that is supposed to grab the title:
					
Lance Thompson - Blue Sky Web Worx
Web Design, SEO, Graphic Design
www.BlueSkyWebWorx.com

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago #102280 by Lefteris
Replied by Lefteris on topic Re: Display Page Title in Form Results?!?!?
Hi. The following code in Joomla! gives you the current page title:
<?php
$document = JFactory::getDocument();
$title = $document->getTitle();
?>

Beside that i have never worked with the extension you are mentioning so i cannot help you further.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum