module position

More
5 years 11 months ago #4578 by rita0407
rita0407 created the topic: module position
Hi, first of all... thanks for the nice template! :)

I would like to ask you how to insert new module position. Ok, I understand that I have to insert the new position on the TemplateDetails.xml as:
<positions>
<position>bottom1</position>
<position>bottom2</position>
<position>bottom3</position>
<position>bottom4</position>
</positions>

Than I should change the configuration on the index.php, or probably in this template on the bottom.php (TPL/BLOCKS). I've no idea how to do it! :(

Thank you for you help

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

More
5 years 11 months ago #4596 by artur
artur replied the topic: module position
Hello,

Thank you for the kind words.

You have right, first you need to add position name in xml file as you wrote.
<position>example1</position>
<position>example2</position>
<position>example3</position>

Next edit file in TPL/BLOCKS - example bottom.php (depends in which place you like to add position).
Below code is responsible for showing joomla modules :
<div>
<?php echo DJModuleHelper::renderModules('bottom','jmmodule', $fluid); ?>
</div>

The first word in brackets is the name of position. So to add next position add following code :
<div id="sone-div">
  <?php echo DJModuleHelper::renderModules('[b]example1[/b]','jmmodule', $fluid); ?>
</div>
<div id="some-other-div">
  <?php echo DJModuleHelper::renderModules('[b]example2[/b]','jmmodule', $fluid); ?>
  <?php echo DJModuleHelper::renderModules('[b]example3[/b]','jmmodule', $fluid); ?>
</div>

And thats all. You can publish module on new position.

Best Regards.

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

Time to create page: 0.224 seconds

INDICO S.C.

ul. Wałowa 10/3, 84-200 Wejherowo, registered in Centralna Ewidencja i Informacja o Działalnosci Gospodarczej
NIP/VATID: PL5882424318

Copyright © 2009-2019 Joomla-Monster.com All rights reserved.

Joomla-Monster.com and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.