marpasj
19-01-2013, 10:00
Witam.
Problem dotyczy witryny http://przedszkolekajtus.pl/ , o której modyfikację mnie poproszono. Jako strona startowa otwiera się zawartość tego, co jest pod AKTUALNOŚCI (w PA Joomli jest to przegląd artykułów Strony Głównej), a chciałbym, żeby otwierało się to, co jest pod PRZEDSZKOLE (pojedynczy artykuł), zaś AKTUALNOŚCI pozostały w takiej formie jak teraz, ale jako "zwykły" odnośnik menu.
Próbowałem modyfikacji pliku index.php, ale bez rezultatu (listing fragmentu, który - jak sądzę - jest odpowiedzialny za to, co otwiera się jako strona startowa, poniżej).
<div id="page_title">
<? if((int)$_REQUEST['id'] == 3){ ?>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/t_prze.png" alt="" />
<? } elseif((int)$_REQUEST['id'] == 4){ ?>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/t_kadr.png" alt="" />
<? } elseif((int)$_REQUEST['id'] == 2){ ?>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/t_ofer.png" alt="" />
<? } elseif((int)$_REQUEST['id'] == 74){ ?>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/t_kont.png" alt="" />
<? } elseif((int)$_REQUEST['id'] == 5){ ?>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/t_grup.png" alt="" />
<? } elseif($_REQUEST['option'] == "com_joomgallery"){ ?>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/t_gale.png" alt="" />
<? } elseif($_REQUEST['option'] == "com_jforms"){ ?>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/t_kont.png" alt="" />
<? } else { ?>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/t_aktu.png" alt="" />
<? } ?>
</div>
<div id="menu">
<a href="http://przedszkolekajtus.pl/"><div class="prz menu" style="margin-left: 80px;"></div></a>
<a href="http://przedszkolekajtus.pl/index.php?option=com_content&view=article&id=3&Itemid=3"><div class="prze menu"></div></a>
<a href="http://przedszkolekajtus.pl/index.php?option=com_content&view=article&id=4&Itemid=3"><div class="kadr menu"></div></a>
<a href="http://przedszkolekajtus.pl/index.php?option=com_content&view=article&id=2&Itemid=5"><div class="ofer menu"></div></a>
<a href="http://przedszkolekajtus.pl"><div class="aktu menu"></div></a>
<a href="http://przedszkolekajtus.pl/index.php?option=com_content&view=article&id=5&Itemid=2"><div class="grup menu"></div></a>
<a href="http://przedszkolekajtus.pl/index.php?option=com_joomgallery&Itemid=6"><div class="gale menu"></div></a>
<a href="http://przedszkolekajtus.pl/index.php?option=com_content&view=article&id=74&Itemid=3"><div class="kont menu"></div></a>
<div class="clear"></div>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/pod_menu.png" alt="" />
</div>
Proszę o pomoc. Dziękuję. :)
Problem dotyczy witryny http://przedszkolekajtus.pl/ , o której modyfikację mnie poproszono. Jako strona startowa otwiera się zawartość tego, co jest pod AKTUALNOŚCI (w PA Joomli jest to przegląd artykułów Strony Głównej), a chciałbym, żeby otwierało się to, co jest pod PRZEDSZKOLE (pojedynczy artykuł), zaś AKTUALNOŚCI pozostały w takiej formie jak teraz, ale jako "zwykły" odnośnik menu.
Próbowałem modyfikacji pliku index.php, ale bez rezultatu (listing fragmentu, który - jak sądzę - jest odpowiedzialny za to, co otwiera się jako strona startowa, poniżej).
<div id="page_title">
<? if((int)$_REQUEST['id'] == 3){ ?>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/t_prze.png" alt="" />
<? } elseif((int)$_REQUEST['id'] == 4){ ?>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/t_kadr.png" alt="" />
<? } elseif((int)$_REQUEST['id'] == 2){ ?>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/t_ofer.png" alt="" />
<? } elseif((int)$_REQUEST['id'] == 74){ ?>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/t_kont.png" alt="" />
<? } elseif((int)$_REQUEST['id'] == 5){ ?>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/t_grup.png" alt="" />
<? } elseif($_REQUEST['option'] == "com_joomgallery"){ ?>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/t_gale.png" alt="" />
<? } elseif($_REQUEST['option'] == "com_jforms"){ ?>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/t_kont.png" alt="" />
<? } else { ?>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/t_aktu.png" alt="" />
<? } ?>
</div>
<div id="menu">
<a href="http://przedszkolekajtus.pl/"><div class="prz menu" style="margin-left: 80px;"></div></a>
<a href="http://przedszkolekajtus.pl/index.php?option=com_content&view=article&id=3&Itemid=3"><div class="prze menu"></div></a>
<a href="http://przedszkolekajtus.pl/index.php?option=com_content&view=article&id=4&Itemid=3"><div class="kadr menu"></div></a>
<a href="http://przedszkolekajtus.pl/index.php?option=com_content&view=article&id=2&Itemid=5"><div class="ofer menu"></div></a>
<a href="http://przedszkolekajtus.pl"><div class="aktu menu"></div></a>
<a href="http://przedszkolekajtus.pl/index.php?option=com_content&view=article&id=5&Itemid=2"><div class="grup menu"></div></a>
<a href="http://przedszkolekajtus.pl/index.php?option=com_joomgallery&Itemid=6"><div class="gale menu"></div></a>
<a href="http://przedszkolekajtus.pl/index.php?option=com_content&view=article&id=74&Itemid=3"><div class="kont menu"></div></a>
<div class="clear"></div>
<img src="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/gfx/pod_menu.png" alt="" />
</div>
Proszę o pomoc. Dziękuję. :)