test
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • funkytown Friend
    #158493

    I would like insert this code from a social media modul in the template file:
    < ?php if( JRequest::getVar( ‘view’ ) == ‘article’ ): ? >
    < jdoc:include type=”modules” name=”socialwidget” />
    < ?php endif; ? >

    how can I find the php-file?

    Thanh Nguyen Viet Friend
    #371003

    Hello mate,

    You can add your code snippet into this file:

    site root/plugins/plg_system_jat3/jat3/base-themes/default/page/default.php

    But, why dont you assign this module to position where you want to display it (standard way of joomla).

    Best regards,
    ThanhNV

    funkytown Friend
    #371030

    <em>@thanhnv 213923 wrote:</em><blockquote>Hello mate,

    You can add your code snippet into this file:

    site root/plugins/plg_system_jat3/jat3/base-themes/default/page/default.php

    But, why dont you assign this module to position where you want to display it (standard way of joomla).

    Best regards,
    ThanhNV</blockquote>
    I didn’t know, that I can moduls plug into content!

    funkytown Friend
    #371039

    Whitch modul position have I to use for that?

    Thanh Nguyen Viet Friend
    #371041

    please adding parameter “tp=1” at the end of your site url to show template’s position map.
    Eg: http://yoursite.com/index.php?tp=1
    you will know which position you should use.

    Best regards,
    ThanhNV

    funkytown Friend
    #371048

    I know this modul positions. There are not positions for inside the single content. That, what I ment. Thats why my question.

    Thanh Nguyen Viet Friend
    #371050

    ah, if you want to display module inside content of article.
    You must:

    1. create a new position (Eg: inside_content)
    2. assign module to display on this position
    3. add this code snippet into article {loadposition inside_content}

    Best regards,
    ThanhNV

    funkytown Friend
    #371053

    Thanks, but i want to put inside a modul in each single content. So I should used this code every time.

    Thanh Nguyen Viet Friend
    #371057

    You can add your code into one of below files (depend on where you want to show it)

    for content component

    • ja_teline_ivhtmlcom_contentcategoryblog_item.php
    • ja_teline_ivhtmlcom_contentfrontpageblog_item.php
    • ja_teline_ivhtmlcom_contentsectionblog_item.php

    for k2 component

    • ja_teline_ivhtmlcom_k2templatesDefaultitem.php
    • ja_teline_ivhtmlcom_k2templatesteline_iv_blogitem.php
    • ja_teline_ivhtmlcom_k2templatesteline_iv_interviewitem.php
    hamlethub Friend
    #390656

    I am attempting to do this, with Joomla 1.6 and teline_iv.

    What php file would you add the code into?

    Thanh Nguyen Viet Friend
    #390675

    What php file would you add the code into?

    <blockquote>You can add your code into one of below files (depend on where you want to show it)

    for content component
    ja_teline_ivhtmlcom_contentcategoryblog_item.p hp
    ja_teline_ivhtmlcom_contentfrontpageblog_item. php
    ja_teline_ivhtmlcom_contentsectionblog_item.ph p
    for k2 component
    ja_teline_ivhtmlcom_k2templatesDefaultitem.ph p
    ja_teline_ivhtmlcom_k2templatesteline_iv_blog item.php
    ja_teline_ivhtmlcom_k2templatesteline_iv_inter viewitem.php</blockquote>

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

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

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