Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • silverstreetsro Friend
    #152879

    Dear friends!

    I want to create new position for modul, after first article in sections and categories

    Where should I place code?

    Manu thanks

    Saguaros Moderator
    #351048

    Hello

    Now, Pls let me which position do you like ? pls give me snaphot about this

    Thanks

    silverstreetsro Friend
    #365817

    Here is the link

    Where black star is situated

    Thank you!

    gray Friend
    #365819

    It seems you want to include a module between 2 articles in blog view.
    Not sure it’s possible without hacking of com_content view files, but before going deep into the code – have you tried module anywhere?

    silverstreetsro Friend
    #365821

    🙂 Thanks, but I wanted hack com_content , I don’t like how module anywhere works

    gray Friend
    #365827

    Ok.. let’s try

    file in templates folder: htmlcom_contentfrontpagedefault.php

    find [php]<?php $introcount = min($this->total – $i, $this->params->def(‘num_intro_articles’, 4));[/php]

    insert BEFORE [php]
    <?php if($this->countModules(‘articlemid’)) : ?>
    <div class=”ja-articlemid”>
    <jdoc:include type=”modules” name=”articlemid” />
    </div>
    <?php endif; ?>[/php]
    please note:
    articlemid – is the name of the position. assign any module to this position (also you can change position name)
    class=”ja-articlemid” – is a new CSS class, add style to template.css if it’s necessary.

    PS. I haven’t tested this solution. Pls make back-ups!!!

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 3 voices, and was last updated by  gray 13 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum