Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Some template positions work only front page

  • BARBARA GERANAKI
  • BARBARA GERANAKI's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 5 months ago #137341 by BARBARA GERANAKI
Some template positions work only front page was created by BARBARA GERANAKI
I would like to use the positions numovies_lowermodulefull1, full2 etc in order to place additional modules on all of my sites pages.
Right now I can use them only fot the front sites page.

How can I change that?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 5 months ago #137342 by Krikor Boghossian
Replied by Krikor Boghossian on topic Some template positions work only front page
Hello Barrbara,

Around line 228 (depending on your template version) you will find this line of code
<?php endif; //The frontpage check ?>
Notice the comments

You have to move it directly ABOVE this
<?php  if($this->countModules('nuMovies_lowerModuleFull1 or nuMovies_lowerModuleFull2 or nuMovies_lowerModuleHalf1 or nuMovies_lowerModuleHalf2')): ?>

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • BARBARA GERANAKI
  • BARBARA GERANAKI's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 5 months ago #137343 by BARBARA GERANAKI
Replied by BARBARA GERANAKI on topic Some template positions work only front page
ok! It's working!

So happy. Thank you :-)

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 5 months ago #137344 by Krikor Boghossian
Replied by Krikor Boghossian on topic Some template positions work only front page
You 're welcome.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • BARBARA GERANAKI
  • BARBARA GERANAKI's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 4 months ago #137345 by BARBARA GERANAKI
Replied by BARBARA GERANAKI on topic Some template positions work only front page
I'm coming back to that issue because I've noticed that the solution is working but not for the tabs 1,2,3 positions.
I cannot use that in any other page that the front page.

How can we fix that?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 4 months ago #137346 by Krikor Boghossian
Replied by Krikor Boghossian on topic Some template positions work only front page
The tabs are parts of the template. They were designed to work in the frontpage.

Of course you can override this but you will have no control over the tab's headers like you have with their content (being modules).

Your template (index.php) currently should look like this:
<?php if($isFrontpage): //These modules are only active on the home page ?>
  			<?php if($this->countModules('nuMovies_tab1 or nuMovies_tab2 or nuMovies_tab3 or nuMovies_tab4')): ?>
  			<section id="videoGallery">
  
  				<ul class="tabs">
  					<?php if($this->countModules('nuMovies_tab1')): ?>
  					<li class="tabbedHeader1"><span><?php echo $tab1; ?></span></li>
  					<?php endif; ?>
  					<?php if($this->countModules('nuMovies_tab2')): ?>
  					<li class="tabbedHeader2"><span><?php echo $tab2; ?></span></li>
  					<?php endif; ?>
  					<?php if($this->countModules('nuMovies_tab3')): ?>
  					<li class="tabbedHeader3"><span><?php echo $tab3; ?></span></li>
  					<?php endif; ?>
  					<?php if($this->countModules('nuMovies_tab4')): ?>
  					<li class="tabbedHeader4"><span><?php echo $tab4; ?></span></li>
  					<?php endif; ?>
  				</ul>
  
  				<?php if($this->countModules('nuMovies_tab1')): ?>
  				<div class="pane"><jdoc:include type="modules" name="nuMovies_tab1" style="nu" /></div>
  				<?php endif; ?>
  				<?php if($this->countModules('nuMovies_tab2')): ?>
  				<div class="pane"><jdoc:include type="modules" name="nuMovies_tab2" style="nu" /></div>
  				<?php endif; ?>
  				<?php if($this->countModules('nuMovies_tab3')): ?>
  				<div class="pane"><jdoc:include type="modules" name="nuMovies_tab3" style="nu" /></div>
  				<?php endif; ?>
  				<?php if($this->countModules('nuMovies_tab4')): ?>
  				<div class="pane"><jdoc:include type="modules" name="nuMovies_tab4" style="nu" /></div>
  				<?php endif; ?>
  
  			</section>
  			<div class="clr"></div>
  			<?php endif; ?>
<?php endif; ?>

You need to remove the last <?php endif; ?> and the first line (<?php if($isFrontpage): //These modules are only active on the home page ?>) only

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • BARBARA GERANAKI
  • BARBARA GERANAKI's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 4 months ago #137347 by BARBARA GERANAKI
Replied by BARBARA GERANAKI on topic Some template positions work only front page
<?php if($this->countModules('nuMovies_tab1 or nuMovies_tab2 or nuMovies_tab3 or nuMovies_tab4')): ?>
<section id="videoGallery">

<ul class="tabs">
<?php if($this->countModules('nuMovies_tab1')): ?>
<li class="tabbedHeader1"><span><?php echo $tab1; ?></span></li>
<?php endif; ?>
<?php if($this->countModules('nuMovies_tab2')): ?>
<li class="tabbedHeader2"><span><?php echo $tab2; ?></span></li>
<?php endif; ?>
<?php if($this->countModules('nuMovies_tab3')): ?>
<li class="tabbedHeader3"><span><?php echo $tab3; ?></span></li>
<?php endif; ?>
<?php if($this->countModules('nuMovies_tab4')): ?>
<li class="tabbedHeader4"><span><?php echo $tab4; ?></span></li>

</ul>

<?php if($this->countModules('nuMovies_tab1')): ?>
<div class="pane"><jdoc:include type="modules" name="nuMovies_tab1" style="nu" /></div>
<?php endif; ?>
<?php if($this->countModules('nuMovies_tab2')): ?>
<div class="pane"><jdoc:include type="modules" name="nuMovies_tab2" style="nu" /></div>
<?php endif; ?>
<?php if($this->countModules('nuMovies_tab3')): ?>
<div class="pane"><jdoc:include type="modules" name="nuMovies_tab3" style="nu" /></div>
<?php endif; ?>
<?php if($this->countModules('nuMovies_tab4')): ?>
<div class="pane"><jdoc:include type="modules" name="nuMovies_tab4" style="nu" /></div>
<?php endif; ?>

</section>
<div class="clr"></div>
<?php endif; ?>
<?php endif; //The frontpage check ?>
<?php if($this->countModules('nuMovies_lowerModuleFull1 or nuMovies_lowerModuleFull2 or nuMovies_lowerModuleHalf1 or nuMovies_lowerModuleHalf2')): ?>


Is this right? I'm not sure which of the last end ifs to delete

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 4 months ago #137348 by Krikor Boghossian
Replied by Krikor Boghossian on topic Some template positions work only front page
<?php endif; //The frontpage check ?>

You should delete this assuming you have already deleted this as well
<?php if($isFrontpage): //These modules are only active on the home page ?>

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • BARBARA GERANAKI
  • BARBARA GERANAKI's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 4 months ago #137349 by BARBARA GERANAKI
Replied by BARBARA GERANAKI on topic Some template positions work only front page
It's ok now
Thanks again :-)

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


Powered by Kunena Forum