dongxue163536 2012-02-29 23:48
浏览 40
已采纳

如何在PyroCMS中实现更复杂的导航?

I am new to PyroCMS 2.1 - I am creating a new template and wondering how to implement the following navigation - can it be done in PyroCMS at all?

<ul id="navlist">
                <li id="nav_one"><a id="link_one" href="#">Item 1</a></li>
                <li id="nav_two"><a id="link_two" href="#">Item 2</a></li>
...
</ul>

Basically, I need a different set of ID's for each menu item (li and a elements).

Advanced navigation tag options doesn't help: http://docs.pyrocms.com/2.1/manual/index.php/modules-and-tags/tag-reference/navigation.

Thanks!

  • 写回答

3条回答 默认 最新

  • doulu0266 2012-03-02 15:05
    关注

    Doesn't look like there is a native way to do this in PyroCMS, but you can add a class to each li in the navigation section of the admin panel.

    If you do decide you really need the id's generated in your templates, you could look at extending the navigation module and widget yourself. You could update the database to include the fields you need, update the navigation module controller and models (and admin panel views) and update the widget to include the fields in the navigation variable.

    Good luck!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 phython如何实现以下功能?查找同一用户名的消费金额合并—
  • ¥15 孟德尔随机化怎样画共定位分析图
  • ¥18 模拟电路问题解答有偿速度
  • ¥15 CST仿真别人的模型结果仿真结果S参数完全不对
  • ¥15 误删注册表文件致win10无法开启
  • ¥15 请问在阿里云服务器中怎么利用数据库制作网站
  • ¥60 ESP32怎么烧录自启动程序
  • ¥50 html2canvas超出滚动条不显示
  • ¥15 java业务性能问题求解(sql,业务设计相关)
  • ¥15 52810 尾椎c三个a 写蓝牙地址