-
AuthorPosts
-
giuliano m Friend
giuliano m
- Join date:
- August 2008
- Posts:
- 117
- Downloads:
- 29
- Uploads:
- 33
- Thanks:
- 91
- Thanked:
- 14 times in 4 posts
March 17, 2014 at 5:03 pm #195867Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 18, 2014 at 7:02 am #527102You can follow this tip how to load a module inside article or use a 3rd party Joomla plugin which has the same function.
giuliano m Friendgiuliano m
- Join date:
- August 2008
- Posts:
- 117
- Downloads:
- 29
- Uploads:
- 33
- Thanks:
- 91
- Thanked:
- 14 times in 4 posts
March 19, 2014 at 12:11 am #527241Thanks for the reply, but useful components are not available and loadposition I should put it in more than 2000 items
the ideal was MultiAds but only for 2.5 i have 3.2 (http://extensions.joomla.org/extensions/ads-a-affiliates/affiliate-systems/affiliate-advertising/4995)
ES. MultiAds supports display of Google Ads,YPN, other advertising formats, and virtually any kind of html code,
in each of the four main content areas of an article:1. Before Content (i.e. between an article’s Title and the rest of an article’s content).
2. Top of the Content.
3. Bottom of Content.
4. After Content (i.e. below the display area of all article’s content).
—
I was reading http://t3-framework.org/documentation/layout-system.html # define-block, but I do not know exactly the procedure and which file to edit.
I hope for your help.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 19, 2014 at 2:03 am #527250I will summarize the steps here:
Layout:
Go to this path: templatesja_magztpls: this folder will hold the layout and block files. As you can see by default, JA Magz has 2 layouts: default and no-sidebar, equivalent to 2 files: default.php and no-sidebar.php http://prntscr.com/323kkiBlock
– Suppose that you’re using ‘default’ layout, you can open file default.php you will see that, there are numbers of blocks that the layout includes. You can add new blocks, or remove the blocks: http://prntscr.com/323m9l– Then if you want to create / add a new block, you go to folder: templatesja_magztplsblocks, simply clone one of existing blocks and rename as you wish and add this new block in layout file as mentioned in 2nd step.
– Each block will have a number of module position assigned to, you can create new position and assign to block you want. The detail example can be found in above documentation: http://t3-framework.org/documentation/layout-system.html#add-block
1 user says Thank You to Saguaros for this useful post
giuliano m Friendgiuliano m
- Join date:
- August 2008
- Posts:
- 117
- Downloads:
- 29
- Uploads:
- 33
- Thanks:
- 91
- Thanked:
- 14 times in 4 posts
March 20, 2014 at 1:03 pm #527490First of all thank you, but doing this kind of modification, it is reflected throughout the template. Right?
I would like to add the module block only in articles. I think I should make a change here
templatesja_magzhtmlcom_contentarticlees: file defoult – line 229 – <header class=”article-header clearfix”>
<h1 class=”article-title”>
http://prntscr.com/32h1m2
but I would not make mistakes
thanks for your timeSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 21, 2014 at 7:36 am #527588You’re right, if you want to add inside article detail page, you can edit this file: templatesja_magzhtmlcom_contentarticledefault.php
giuliano m Friendgiuliano m
- Join date:
- August 2008
- Posts:
- 117
- Downloads:
- 29
- Uploads:
- 33
- Thanks:
- 91
- Thanked:
- 14 times in 4 posts
March 21, 2014 at 9:53 am #527613Thx 🙂
in your opinion what is the best way to add a module position in that file. Please let some advice
I do not want to create problems to the template
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 21, 2014 at 10:16 am #527620It will depend on the position that MultiAds plugin above supports.
<blockquote>
1. Before Content (i.e. between an article’s Title and the rest of an article’s content).2. Top of the Content.
3. Bottom of Content.
4. After Content (i.e. below the display area of all article’s content).
</blockquote>You can give it a try.
giuliano m Friendgiuliano m
- Join date:
- August 2008
- Posts:
- 117
- Downloads:
- 29
- Uploads:
- 33
- Thanks:
- 91
- Thanked:
- 14 times in 4 posts
March 21, 2014 at 12:20 pm #527639Wait I’m confused … but thanks anyway, maybe I misunderstood (sorry for my english)
MultiAds is not compatible with joomla 3 unfortunately, creates problems with the easy blog.
I would like some advice on how to change the file
templatesja_magzhtmlcom_contentarticledefault.php
for to add the block / module
thx for all ^^
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 24, 2014 at 4:05 am #527777If you want to add block for Ads, it would be best to find a suitable plugin. For instance, with plugin above, it supports some positions like:
– Before Content (i.e. between an article’s Title and the rest of an article’s content).
– Top of the Content.
– Bottom of Content.
– After ContentThen this plugin will have event which helps to add block into the respective part inside article, it looks like this:
<?php if($this->item->event->afterDisplayTitle && stripos($this->item->event->afterDisplayTitle, 'count') !== false): ?>
<dd class="comment-count clearfix">
<!-- Comment count -->
<?php echo $this->item->event->afterDisplayTitle; ?>
<!-- Comment count -->
</dd>
<?php endif; ?>
<!-- AddThis Button BEGIN -->
<?php if($tplparams->get('tpl_addthis_share', 1)) : ?>
<a class="addthis_button_compact" addthis:url="<?php echo JUri::getInstance()->toString(array('scheme', 'host', 'port')) . $this->item->readmore_link ?>" addthis:title="<?php echo $this->escape($this->item->title) ?>"> <?php echo JText::_('TPL_TEXT_SHARE') ?> <i class="icon-share"></i></a>
<?php endif ?>
<!-- AddThis Button END -->
AuthorPostsViewing 10 posts - 1 through 10 (of 10 total)This topic contains 10 replies, has 2 voices, and was last updated by Saguaros 10 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
how to insert a module under the title, in articles for adv
Viewing 10 posts - 1 through 10 (of 10 total)