- Posts: 35
COMMUNITY FORUM
Adding Module Positions to K2 Content
- Heather
- Topic Author
- Offline
- Junior Member
Less
More
15 years 1 month ago #71018
by Heather
Adding Module Positions to K2 Content was created by Heather
I would like to add a few module positions to the item view of K2 content for a sports site I am working on (a big deal).
They'd like to have a few positions available, and I'm hoping someone here could give me the basics of how I might add one in.
Thanks!
They'd like to have a few positions available, and I'm hoping someone here could give me the basics of how I might add one in.
Thanks!
Please Log in or Create an account to join the conversation.
- Jonah Kyle
- Offline
- New Member
Less
More
- Posts: 4
15 years 1 month ago #71019
by Jonah Kyle
Replied by Jonah Kyle on topic Adding Module Positions to K2 Content
I've been looking for the same thing. Specifically, in Joomla one can use the {loadposition xxx} statement in a Joomla article, where xxx is the position that holds modules. Is there a similar function here?
Please Log in or Create an account to join the conversation.
- life
- Offline
- New Member
Less
More
- Posts: 5
15 years 4 weeks ago #71020
by life
Replied by life on topic Adding Module Positions to K2 Content
did you found solution?
I'm trying to include module in K2 template.
I used both forms. Jdoc: and mosLoadModile. No one of them doesn't work.
I wish to put banner module between Leading and Primary blocks on category page.
I used /com_k2/templates/default/category.php
Anybody has ideas how to resolve it?
I'm trying to include module in K2 template.
I used both forms. Jdoc: and mosLoadModile. No one of them doesn't work.
I wish to put banner module between Leading and Primary blocks on category page.
I used /com_k2/templates/default/category.php
Anybody has ideas how to resolve it?
Please Log in or Create an account to join the conversation.
- Heather
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 35
15 years 4 weeks ago #71021
by Heather
Replied by Heather on topic Adding Module Positions to K2 Content
I found this: forum.joomla.org/viewtopic.php?t=208387
I haven't tried it yet, but will probably try it out today or tomorrow.
I haven't tried it yet, but will probably try it out today or tomorrow.
Please Log in or Create an account to join the conversation.
- life
- Offline
- New Member
Less
More
- Posts: 5
15 years 4 weeks ago #71022
by life
Replied by life on topic Adding Module Positions to K2 Content
I've tested. It works in article.
Tomorrow I'm plannin to put it in content.php and test how it works in K2 layout. I hope it will.
The Someex said:I found this: forum.joomla.org/viewtopic.php?t=208387
I haven't tried it yet, but will probably try it out today or tomorrow.
Tomorrow I'm plannin to put it in content.php and test how it works in K2 layout. I hope it will.
The Someex said:I found this: forum.joomla.org/viewtopic.php?t=208387
I haven't tried it yet, but will probably try it out today or tomorrow.
Please Log in or Create an account to join the conversation.
- life
- Offline
- New Member
Less
More
- Posts: 5
15 years 4 weeks ago #71023
by life
Replied by life on topic Adding Module Positions to K2 Content
I've tryed to add extended module in article. It works with if you use
{loadposition user7}
Where user7 is position for your module
If you want to add module in other component, not com_content you have to use following php-code
Result here: street-style.ru/v2/
I put banner between Leading and Primary block in K2 layout.
{loadposition user7}
Where user7 is position for your module
If you want to add module in other component, not com_content you have to use following php-code
Result here: street-style.ru/v2/
I put banner between Leading and Primary block in K2 layout.
Please Log in or Create an account to join the conversation.
- Heather
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 35
15 years 1 week ago #71024
by Heather
Replied by Heather on topic Adding Module Positions to K2 Content
Ok, I have to admit that I am stumped. My goal is to add two module positions to the K2 item.php file. I tried your php code and it would not work for me (I could be brain dead). Any thoughts?
Ideally, I'd like one here (I replace the code arrows with *, so the code would show):
*div class="itemHeader"*
*div id="center" class="float_right"* CENTER MODULE POSITION HERE */div*
*span class="itemDateCreated"* */span*
--
If you have any thoughts on this, I would be eternally grateful. Thanks!
Ideally, I'd like one here (I replace the code arrows with *, so the code would show):
*div class="itemHeader"*
*div id="center" class="float_right"* CENTER MODULE POSITION HERE */div*
*span class="itemDateCreated"* */span*
--
If you have any thoughts on this, I would be eternally grateful. Thanks!
Please Log in or Create an account to join the conversation.
- Pixocom
- Offline
- New Member
Less
More
- Posts: 2
14 years 11 months ago #71025
by Pixocom
Replied by Pixocom on topic Adding Module Positions to K2 Content
Hi... Im trying to do exactly the same... can you share the php code ?
The link is broken
thanks
Ksenya said:I've tryed to add extended module in article. It works with if you use{loadposition user7}Where user7 is position for your moduleIf you want to add module in other component, not com_content you have to use following php-codeResult here: street-style.ru/v2/I put banner between Leading and Primary block in K2 layout.
The link is broken
thanks
Ksenya said:I've tryed to add extended module in article. It works with if you use{loadposition user7}Where user7 is position for your moduleIf you want to add module in other component, not com_content you have to use following php-codeResult here: street-style.ru/v2/I put banner between Leading and Primary block in K2 layout.
Please Log in or Create an account to join the conversation.
- Chris Yates
- Offline
- Senior Member
Less
More
- Posts: 62
14 years 11 months ago #71026
by Chris Yates
Replied by Chris Yates on topic Adding Module Positions to K2 Content
Hi,
A quick and dirty solution to this question is to use the 'Modules Anywhere' plugin downloadable from the Joomla website.
I can confirm that I have tried it and it does work.
In operation you just place the appropriate tags and name of module in your K2 content where you want it to appear and it appears.
Best,
CHRIS
A quick and dirty solution to this question is to use the 'Modules Anywhere' plugin downloadable from the Joomla website.
I can confirm that I have tried it and it does work.
In operation you just place the appropriate tags and name of module in your K2 content where you want it to appear and it appears.
Best,
CHRIS
Please Log in or Create an account to join the conversation.
- Heather
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 35
14 years 11 months ago #71027
by Heather
Replied by Heather on topic Adding Module Positions to K2 Content
A quick and dirty solution to this question is to use the 'Modules Anywhere' plugin downloadable from the Joomla website.
I can confirm that I have tried it and it does work.
Interesting. I tried it, and it did not work. Perhaps I'll have to try again. Thanks for the note.
I can confirm that I have tried it and it does work.
Interesting. I tried it, and it did not work. Perhaps I'll have to try again. Thanks for the note.
Please Log in or Create an account to join the conversation.