Keyword

K2 heading (H1) in module

  • NormanBLN
  • NormanBLN's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 6 months ago #148218 by NormanBLN
K2 heading (H1) in module was created by NormanBLN
Hello,
We would like to create a contact call to action space in our article. Our idea is
“If you have questions to our article [heading:xzy] write us a comment or send us an email”
We will create a module position and load this module automatically on this position. Our question is how we can automatically fill the headline from the heading (h1) [heading:xzy] ?

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

More
8 years 6 months ago #148222 by Lefteris
Replied by Lefteris on topic K2 heading (H1) in module
Hi,

You can't do this easily through a module. You need to get the item id variable from the URL and then query the database to get the item title.

I suggest to implement this in a plugin so, all the item data is already available.

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

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

  • NormanBLN
  • NormanBLN's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 6 months ago #148233 by NormanBLN
Replied by NormanBLN on topic K2 heading (H1) in module
Hi,
thnaks for your answer. Okay and how I do that?

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

More
8 years 6 months ago #148250 by Lefteris
Replied by Lefteris on topic K2 heading (H1) in module
This is not that simple so i can tell you how to do it. You need basic programming skills to build a plugin. We do have an example K2 plugin at github.com/joomlaworks/example-k2-plugin . You can study the code there and modify it according to your needs.

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