-
AuthorPosts
-
nsca Friend
nsca
- Join date:
- March 2012
- Posts:
- 247
- Downloads:
- 102
- Uploads:
- 51
- Thanks:
- 66
- Thanked:
- 15 times in 3 posts
November 21, 2015 at 4:49 am #725367Hello, I want to put Joomla?s modules in the K2 directory-aside on the items page. By now, there is one sidebar for K2 elements (Gmap, Authorinfo and Related Content) but I want to use my own content like I do in Joomla (I mean, use banners, custom html, whatever module i want) so I think the best idea to reach that is to put a Joomla position into the K2 directory-aside area.
I think that I could do add this module position in /templates/ja_directory/html/com_k2/directory/item.php
Is this possible?
What do I have to add?Thank you in advance.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 23, 2015 at 3:28 pm #756471Hi nsca,
This is special template which overrides the K2 item view so that K2 item page will have specific layout as now. It doesn’t include position so that you can assign a normal module there. Kindly check that file: /templates/ja_directory/html/com_k2/directory/item.php and you will see how it’s created.
nsca Friendnsca
- Join date:
- March 2012
- Posts:
- 247
- Downloads:
- 102
- Uploads:
- 51
- Thanks:
- 66
- Thanked:
- 15 times in 3 posts
November 24, 2015 at 3:46 am #756504<em>@Saguaros 503657 wrote:</em><blockquote>Hi nsca,
This is special template which overrides the K2 item view so that K2 item page will have specific layout as now. It doesn’t include position so that you can assign a normal module there. Kindly check that file: /templates/ja_directory/html/com_k2/directory/item.php and you will see how it’s created.</blockquote>
Hi saguaros, thank you for your answer.
Please check my question, im in /templates/ja_directory/html/com_k2/directory/item.php looking for a code that call a specific module or position. I think it is absolutely possible, my problem is I dont know nothing about PHP so i dont know how to call a module.
There is a simple way to pute a module there like you do in some footers?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 25, 2015 at 1:38 am #756583Actually, the content in the right side of an K2 item is content related to that item and we style so that it looks like module. There is no way to add position there because this belongs to the main content of site.
nsca Friendnsca
- Join date:
- March 2012
- Posts:
- 247
- Downloads:
- 102
- Uploads:
- 51
- Thanks:
- 66
- Thanked:
- 15 times in 3 posts
November 29, 2015 at 4:03 am #758741Its there any chance the possibility to put statical content?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 30, 2015 at 4:49 am #758807Any sample for content you’re mentioning?
nsca Friendnsca
- Join date:
- March 2012
- Posts:
- 247
- Downloads:
- 102
- Uploads:
- 51
- Thanks:
- 66
- Thanked:
- 15 times in 3 posts
December 22, 2015 at 12:36 pm #828774Any sample for content you’re mentioning?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 24, 2015 at 4:22 am #830418Could you update your reply again? as I can’t see anything except the quote
nsca Friendnsca
- Join date:
- March 2012
- Posts:
- 247
- Downloads:
- 102
- Uploads:
- 51
- Thanks:
- 66
- Thanked:
- 15 times in 3 posts
December 24, 2015 at 3:27 pm #830795Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 25, 2015 at 3:35 am #831060If that’s static content / image, you can open ‘item.php’ file as above and add this snippet of code:
<div class="t3-module module bg-gray itemAuthorLatest"> <div class="module-inner"> <h3 class="module-title "><span>Title here</span></h3> <div class="module-ct"> <img alt="" src="/images/joomlart/about-us.jpg"> </div> </div> </div>
Like this: http://prntscr.com/9i9n27
nsca Friendnsca
- Join date:
- March 2012
- Posts:
- 247
- Downloads:
- 102
- Uploads:
- 51
- Thanks:
- 66
- Thanked:
- 15 times in 3 posts
December 28, 2015 at 2:25 pm #833230Thank you! Works in the same way to pute adsense?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 29, 2015 at 3:13 am #833760You can give it a try 🙂
nsca Friendnsca
- Join date:
- March 2012
- Posts:
- 247
- Downloads:
- 102
- Uploads:
- 51
- Thanks:
- 66
- Thanked:
- 15 times in 3 posts
December 29, 2015 at 4:31 am #833782Thank you, works like a charm!
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 29, 2015 at 4:43 am #833785Glad to hear that helped!!!
Happy Holidays!!!!
AuthorPostsViewing 14 posts - 1 through 14 (of 14 total)This topic contains 13 replies, has 2 voices, and was last updated by Saguaros 8 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Put Joomla Position in K2 directory-aside
Viewing 14 posts - 1 through 14 (of 14 total)