PDA

Zobacz pełną wersję : Problem z Modułem TOP1



drips
26-09-2013, 14:04
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ę?

KES
26-09-2013, 14:25
Może jest warunek w szablonie, aby wyświetlał tylko pozycje modułów na stronie głównej.

drips
26-09-2013, 14:41
a jak to sprawdzić ? bo w ustaaieniach szablonu z pulpitu administratora nie mam takiej blokady.

KES
26-09-2013, 14:47
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.

drips
26-09-2013, 14:49
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?

KES
26-09-2013, 14:55
Szukaj div'ów:


div.top1
div.top2
div.top3

drips
26-09-2013, 14:59
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?

KES
26-09-2013, 15:28
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 */

drips
26-09-2013, 16:11
Dzięki. Pomogło.
Jest tu jakieś piwo żeby Ci kliknąć ?