× Discussion about "Real Estate" Joomla template

Creating a new module position

  • aaroninbna
  • aaroninbna's Avatar Topic Author
  • Offline
  • HotThemes Member
  • HotThemes Member
  • Just because you can.... Doesn't mean you should !
More
7 years 10 months ago #12778 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

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #12802 by ivan.milic
....
<?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 or Create an account to join the conversation.

  • aaroninbna
  • aaroninbna's Avatar Topic Author
  • Offline
  • HotThemes Member
  • HotThemes Member
  • Just because you can.... Doesn't mean you should !
More
7 years 10 months ago #12892 by aaroninbna
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

Please Log in or Create an account to join the conversation.

Moderators: milos
Time to create page: 0.094 seconds