module position

8 years 2 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:

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.

8 years 2 months ago #4596 by artur
artur replied the topic: module position

Thank you for the kind words.

You have right, first you need to add position name in xml file as you wrote.

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 :
<?php echo DJModuleHelper::renderModules('bottom','jmmodule', $fluid); ?>

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 id="some-other-div">
  <?php echo DJModuleHelper::renderModules('[b]example2[/b]','jmmodule', $fluid); ?>
  <?php echo DJModuleHelper::renderModules('[b]example3[/b]','jmmodule', $fluid); ?>

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.216 seconds


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

Copyright © 2009-2021 All rights reserved. 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.