Drupal 8怎样创建一个当前文章所含术语相关的文章列表区块

admin 提交于 周六, 02/14/2015 - 17:59

An example of view block with related nodes based on 'tags'.
1. Create a block (take a look at screenshots below)
2. Add a relationship: Taxonomy term: Content using: Tags
3. Add contextual filter: (field_tags) Content: Nid

When the filter value is NOT available
Provide default value -> Content ID from URL

MORE
check: Exclude
this contextual filter will remove current node from the view
4. Add contextual filter: Taxonomy term: Term ID

标签

怎样用CSS做渐变背景

admin 提交于 周五, 02/13/2015 - 18:52

background: #6cab26;
background-image: url(IMAGE_URL); /* fallback */
background-image: url(IMAGE_URL), -webkit-gradient(linear, left top, left bottom, from(#6cab26), to(#6ceb86)); /* Saf4+, Chrome */
background-image: url(IMAGE_URL), -webkit-linear-gradient(top, #6cab26, #6ceb86); /* Chrome 10+, Saf5.1+ */
background-image: url(IMAGE_URL),    -moz-linear-gradient(top, #6cab26, #6ceb86); /* FF3.6+ */
background-image: url(IMAGE_URL),     -ms-linear-gradient(top, #6cab26, #6ceb86); /* IE10 */

标签

Windows怎样增加本地域名解析

admin 提交于 周五, 02/13/2015 - 16:04

修改hosts文件,Windows 7的路径在C:\Windows\System32\drivers\etc\hosts

这个文件路径会被隐藏,需要设置文件夹选项中的隐藏文件、系统文件选项。

编辑这个文件也需要administrator权限,在开始菜单找到记事本,右键菜单中以管理员身份运行,还要在文件类型栏填上*.*才能显示hosts文件。

标签