Link to category - Joomla! Forum - community, help and support


#1 problem:
i've been trying create syte navigation menu time, unfotunately wasn't successful... have created 2 menu items "left-navigation" , "right-navigation", both have few sections hold categories articles. i've used category blog layout method.
this part of left navigation. works pretty well...

code: select all

                  <div id="left-column">
                           <ul class="menu"><li class="item65"><a href="/anime.html"><span>anime</span></a></li></ul>      </div>

except part...

code: select all

<a href="/anime.html">
want there link category, articles (lets anime articles).it should

code: select all

<a>index.php?option=com_content&view=category&layout=blog&id=35</a>
.
i'm still learning php , joomla takes me while fix problems this...so thought hand experts on making joomla modules/templates.

this code modules.php generates left-column:

code: select all

function modchrome_hedrixleft($module, &$params, &$attribs)
{
   $headerlevel == 0;
   if (!empty ($module->content)) : ?>
      <div id="left-column<?php echo $params->get('moduleclass_sfx'); ?>">
         <?php if ($module->showtitle) : ?>
         <?php endif; ?>
         <?php echo $module->content; ?>
      </div>
   <?php endif;

#2 problem:
first 1 problem more serious one, it's still worth asking.
at first, before i've started integrating joomla , creating joomla template site, created html/css template, static front page, see how should look. how navigation should look:

code: select all

<div id="left-column">
   <ul class="nav-left">
   <li><a class="home" href="#"></a></li>
       <li><a class="anime" href="#"></a></li>
       <li><a class="comics" href="#"></a></li>
   </ul>
</div>

<div id="right-column">
  <ul class="nav-right">
   <li><a class="rss" href="#"></a></li>
       <li><a class="movies" href="#"></a></li>
       <li><a class="games"  href="#"></a></li>
  </ul> 
</div>

problem via standart joomla legacy.php script menu items (buttons) same.
all of them looks this:

code: select all

<ul class="menu"><li class="item#"><a href="/#.html"><span>#</span></a></li></ul>

and navigation (first 1 code) every <a> has own class, different button. thats because i've created button , text ps, ofcourse can use button background , let php write names, doesn't good...so question is, possible make php generate 6 buttons different background?
p.s use joomla ver. 1.5.14

ok, after long time, want continue working on matter, don't have enough experience php coding, need help.

maybe didn't make cleare enough:

i want create site navigation: 6 buttons, half of them left , other half right side of site.
those buttons link categories (or sections) hold articles. exp: anime button (link anime category) articles anime be.

i've created custom menus (left , right), left menu item -> 3 buttons, right menu item -> 3buttons. buttons menu items, linking categories (as explained above). may seem easy, thought too...but when created menu items, i've faced 1 problem...
*those menu items aren't linking categories* if create menu item called "anime", instead of link anime category, anime.html.

on other hand, while creating menu item (through joomla admin menu) can see link category, , if manually edit .php file , put link in navigation, works...

this i'm talking about:

code: select all

<div id="left-column">
  <ul class="menu">
      <li class="item65"><a href="/anime.html"><span>anime</span</a></li>
  </ul>      
</div>


code: select all

<div id="left-column">
  <ul class="menu">
      <li class="item65"><a href="index.php?option=com_content&view=category&layout=blog&id=35"></a></li>
  </ul>
</div>


if have advices or material (modules, scripts) can me, post here ^^

edit: forgot mention, categories updated, adding new articles. what's more, every article connected comment system (tho don't know how that, it's future plan), people comment, share opinions.





Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support