test
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • nsca Friend
    #725367

    Hello, 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 Moderator
    #756471

    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.

    nsca Friend
    #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 Moderator
    #756583

    Actually, 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 Friend
    #758741

    Its there any chance the possibility to put statical content?

    Saguaros Moderator
    #758807

    Any sample for content you’re mentioning?

    nsca Friend
    #828774

    Any sample for content you’re mentioning?

    Saguaros Moderator
    #830418

    Could you update your reply again? as I can’t see anything except the quote

    nsca Friend
    #830795

    Yes, im attaching a sample file of what i want.


    1. module2
    Saguaros Moderator
    #831060

    If 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 Friend
    #833230

    Thank you! Works in the same way to pute adsense?

    Saguaros Moderator
    #833760

    You can give it a try 🙂

    nsca Friend
    #833782

    Thank you, works like a charm!

    Saguaros Moderator
    #833785

    Glad to hear that helped!!!

    Happy Holidays!!!!

Viewing 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