我正在尝试为Plone网站构建一个表单包.我目前正在使用Plone 4.3.在我使用Dexterity和five.grok和grok库之前.但在阅读了本文的Plone 4.3迁移和five.grok依赖部分之后:http://developer.plone.org/components/grok.html看起来Plone开发人员正在逐渐停止使用grok .
那么我是否应该放弃使用Grok?如果所有当前文档目前都在使用Grok,我将如何这样做呢?此外,我正在从基于Windows的机器开发.
将我的MAMP Pro更新到最新的phpMyAdmin(4.0.0)后,我遇到了问题.错误是:
Unknown language: en-iso-8859-1.
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?我尝试config.inc.php
通过删除en-
部分语言和字符集转换设置进行编辑.我已经编辑了两个config.inc.php
文件Applications/MAMP/bin/phpMyAdmin
和/Library/Application Support/appsolute/MAMP PRO/
目录.我仍然遇到这个问题.我还需要检查什么?
我试图用Diazo replace
和attributes
规则替换一些CSS样式,但到目前为止我还没弄清楚.
到目前为止,我一直在使用重氮成功replace
,copy
,before
,after
,drop
为规则css:content
,css:theme
,css:content-children
,和css:theme-children
.
我目前的标记基于Twitter Bootstrap 3.0,如下所示:
<div class="container">
<div class="row">
<div id="content" class="col-md--8 well">
<p>Plone content here</p>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
使用drop
规则我可以删除我的类#content
:
<drop attributes="class" css:theme="#theme"/>
Run Code Online (Sandbox Code Playgroud)
但我无法弄清楚如何添加css类col-12
.col-12
在我的主题中不存在任何地方.到目前为止,我已经尝试了以下规则:
<replace attributes="class col-12" css:theme="#theme"/>
<replace attributes="col-12" css:theme="#theme"/>
Run Code Online (Sandbox Code Playgroud)
我有一个copy
规则的例子,href
从Plone复制链接#portal-logo
:
<copy attributes="href" css:content="#portal-logo" css:theme="#logo" />
Run Code Online (Sandbox Code Playgroud)
我觉得我很亲近,我所需要的只是一个类似的例子.我一直在寻找Diazo docs for Basic语法,但还没有能够解决这个问题.
任何帮助将不胜感激,如果我在得到答复之前弄明白,我会更新我的问题
谢谢.
我在转发器中有一个HTML元素,我想根据四个条件更改类.该条件基于JSON的属性.该属性称为type
,和我一起工作的CSS类的red
,blue
和green
.The条件是:
type
= red然后分配css类red
type
=蓝色则分配css类blue
type
=绿色,则分配css类green
type
未定义或null,则分配css类red
由于我对AngularJS的经验有限,我知道我可以使用该ng-style
属性设置条件CSS .我如何使用Aurelia实现这一目标?
示例HTML标记
<div repeat.for="item of projects" class="col-lg-6">
<div class="card-header">
<!-- I want to change the css class red based on the value of the JSON attribute type -->
<div class="component-type red">
...
</div>
</div>
...
</div>
Run Code Online (Sandbox Code Playgroud)