Yuki Takei ce67e29ebd impl ref tag 6 ani în urmă
..
resource 4850c3878b update docs 4 ani în urmă
src ce67e29ebd impl ref tag 4 ani în urmă
.editorconfig 0904cd50be init 4 ani în urmă
.eslintignore 5ac04219a9 add skelton files 4 ani în urmă
.eslintrc.js 5ac04219a9 add skelton files 4 ani în urmă
.gitignore 0904cd50be init 4 ani în urmă
.markdownlint.json 0904cd50be init 4 ani în urmă
LICENSE 0904cd50be init 4 ani în urmă
README.md f2902284ca update docs 4 ani în urmă
index.js 5ac04219a9 add skelton files 4 ani în urmă
package.json 5ac04219a9 add skelton files 4 ani în urmă
yarn.lock 5ac04219a9 add skelton files 4 ani în urmă

README.md

growi-plugin-attachment-refs

dependencies status devDependencies Status MIT License

Install

  1. install plugin

    yarn add growi-plugin-attachment-refs
    
  2. build client app (see official documents)

Usage

ref tag

Syntax

$ref(file.txt)
$ref(file.txt, page=/somewhere/page)

Output

here

Options

  • page : Target page path of reference file

refs tag

Syntax

$refs(/somewhere/page, regexp=/^file.*\.txt$/)

Output

ref_example

Options

  • regexp : Regular Expression to retrieve
  • format : File format specification

refimg tag

Syntax

$refimg(pict.png, width=50%, alt=Pic)

Output

<img src="/attachment/xxxxx" width="50%" alt="Pic">

Options

  • width : width
  • height : height
  • max-width : max-width
  • max-height : max-height
  • alt : alt text

refsimg tag

Syntax

$refsimg(/somewhere/page, regexp=/^.*\.png$/, max-width=200)

Output

<ul>
  <li><img src="/attachment/xxxxx" style="max-width: 200"></li>
  <li><img src="/attachment/yyyyy" style="max-width: 200"></li>
  <li><img src="/attachment/zzzzz" style="max-width: 200"></li>
</ul>

Options

  • width : width
  • height : height
  • max-width : max-width
  • max-height : max-height

TODO

  • ref
  • refs
    • regexp option
    • format option
  • refimg
  • refsimg