Keyword

Get title of K2 item in full view

More
13 years 11 months ago #84342 by mihha
Get title of K2 item in full view was created by mihha
Hi,I am trying to place chronoform at the bottom of each K2 item in a full view (this part work).One of form's field should contain current item's title so visitors can just fill in their name to request more info about current service that is explained in this item.Can someone please give me a hint how to achieve this?I tried with the following code placed in chronoform but this just returns "K2" as item title:$mainframe->getPageTitle();Thanks for your help!

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

More
13 years 11 months ago #84343 by william white
Replied by william white on topic Get title of K2 item in full view
If you are within the display loop of a k2 item try this

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

More
13 years 11 months ago #84344 by william white
Replied by william white on topic Get title of K2 item in full view
Sorry, see attached

William White said:If you are within the display loop of a k2 item try this
Attachments:

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

More
13 years 11 months ago #84345 by Simon Wells
Replied by Simon Wells on topic Get title of K2 item in full view
That should fix it, does it?

Simon
K2 Support
Check simon.getk2.org for handy K2 guides

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

More
13 years 11 months ago #84346 by mihha
Replied by mihha on topic Get title of K2 item in full view
I must admit that I didn't try this solution because I don't know PHP so much to understand what "If you are within the display loop of a k2 item try this" means.

I have followed suggestion about Phil Taylor's JoomlaForms from this topic:
community.getk2.org/forum/topics/contact-forms-in-k2-items?c...

You can see result here (multilingual in English and French):
montrealstaysconcierge.com/services/gift-shopping-services/u...

Never the less, I would really like to learn solution for ChronoForms because I use this extension a lot in my sites and placing form in K2 item is something I require from time to time




Simon Wells (K2 Support) said:That should fix it, does it? Simon K2 Support
Check simon.getk2.org for handy K2 guides

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


Powered by Kunena Forum