Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • mikeli Friend
    #144697

    How can i insert the link of component to show in megaitem – mega menu?
    Thanks

    Anonymous Moderator
    #319124

    Hi mikeli

    There are two ways for your idea:

    1. Create a custom module, assign to mega-item position. In Custom Output textare, put a link to your component, change Show Title from Yes to No

    2. Open modulesmod_jamegamenutmpldefault.php file, add a hard link after line 35:


    </li>
    <?php }?>

    change to:


    </li>
    <?php }?>
    <li class="havechild mega"> <a href="your link"> Title </a></li>

    mikeli Friend
    #321092

    Thank you for that information, it worked but i didn’t actualy understood how shuld i add the hard link after line 35? What is the code for that hard link?

    kalibs112 Friend
    #321158

    Hi mate, how do I create a new module position on Ja Teline 111 template??? I want to include a position to include a ‘Related Items/Links’ module to display in all my articles…this would help the reader to know the related stories or articles…is it possibble??? Take a look at this article and you will see what I mean: http://www.timesonline.co.uk/tol/news/uk/article6883723.ece

    kalibs112 Friend
    #321160

    </li>
    <?php }?>
    <li class=”havechild mega”> <a href=”your link”> Title </a></li>

    mikeli Friend
    #321251

    I successfuly inserted the link but the problem is css style of my new link, its not the same like other links in mega menu.. So how shuld i make it to be the same?

    This is a code of default.php:

    <blockquote><?php if ($mod->name != ‘jamoduleloader’) :?>
    <div class=”childcontent” <?php if (!$mod_params->get(‘width’)) echo $subitemstyle;?>>
    <div class=”inner”>
    <?php endif; ?>
    <?php echo JModuleHelper::renderModule($mod);?>
    <?php if ($mod->name != ‘jamoduleloader’) :?>
    <strong><a href=”http://www.montenegrowebcenter.org/1/index.php?option=com_joomap&Itemid=485″>Mapa sajta</a></strong>
    </div>
    </div>
    <?php endif; ?>
    <?php else: ?>
    <?php echo JModuleHelper::renderModule($mod);?>
    <?php endif; ?>
    </li>
    <?php }?>
    <li class=”havechild mega”> <a href=”http://www.montenegrowebcenter.org/1/index.php?option=com_joomap&Itemid=485″> Mapa sajta </a></li>
    </ul>
    </blockquote>

    I changed evrything you said i shuld except i didn’t add hard link after line 35.. How shuld i do that?

    Thanks for last answer.
    Best regards.

    kalibs112 Friend
    #322474

    Tough for me, that! Will keep learning, thanx geez

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

This topic contains 7 replies, has 3 voices, and was last updated by  kalibs112 14 years, 5 months ago.

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