<Visual Revelation>--Reading Note (2)

Visual Revelations – Reading Notes(2)

CHAPTER 2 Graphical Mysetires

The greatset value of a picture is when it forces us to notice what we has been never expected to see. –John Turkey

Mystery #1: Pregnancires Among !Kung Women


Confusing because:

  • Using different symbols to represent different events on a common time scale. Irrelevant events have at least as much visual weight as the theortically important ones.
  • Understanding the graph requires memorizing a complex legend and ignoring everything superfluous.

Key:
Use a common metaphor for all the activities.

Fly Me to the London(updaing

伦敦行程 12.27 - 12.31

Wishlist

  • 大英博物馆
  • 国家画廊
  • 伦敦眼
  • 塔桥
  • 伦敦塔
  • Big Ben
  • Westminster Abbey
  • Abbey Road(好远啊再看吧)
  • Buckingham Palace
  • St Paul’s Cathdral
  • Windsor Castle(要订票过去了)
  • Camden Market(punk punk 愉悦
  • Borough Market(喂老婆吃吃吃
  • Fortnum&Mason(伦敦最出名的百货
  • Primark(号称必逛的店)

Drupal 8 -- Add Url to Slideshow

进度太滑水今天被boss批评了(望天

本来以为很好实现的功能结果到处找不到哪里可以加连接,简单搜索一下这个功能竟然还有要用插件,试了两个插件以后最后还是找到免插件的解决方案(其实也是写不来token)。

原文:

BY jeni_dc commented 5 years ago 

I'd just create a view to display that image on my node type. Add another field to store the link in your node, then create a view with two fields, your link and your image. Arrange the fields in your view so the link is first, then the image.

Exclude the link field from display. When setting up your image field in the view you'll need to rewrite the results. Select "output this field as a link", and in the link path enter the token for your link field, that will be in the replacement patterns below.

Then to make sure your view is only showing the image and link associated with the particular node you are viewing, you'll need to add a contextual filter. Just add a filter for "Content: Nid" and select "Hide view" for when the filter is not available.

Then in your panel for your node display, remove the field that was displaying your image and add the view in it's place.

Drupal 8 主题开发笔记

参考:Drupal 8 主题开发指南
今天终于会用一点d8的主题,本着“没有女朋友不会自己扮哦”的心态自己造轮子吧。
大概日常的使用这里面都包含了,不够的话链接里面也会有,算是阅读比较好了,下一篇写一下Twig的语法(好像也不是很难)。

下面习惯性的先看目录结构:

d8主题文件夹结构

Set-up-Drupal-8-on-Ubuntu

Drupal Setup Guide

This Document explains how to install Drupal 8 in Ubuntu 16.04 LTS Server, along with installing and setting Apache 2, PHP and MySQL.

Installation Overview

Before installing Drupal 8, check the requirements on Drupal requirements. This guide uses Apache/2.4.18, PHP 7.0.8 , MySQL v5.7 as the development environment.

Note: Ubuntu 16.04 LTS Server includes Apache 2, PHP, MySQL by default, you can select to include them while installing the Ubuntu on your PC.

Before You Begin

  • The Drupal installation consists the usage of browser, so you should have GUI (instead of pure CLI interface) first. For Ubuntu 16.04 LTS Server does NOT contain a GUI interface, you may pick KDE, Gnome, Lxde as Desktop Environment first.
  • Most command below needs the sudo permission, if the terminal returns Permission denied, remember to use sudo as possible.

Install MySQL, Apache2, PHP

MySQL