Uncategorized

Drupal7でWebformモジュールを使用したページで”Sumitted by”が表示される

Webformのコンテントタイプの編集画面にて、Display settingsのDisplay author and date informationのチェックを外す。チェックが外れているにも関わらず表示されている場合は、一度チェックを入...

Drupal: ViewsでFile:PathをRelationshipに追加する場合

ViewsでFile:PathをRelationshipに追加し、フィールドにFile:Pathを追加すると、FileAttachmentとImageの両方のフィールドが使われているノードは同じノードが2重で表示されてしまう。 目的は...

Linux : Change ownership of file / directory

sudo chownusername:group directory If you add -R, it changes permissions too. sudo chown username:group directory ...
Uncategorized

CSS: 要素を縦軸中心に揃える

table要素で言うところのvertical-align: middle;のように、縦軸上に要素を中心に持ってくる方法。 親要素にdisplay: tableする方法もいいが、tableの挙動になるといろいろと面倒くさいことも。 .h...

Pseudo elements :after, :before only work with non-replaced elements

A replaced element is any element whose appearance and dimensions are defined by an external resource. Examples includ...

JavaScriptでuseragentでMobileのみ検知する(2016年6月時点)

JavaScriptでユーザーエージェントを用いてスマートフォン、タブレットデバイスのみ検知する方法。 Mozillaのサイトによると、"Mobi"の文字で検知することが推奨されている。 例: if (...
Uncategorized

JavaScript : null, undefined, falseの違い

Javascriptで変数の初期化をする時に、null、false、undefinedとそれぞれ設定でどう違うか調べてみた。 まずnullはJavascriptの場合データー型がオブジェクト。 そのため、 ver test = nul...

SASS : percentage function

To calculate percentage of width, SASS has a built-in function. percentage(3/12); Ex: $width : pecentage...
Uncategorized

Drupal7でContextを使ってViewブロックを指定するのと、pageテンプレートを分けてブロックページでViewブロックを表示する違い

Drupal7でContextを使ってViewブロックを指定するのと、pageテンプレートを分けてブロックページでViewブロックを表示する違いについて。 例えばフロントページのみに表示するViewブロックがあったとして、page--fr...

CSS : background position

The first valueis the horizontal position and the second value is the vertical. background-position: horizontal, vert...
タイトルとURLをコピーしました