The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Oct 31, 2011 7:22 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Oct 30, 2009 8:50 am
Posts: 22
I have learned from Google that how to add new module position to template, as following:
Step one,open index.php file:
Code:
<jdoc:include type="modules" name="yournewposition"  />

Another step one,
Code:
<?php if($this->countModules('your-position-name')) : ?>
  <jdoc:include type="modules" name="your-position-name" style="none" />
<?php endif; ?>

Step two, open templatedetails.xml :
Code:
<position>your-position-name</position>


For example, I want to add a new position for btslideshow module. The position will be between position "left" and "right".Then how to write code insert index.php file? I also learn that if you want to place new position after position "left", then you need to add code behind code of "left" in index.php, is that right?


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Mon Oct 31, 2011 11:22 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Wed Aug 13, 2008 2:57 am
Posts: 22142
Location: Chennai, India
What you have learned is correct. It could be reinforced by reviewing the document http://docs.joomla.org/How_do_you_add_a_new_module_position%3F.

In addition to these syntax, what is important is to position the module. This could be done by a combination of the definition of divs in the file index.php and the positioning of divs in the css file(s). In fact, this has been illustrated a bit in the section 1.5 of the document referenced earlier.

_________________
- Ilagnayeru (MIG) Manickam
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged


Top
 Profile  
 
PostPosted: Tue Nov 01, 2011 8:17 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Oct 30, 2009 8:50 am
Posts: 22
it works now, thank you imanickam.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 



Who is online

Users browsing this forum: No registered users and 73 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group