设置独特的车身class和id的果园 [英] Setting Unique Body Classes and IDs in Orchard

查看:130
本文介绍了设置独特的车身class和id的果园的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在果园设置每页独特的车身类别和标识?我希望能够在编辑页面部分控制这些。

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.

例如,主页将有家的主体ID,有关网页将有一个机构ID关于等等......

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

和 - 如果有下的有关页面的子页面,这些页面将有关于主体ID和主体类唯一的子页面

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.

我希望能够在编辑页面部分为每个页面设置这些ID和班级。

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

推荐答案

尝试在Vandelay.Industries优雅的功能(可从库)。这是您可以添加到内容类型,以一个部分能够设置class和id,并且还添加脚本。

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.

这篇关于设置独特的车身class和id的果园的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆