|
|
пре 6 година | |
|---|---|---|
| .. | ||
| resource | 4850c3878b update docs | пре 4 година |
| src | f2f76afbde clean code | пре 4 година |
| .editorconfig | 0904cd50be init | пре 4 година |
| .eslintignore | 5ac04219a9 add skelton files | пре 4 година |
| .eslintrc.js | 5ac04219a9 add skelton files | пре 4 година |
| .gitignore | 0904cd50be init | пре 4 година |
| .markdownlint.json | 0904cd50be init | пре 4 година |
| LICENSE | 0904cd50be init | пре 4 година |
| README.md | a8fe8d9da9 refactor with css grid | пре 4 година |
| index.js | 5ac04219a9 add skelton files | пре 4 година |
| package.json | ba38b86eed upgrade libs | пре 4 година |
| yarn.lock | ba38b86eed upgrade libs | пре 4 година |
install plugin
yarn add growi-plugin-attachment-refs
build client app (see official documents)
ref tag$ref(file.txt)
$ref(file.txt, page=/somewhere/page)
file : File name of reference file (default: the first argument)page : Target page path of reference file (default: current page)refs tag$refs(/somewhere/page, regexp=/^file.*\.txt$/)
page : Target page path to search attachments (default: the first argument || current page)prefix : Page prefix to search attachmentsdepth : page depth to search attachmentsregexp : Regular Expression to retrieveformat : File format filteringrefimg tag$refimg(pict.png, width=50%, alt=Pic)
<img src="/attachment/xxxxx" width="50%" alt="Pic">
file : File name of reference file (default: the first argument)width : widthheight : heightmax-width : max-widthmax-height : max-heightalt : alt textrefsimg tag$refsimg(/somewhere/page, regexp=/^.*\.png$/, max-width=200)
<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>
page : Target page path to search attachments (default: the first argument || current page)prefix : Page prefix to search attachmentsdepth : page depth to search attachmentsregexp : Regular Expression to retrieveformat : File format filteringwidth : width
width=200px, width=50%height : height
height=100pxmax-width : max-width
max-width=200px, max-width=50%max-height : max-height
max-height=100pxdisplay : display property for image (use display: block when undefined)
grid option is set.grid : Grid layout settings
autofill : Grid layout with auto filling with 100px tracksautofill-2x : Grid layout with auto filling with 200px tracksautofill-3x : Grid layout with auto filling with 300px tracksautofill-4x : Grid layout with auto filling with 400px trackscol-2 : Grid layout with 2 columnscol-3 : Grid layout with 3 columnscol-4 : Grid layout with 4 columnscol-5 : Grid layout with 5 columnscol-6 : Grid layout with 6 columnsgrid-gap : Grid gap
grid-gap=1pxformat option
