Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • 321fly Friend
    #179864

    Hi, what menu item type should I choose for Homepage?
    Because there are modules showing content and no need the mainpage go anywhere.
    I guess double links appear during indexing if it is set to Featured Articles? → Some links from google go to homepage. I think the reason is menu items I chose in options of the menu.

    There is an offer to paste this code

    Code:
    <?php
    $menu = JFactory::getApplication()->getMenu();
    if ($menu->getActive()!=$menu->getDefault()) { ?>
    <jdoc:include type=component />
    <?php } ?>

    to the file containg this
    <jdoc:include type=component />
    in template.
    Could you say exactly if it makes sense, and which is the exact path to the file?

    Are there any other ways to make the mainpage not duplicate in search engines? I mean when link goes not to the item, but on your mainpage

    Ninja Lead Moderator
    #463978

    What is template name using in this code?

    <?php
    $menu = JFactory::getApplication()->getMenu();
    if ($menu->getActive()!=$menu->getDefault()) { ?>
    <jdoc:include type=component />
    <?php } ?>

    From this code you can see

    <blockquote><jdoc:include type=component /></blockquote>

    was disabled on Default Layouts

    ellenm Friend
    #473403

    Thank you 321fly. Really helped.

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

This topic contains 3 replies, has 3 voices, and was last updated by  ellenm 11 years, 5 months ago.

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