Forums

Use Title of the previous page

D-designing 12 Mar, 2012
He all,

I want to have a contact form on a page. But on the top of this page must be the title of the previous page. I use K2 items. The title of the privious page i need so visitors can see for what page they send a message.

Who can help me out with this?

Greats,
Dennis
GreyHead 12 Mar, 2012
Hi Dennis,

I don't' know anything about K2 but if you can grab the title and pass it to the form in the link then displaying it is easy enough.

Bob
D-designing 12 Mar, 2012
First of all thanks for youre reply. Thats not a option beceuase the contact form can be called from 50 different page's. So it has to be autmaticly and not insert the title by hand. Is that possible?
GreyHead 12 Mar, 2012
Hi Dennis,

I wasn't suggesting that you did it by hand - you need to get it on the K2 page somehow. If you have a from in an ordianry Joomla! article then you can get the Page title or the document ID and use that.

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