- Posts: 149
- Thank you received: 2
Creating a new module position
-
aaroninbna
Inactive member - Topic Author
- Member
Less
More
13 years 1 month ago #12778
by aaroninbna
Creating a new module position was created by aaroninbna
I have saved my original (index.php and templatedetails.xml) files and wanted to add a new module position in this template (similiar to the top panel slider in HotCars)
I was trying to add a new top panel module, above user9 & user3.
Where should my, [<jdoc:include type="modules" name="newposition" />] file be located in the index.php file, so not to effect my other user module positions.
Thank you for your help,
Aaron
I was trying to add a new top panel module, above user9 & user3.
Where should my, [<jdoc:include type="modules" name="newposition" />] file be located in the index.php file, so not to effect my other user module positions.
Thank you for your help,
Aaron
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 1 month ago #12802
by ivan.milic
maybe the place where I put comment with "HERE!" would be place that would require least refitting.So wrap it first with some container div, that in any case css adjustment will be needed.
Replied by ivan.milic on topic Re: Creating a new module position
Code:
....
<?php if ($showuser3) { ?>
<div id="topmenu">
<div id="logo"><a href="index.php"><img src="<?php echo $this->baseurl ?>/templates/hot_realestate/images/logo.png" width="224" height="70" alt="hot software" /></a></div>
<div id="topmenu_pad">
<jdoc:include type="modules" name="user3" style="none" />
</div>
</div>
<?php } ?>
<div id="id_of_div_container">
<!-- HERE!!! -->
</div>
<?php if ($showuser9 || $showuser4) { ?>
<div id="topmenu_nav_wrap">
<div id="topmenu_nav">
<jdoc:include type="modules" name="user9" style="none" />
<div id="search_module">
<jdoc:include type="modules" name="user4" style="none" />
</div>
</div>
</div>
....
maybe the place where I put comment with "HERE!" would be place that would require least refitting.So wrap it first with some container div, that in any case css adjustment will be needed.
Please Log in to join the conversation.
-
aaroninbna
Inactive member - Topic Author
- Member
Less
More
- Posts: 149
- Thank you received: 2
13 years 4 weeks ago #12892
by aaroninbna
Replied by aaroninbna on topic Re: Creating a new module position
I made my changes at...
[hot_realestate/index.php]
______________________________________
<div id="topmenu_pad">
<jdoc:include type="modules" name="user3" style="none" />
<jdoc:include type="modules" name="toppanel" style="none" />
</div>
</div>
<?php } ?>
<?php if ($showuser9 || $showuser4) { ?>
______________________________________
[hot_realestate/templateDetails.xml]
<position>user3</position>
<position>toppanel</position>
<position>user4</position>
______________________________________
Work great from here.
Aaron
[hot_realestate/index.php]
______________________________________
<div id="topmenu_pad">
<jdoc:include type="modules" name="user3" style="none" />
<jdoc:include type="modules" name="toppanel" style="none" />
</div>
</div>
<?php } ?>
<?php if ($showuser9 || $showuser4) { ?>
______________________________________
[hot_realestate/templateDetails.xml]
<position>user3</position>
<position>toppanel</position>
<position>user4</position>
______________________________________
Work great from here.
Aaron
Please Log in to join the conversation.
Time to create page: 0.153 seconds