-
AuthorPosts
-
January 9, 2011 at 11:24 am #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 FriendThanh Nguyen Viet
- Join date:
- September 2014
- Posts:
- 1461
- Downloads:
- 0
- Uploads:
- 44
- Thanked:
- 258 times in 217 posts
January 10, 2011 at 3:19 am #371003Hello 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,
ThanhNVJanuary 10, 2011 at 6:13 am #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!January 10, 2011 at 6:58 am #371039Whitch modul position have I to use for that?
Thanh Nguyen Viet FriendThanh Nguyen Viet
- Join date:
- September 2014
- Posts:
- 1461
- Downloads:
- 0
- Uploads:
- 44
- Thanked:
- 258 times in 217 posts
January 10, 2011 at 7:07 am #371041please 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,
ThanhNVJanuary 10, 2011 at 7:29 am #371048I know this modul positions. There are not positions for inside the single content. That, what I ment. Thats why my question.
Thanh Nguyen Viet FriendThanh Nguyen Viet
- Join date:
- September 2014
- Posts:
- 1461
- Downloads:
- 0
- Uploads:
- 44
- Thanked:
- 258 times in 217 posts
January 10, 2011 at 7:37 am #371050ah, if you want to display module inside content of article.
You must:- create a new position (Eg: inside_content)
- assign module to display on this position
- add this code snippet into article {loadposition inside_content}
Best regards,
ThanhNVJanuary 10, 2011 at 7:45 am #371053Thanks, but i want to put inside a modul in each single content. So I should used this code every time.
Thanh Nguyen Viet FriendThanh Nguyen Viet
- Join date:
- September 2014
- Posts:
- 1461
- Downloads:
- 0
- Uploads:
- 44
- Thanked:
- 258 times in 217 posts
January 10, 2011 at 7:56 am #371057You 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 Friendhamlethub
- Join date:
- February 2011
- Posts:
- 128
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 15
- Thanked:
- 3 times in 1 posts
May 10, 2011 at 9:44 pm #390656I am attempting to do this, with Joomla 1.6 and teline_iv.
What php file would you add the code into?
Thanh Nguyen Viet FriendThanh Nguyen Viet
- Join date:
- September 2014
- Posts:
- 1461
- Downloads:
- 0
- Uploads:
- 44
- Thanked:
- 258 times in 217 posts
May 11, 2011 at 1:55 am #390675What 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> -
AuthorPosts
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