mod_category nav menu - Joomla! Forum - community, help and support


class nav menu not applicable mod_categories , mod_category modules because them use headers tag h1, h2...and on

i wrote "nav menu" in field module class suffix in recent article module , items appear menu mouseover.
recents module not use header tags (h1, h2...h6).

i solved myself without change css file. choice way joomla going use bootstrap stuff...i understood it's better apply class without change css file.

i changed following files:
- mod_articles_category.xml
- default_items.php

mod_articles_categories.xml
just added row value 0 , none label.

code: select all

<field name="item_heading" type="list" default="4"
            label="mod_articles_categories_title_heading_label"
            description="mod_articles_categories_title_heading_desc"
         >
            <option value="0">jnone</option>
            <option value="1">jh1</option>
            <option value="2">jh2</option>
            <option value="3">jh3</option>
            <option value="4">jh4</option>
            <option value="5">jh5</option>
         </field>



default_items.php
i added if add or not header tag
from

code: select all

<h<?php echo $params->get('item_heading') + $levelup; ?>>
      <a href="<?php echo jroute::_(contenthelperroute::getcategoryroute($item->id)); ?>">
      <?php echo $item->title;?></a>
   </h<?php echo $params->get('item_heading') + $levelup; ?>>


to

code: select all


  <?php // byman
  if($params->get('item_heading')<>"0"){
   echo "<h".$params->get('item_heading') + $levelup.">";   
   } 
  ?>
      <a href="<?php echo jroute::_(contenthelperroute::getcategoryroute($item->id)); ?>">
      <?php echo $item->title;?></a>
      
      
   <?php // byman
   if($params->get('item_heading')<>"0"){
   echo "</h".$params->get('item_heading') + $levelup.">";
   }
   ?>


i suggest 1 joomla dev. team...how it...can me?






Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support