Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • carlucci Friend
    #152484

    The following code is in layouts/blocks/footer.php:

    <ul class=”ja-links”>
    <li class=”layout-switcher”> <? php $ this-> loadBlock (‘usertools / layout-switcher’)?> </ li>
    </ ul>

    I want to insert it into mod_custom Features (mega-item position).
    I do not know translate PHP to html. Is there anyone who can help?

    gray Friend
    #349745

    Mod_customs accepts only HTML. In you case, <? php $ this-> loadBlock (‘usertools / layout-switcher’)?> have to be transfered to HTML.
    As any PHP finally is rendered on the web-page as HTML, JS or other client-side code, just open the page where foooter.php is being loaded, open the page source file (any browser has “View Source File”) and look for the code between <ul class=”ja-links”></ ul>

    micrantha Friend
    #349746

    Hello,

    A little addition to answer of gray:
    You can use plugin “Sourcerer” to be able to add php-code in article or mod_custom.

    good luck,
    Micrantha

    carlucci Friend
    #349748

    <em>@micrantha 186269 wrote:</em><blockquote>Hello,

    A little addition to answer of gray:
    You can use plugin “Sourcerer” to be able to add php-code in article or mod_custom.
    good luck,
    Micrantha</blockquote>
    Thank you very much both.
    I installed the plugin but it does not work.
    This is the code:
    <div class=”ja-links”>
    <a class=”layout-switcher”><? php $ this->loadBlock (‘usertools/layout-switcher’)?></ a>
    </div>

    Also I have a bigger problem.
    You can not change the menu items topmega.
    Every time I change the name of the item Features. (Example: a change name Features to Version.)
    the module content of mod_custom Features is not displayed .
    And worse yet, I have to install the database again to work properly.

    micrantha Friend
    #349820

    Hello,
    Sorry, I have no time left before holiday.

    Plugin: maybe problem now is the path to what must be loaded – gray is more at home with script issues.

    Topmega: you probably use version 1.4.1; I have posted a lot of anwers to questions about problems with this: please look at other posts I wrote about configuring this menu in new version. You have to delete plugin JA Menu Parameters plugin from database, download and reinstall it anew, before you get the extra parameter group Ja Extended to configure a menu item for megamenu.

    Good luck,
    Micrantha

    Thanh Nguyen Viet Friend
    #349862

    Hi mate,

    Please using module mod_customcode
    It work very similar to mod_custom, except it allow you to add php code into its content.
    You can download this module here

    http://www.joomlaspan.com/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=0&sobi2Id=4&Itemid=3

    Best regards,
    ThanhNV

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

This topic contains 6 replies, has 4 voices, and was last updated by  Thanh Nguyen Viet 14 years, 4 months ago.

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