-
AuthorPosts
-
November 14, 2009 at 11:27 pm #146042
How can I modify the layout of Teline3 to add an extra module position at the very top?
Is there a step-by-step description somewhere? Or can someone help me with a quick instruction?
Looking forward to your kind advice!
/Vmicrantha Friendmicrantha
- Join date:
- May 2007
- Posts:
- 465
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 6
- Thanked:
- 158 times in 148 posts
November 16, 2009 at 9:46 am #323729Hello,
You can add a new module position with this code:
<?php if($this->countModules('position-name')) : ?>
<div id="#">
<jdoc:include type="modules" name="position-name" style="xhtml" />
</div>
<?php endif; ?>But where to add this code?
That depends on what layout you use.For default layout:
Go to template > layouts > default.phpIn this framework you see where the header-block is loaded:
<div id="ja-wrapper">
<a name="Top" id="Top"></a><!-- HEADER -->
<?php $this->loadBlock('header') ?>
<!-- //HEADER -->So you could add your module-position above the header-block, or you can change the header-block itself, which is more consequent.
Open template > layouts > blocks > header.php
This file opens with defining the header-space:<div id="ja-header" class="wrap">
<div class="main">
<div class="inner clearfix">
..............so here you can add a new module-position where you want it to appear.
Give the module position a unique name.
Add this name to the list of positions in the .xml-file of the template.
Position your new module-position by adding an id to the containing div and styling it in your template.cssSucces,
Micrantha1 user says Thank You to micrantha for this useful post
November 26, 2009 at 11:09 pm #325087Hi, almost the same question i have here.
What i want to do is to insert my adsense code directly in col-mass-2 postiion without installing adsense modules in backend. IS this possibel???
Thank you in advance!
micrantha Friendmicrantha
- Join date:
- May 2007
- Posts:
- 465
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 6
- Thanked:
- 158 times in 148 posts
November 27, 2009 at 11:14 am #325125Hello iverjames,
I don’t know, never worked with adsense.
But you could experiment with the layout-block right.php (!backup first of course!).
There you can find the code for col-mass2:
<?php
$pos = $this->getPositionName ('right-mass-bottom');
if ($this->countModules($pos)): ?>
<div class="ja-mass ja-mass-bottom clearfix">
<jdoc:include type="modules" name="<?php echo $pos;?>" style="JAxhtml" />
</div>
<?php endif; ?>
Try adding your code before or after these lines.Succes,
Micrantha -
AuthorPosts
This topic contains 4 replies, has 3 voices, and was last updated by micrantha 15 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum