-
AuthorPosts
-
May 31, 2013 at 3:13 pm #187877
Enter new position in the header:
I want to include a new position in the header of the website. This would place it above the header search button to enter a language translation module.
So far I’ve introduced a new position in
Template ja_puriti_ii templateDetails.xml
For the block layout should I include the php code
Template ja_puriti_ii blocks head.php? or should I include in some specific file JAT3 plugin.Regards
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
May 31, 2013 at 5:09 pm #494417June 3, 2013 at 1:17 pm #494597I followed the tutorial you’ve indicated following each step of the time but does not result in any results.
Could you indicate that you may be failing?
templateDetails.xml
<positions>
<position>hornav</position>
<position>breadcrumbs</position>
<position>traductor</position>
<position>search</position>
</positionsTemplate.css
#ja-traductor {
padding-left: 20px;
position: relative;
bottom: 35px;
right: 15px;
}httpdocs / templates / ja_purity_ii / blocks / head.php
<script language=”javascript” type=”text/javascript”>
var rightCollapseDefault=’show’;
var excludeModules=’38’;<div class=”ja-traductor”>
<jdoc:include type=”modules” name=”traductor” />
</div>
<div class=”ja-search”>
<jdoc:include type=”modules” name=”search” />
</div>
</script>Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 4, 2013 at 8:04 am #494677Hi,
You can add ‘?tp=‘ in the end of your site url to check the new position appears in your site or not. Then try to assign & publish a module to this new position
Regards
June 4, 2013 at 10:00 am #494695All steps that indicates I’ve done. The module also ” traductor” published.
I have also introduced the following php code in head.php to identify the new module automatically.
<? php if ($ this-> countModules (‘translator’)):?>
<div class=”ja-traductor”>
type=”modules” <jdoc:include name=”traductor” />
</ div>
<? php endif;?>Regards
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 5, 2013 at 8:44 am #494816Hi jochite,
In your above post, you said that you edit file: head.php. I’m afraid that it should be file: header.php
By default, the header.php file may not exist in template folder: /templates/ja_purity/block.
You need to go to directory: pluginssystemjat3jat3base-themesdefaultblocks, then copy file: header.php there to block folder in template folder.
Then edit this new header.php file as Tom’s tips.
Regards
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by Saguaros 11 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum