我是第一次接触foswiki,在我公司数据中心的虚拟机上运行它。
我已经完成了大部分的基线配置,但我想知道是否需要更多的定制。
具体来说,我正在寻找一些关于如何自定义侧边栏的文档。任何文档或小贴士,你会给我回信,将不胜感激!
谢谢!
发布于 2016-11-17 00:07:45
我假设您使用的是默认主题'PatternSkin‘
修改边栏的一个示例是更改宽度:为此,使用以下css创建一个附件'SidebarCustomWidth.css‘
#patternOuter {
margin-left: 8em;
}
#patternSideBar {
width: 8em;
margin-left: -8em;
/*background-color: rgb(200, 200, 255);*/
}
/* remove padding */
#patternSideBarContents {
padding-right: 0;
padding-left: 0;
}然后,您可以将其用于
* Set USERSTYLEURL = %PUBURLPATH{topic="TheWebname.TopicWithAttachment" "SidebarCustomWidth.css"}% 你可以在https://foswiki.org/Sandbox/StefanKr%C3%BCger/PatternSkinCssCookbookSidebarCustomWidth上找到这个例子
以及更多文档和示例,请访问https://foswiki.org/System/PatternSkinCssCookbook
可以在https://foswiki.org/System/PatternSkin#Top_44_Bottom_and_Left_Bar_customization上找到用于自定义边栏内容的其他选项
关于边栏,你可以查找WebLeftBar。
每个网站都有自己的主题WebLeftBar。您可以根据需要对其进行更改。如果一个网站没有WebLeftBar主题和WebLeftBarExample主题(这就是后备),边栏就不会呈现。
如果您想要更改新网站的默认设置,可以在_default网站中执行此操作。
https://stackoverflow.com/questions/39840670
复制相似问题