cms:drupal:upgrade8:colorbox
文書の過去の版を表示しています。
Colorbox
各コンテンツタイプにおいてInsert imageなどの設定を有効に指定おく必要がある。これは移行されてないようだ。非常にハマった。しかも、まだできてない。
参考情報
install
モジュールを入れて有効にするだけでは動かなかった。webには情報がなかったが、モジュールの中に含まれている「README.TXT」に記載があった。 <pre> 1. Install the module as normal, see link for instructions.
Link: https://www.drupal.org/documentation/install/modules-themes/modules-8
2. Download and unpack the Colorbox plugin in “libraries” inside root folder.
Make sure the path to the plugin file becomes: "libraries/colorbox/jquery.colorbox-min.js" Link: https://github.com/jackmoore/colorbox/archive/master.zip Drush users can use the command "drush colorbox-plugin".
3. Change the permission of colorbox plugin inside 'libraries' folder.
Right click on 'libraries' folder -> properties -> "permissions" and change to full permission.
</pre>
現状
サムネールが移行されてない模様である。もとは下記にあった
/home/**/www/www_cycle_eek/sites/default/files/styles/medium
手動で移行すれば良いのかしら?
手動だけではダメなようだ、どうも絶対アドレスになってる(表示ソースを見るとだが)、移行後のデータソース
<p> <a class="colorbox colorbox-insert-image" href="https://cycle.eek.jp/sites/default/files/blog/IMG_5075.jpeg"> <img alt="" class="image-medium" src="/sites/default/files/styles/medium/public/blog/IMG_5075.jpeg?itok=TFJZb7Ad" style="height:165px; width:220px" /> </a> </p>
Colorboxにはなってて表示されるものの、元ソース(オリジナル画像)は元のファイルURLのまま(移行前)だし、表示のサムネールはアドレスが間違ってる現在のルートである。これ、どうやって直したらいいのかな、大したデータ量じゃないから、手動でもいいけど、ちょっとしんどいな。
移行後に作った記事
<p> <a class="colorbox insert-colorbox" data-insert-class="" data-insert-type="image" href="/www_cycle_eek8/sites/default/files/blog/imakichi-logo_web_0.png"> <img alt="" class="image-colorbox__medium" data-entity-type="file" data-entity-uuid="insert-medium-c87a47dd-ab61-42f0-b51d-3e0bd8afedc8" data-insert-attach="{"id": "c87a47dd-ab61-42f0-b51d-3e0bd8afedc8" , "attributes": {"alt": ["alt", "description"] , "title": ["title"]}}" data-insert-class="" data-insert-type="image" src="/www_cycle_eek8/sites/default/files/styles/medium/public/blog/imakichi-logo_web_0.png?itok=eWlesOYs" /> </a> </p>
後から作った記事では現行ルートからとなっているので、後でフォルダを移行してもうまく行きそうな気がする。
が、はたしてそうか?
cms/drupal/upgrade8/colorbox.1641191302.txt.gz · 最終更新: 2022/01/03 15:28 by king