- Posts: 17
COMMUNITY FORUM
Get title of K2 item in full view
- mihha
- Topic Author
- Offline
- New Member
Less
More
14 years 5 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.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 5 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.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 5 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
William White said:If you are within the display loop of a k2 item try this
Please Log in or Create an account to join the conversation.
- Simon Wells
- Offline
- Platinum Member
Less
More
- Posts: 955
14 years 5 months ago #84345
by Simon Wells
Replied by Simon Wells on topic Get title of K2 item in full view
Please Log in or Create an account to join the conversation.
- mihha
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
14 years 5 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
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.