Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
joomla主菜单的定制_Joomla - Fatal编程技术网

joomla主菜单的定制

joomla主菜单的定制,joomla,Joomla,我对mod_主菜单有问题。 我想根据给定的html自定义左侧的主菜单 <li style=" background-color:#73B2DD;">Partnership and Grant Management</li> <li style=" background-color:#90C3E4;">Research, plicy and strategy analysis</li> <li style=" background-

我对mod_主菜单有问题。 我想根据给定的html自定义左侧的主菜单

  <li style=" background-color:#73B2DD;">Partnership and Grant Management</li>
  <li style=" background-color:#90C3E4;">Research, plicy and strategy analysis</li>
  <li style=" background-color:#73B2DD;">Program design, development and implementation</li>
  <li style=" background-color:#90C3E4;">Project Management - MIS design</li>
  <li style=" background-color:#73B2DD;">Governance and Institutional Development</li>
  <li style=" background-color:#90C3E4;">Training &amp; Capacity Building</li>
  <li style=" background-color:#73B2DD;">System Design, development and implementation</li>
  <li style=" background-color:#90C3E4;">Resource Mobilization</li>
  <li style=" background-color:#73B2DD;">Documentation</li>
  <li style=" background-color:#90C3E4;"></li>
bt如何根据html添加
  • 样式

    提前感谢…

    您应该首先为主菜单模块创建一个。这样,您就可以编辑模块输出,而无需对joomla进行黑客攻击。 然后,您可以根据需要更改覆盖(default.php)

    这里是一个快速镜头,但我想你会得到:

    $x = array['90C3E4','73B2DD'];
    $node->addAttribute('style', 'background-color:<?php echo $x[++$i % 2]; ?>');
    
    $x=array['90C3E4','73B2DD'];
    $node->addAttribute('style','background color:');
    
    $x = array['90C3E4','73B2DD'];
    $node->addAttribute('style', 'background-color:<?php echo $x[++$i % 2]; ?>');