Zobacz pełną wersję : Problem z Modułem TOP1
Witam przygotowuje sobie stronę na szablonie darmowym i mam probem z wyświetaniem modułów TOP 1, TOP2 i TOP3. Wyświetlaja sie tylko na stronie głónej mimo tego że ustawiłęm żeby wyświetały się na wszystkich stronach. Co może powodować taką sytuację?
Może jest warunek w szablonie, aby wyświetlał tylko pozycje modułów na stronie głównej.
a jak to sprawdzić ? bo w ustaaieniach szablonu z pulpitu administratora nie mam takiej blokady.
Zależy jaki masz szablon, lecz najczęściej możesz to znaleźć:
templates/{nazwa_szablonu}/index.php
Lecz podstawy PHP by się przydały lub na czuja.
Szablon : http://www.livedemos.net/j3/?template=driverally a dokładnie chodzi mi o te 3 kolumny które pojawiają się pod Slideshow , czego powinienem szukac nazwy diva ?
to fragment pliku index.php
<!-- Slideshow -->
<div class="slideshow">
<?php if ($this->params->get( 'slidehome' )) : ?>
<?php
$app = JFactory::getApplication();
$menu = $app->getMenu();
$lang = JFactory::getLanguage();
if ($menu->getActive() == $menu->getDefault($lang->getTag())) : ?>
<?php include "modules/slideshow.php"; ?>
<?php endif; ?>
<?php else : ?>
<?php include "modules/slideshow.php"; ?>
<?php endif; ?>
<?php $app = JFactory::getApplication();$menu = $app->getMenu();$lang = JFactory::getLanguage();if ($menu->getActive() == $menu->getDefault($lang->getTag())) : ?>
<div id="toppositions">
<?php if ($this->countModules('top1')) : ?><div class="top1"><jdoc:include type="modules" name="top1" style="xhtml" /></div><?php endif; ?>
<?php if ($this->countModules('top2')) : ?><div class="top2"><jdoc:include type="modules" name="top2" style="xhtml" /></div><?php endif; ?>
<?php if ($this->countModules('top3')) : ?><div class="top3"><jdoc:include type="modules" name="top3" style="xhtml" /></div><?php endif; ?>
</div>
<?php endif; ?>
</div>
<!-- END Slideshow -->
Slideshow pojawia się na każdej stronie.
czy tu coś to blokuje?
Szukaj div'ów:
div.top1
div.top2
div.top3
to fragment pliku index.php
<!-- Slideshow -->
<div class="slideshow">
<?php if ($this->params->get( 'slidehome' )) : ?>
<?php
$app = JFactory::getApplication();
$menu = $app->getMenu();
$lang = JFactory::getLanguage();
if ($menu->getActive() == $menu->getDefault($lang->getTag())) : ?>
<?php include "modules/slideshow.php"; ?>
<?php endif; ?>
<?php else : ?>
<?php include "modules/slideshow.php"; ?>
<?php endif; ?>
<?php $app = JFactory::getApplication();$menu = $app->getMenu();$lang = JFactory::getLanguage();if ($menu->getActive() == $menu->getDefault($lang->getTag())) : ?>
<div id="toppositions">
<?php if ($this->countModules('top1')) : ?><div class="top1"><jdoc:include type="modules" name="top1" style="xhtml" /></div><?php endif; ?>
<?php if ($this->countModules('top2')) : ?><div class="top2"><jdoc:include type="modules" name="top2" style="xhtml" /></div><?php endif; ?>
<?php if ($this->countModules('top3')) : ?><div class="top3"><jdoc:include type="modules" name="top3" style="xhtml" /></div><?php endif; ?>
</div>
<?php endif; ?>
</div>
<!-- END Slideshow -->
Slideshow pojawia się na każdej stronie.
czy tu coś to blokuje?
usun ten warunek:
/* do usunięcia - start */
<?php $app = JFactory::getApplication();$menu = $app->getMenu();$lang = JFactory::getLanguage();if ($menu->getActive() == $menu->getDefault($lang->getTag())) : ?>
/* do usunięcia - koniec */
<div id="toppositions">
<?php if ($this->countModules('top1')) : ?><div class="top1"><jdoc:include type="modules" name="top1" style="xhtml" /></div><?php endif; ?>
<?php if ($this->countModules('top2')) : ?><div class="top2"><jdoc:include type="modules" name="top2" style="xhtml" /></div><?php endif; ?>
<?php if ($this->countModules('top3')) : ?><div class="top3"><jdoc:include type="modules" name="top3" style="xhtml" /></div><?php endif; ?>
</div>
/* do usunięcia - start */
<?php endif; ?>
/* do usunięcia - koniec */
Dzięki. Pomogło.
Jest tu jakieś piwo żeby Ci kliknąć ?
vBulletin® v4.2.5, Prawa przedruku © 2024 vBulletin Solutions, Inc. Wszystkie prawa zastrzeżone.
Tłumaczenie: Polskie Centrum Joomla!