Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • synapsis Friend
    #181781

    Sorry for the double-post on this problem, please delete my previous post with the same subject.

    I needed to change the Help from Staff/Admin access information, but couldn’t find a way to edit that in the original post.

    I’d like to unpublish the Headlines on JA Mixmaz, but when I do so, the Top Menu disappears with it. I’m guessing I need to move the topnav div out of the headlines div, so they don’t both disappear when unpublishing the headlines div.

    But I wanted to make sure this was the best solution before altering the code any more than I have to.

    Also, please make sure that this sort of module connectedness/dependency doesn’t occur in future templates.

    Thank you for your swift reply.
    Matt

    synapsis Friend
    #471312

    Okay, so I’ve located the problem… please confirm this is the best way to fix it:

    You can see by the following code snippit from the /blocks/tophead.php that both the ja-headline div and the ja-topnav div are linked to the ‘headline’ countModules PHP if statement:

    <?php if( $this->countModules('headline') ): ?>
    <div id="ja-headline">
    <jdoc:include type="modules" name="headline" style="raw" />
    </div>
    <?php endif; ?>

    <?php if( $this->countModules('headline') ): ?>
    <div id="ja-topnav">
    <jdoc:include type="modules" name="topnav" style="raw" />
    </div>
    <?php endif; ?>

    So if instead, you change it to this:

    <?php if( $this->countModules('headline') ): ?>
    <div id="ja-headline">
    <jdoc:include type="modules" name="headline" style="raw" />
    </div>
    <?php endif; ?>

    <?php if( $this->countModules('topnav') ): ?>
    <div id="ja-topnav">
    <jdoc:include type="modules" name="topnav" style="raw" />
    </div>
    <?php endif; ?>

    It now works just fine to unpublish the JA-Newsticker that generates the headlines, but leaves the Top menu alone.

    Aratype Friend
    #478016

    Thanks synapsis,

    I believe this is something that JA’s team needs to modify in the next edition…

    Saguaros Moderator
    #478124

    Hi,

    We will update this to our product and update asap. Thanks for your feedback, it’s much appreciated.

    Happy New Year!!!

    Tomas Perez Friend
    #479868

    I have found an easier way to do it. Just create a new category (Article category) that is empty (with no articles assigned). Then remove the “Headlines:” title from the JA News Picker module. The module will be active and published but because there is nothing to show, nothing will show and because there is no title, no words will be shown. The top menu will remain as is.
    I hope this helps.

    lianneholland Friend
    #483815

    Hi tomasjoom,

    Hmm, this is a solution, but not proper. The tophead.php-solution is the way it should be. I’m glad Joomlart wil update this.

    Lianne

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

This topic contains 6 replies, has 5 voices, and was last updated by  lianneholland 11 years, 9 months ago.

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