Setting Unique Body Classes and IDs in Orchard

孤街浪徒 提交于 2019-12-24 02:38:08

问题


Is there a way to set unique body classes and IDs per page in Orchard? I would like to be able to control these on the 'edit page' section.

For example, the home page would have the body id of 'home', the about page would have a body ID of 'about' etc...

And -- if there were subpages under the about page, those pages would have a body ID of 'about' and a body class unique to the subpage.

I would like to be able to set these IDs and classes on the 'edit page' section for each page.


回答1:


Try the Classy feature in Vandelay.Industries (available from the gallery). It's a part that you can add to a content type in order to be able to set classes and ids, and also add scripts.



来源:https://stackoverflow.com/questions/8575941/setting-unique-body-classes-and-ids-in-orchard

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!