Git Product home page Git Product logo

pico-dlfile's Introduction

pico_dlfile

Pico Plugin:contentフォルダ配下の任意ファイルをダウンロード可能にする

記事に追加する値

  • Download: ダウンロードしたいファイルのファイル名。,区切りで複数個指定可能。また、::で区切ることで、ダウンロードファイルのタイトルを指定できる。

ex). Download: ダウンロード::file.zip, file2.zip

Pico1.0から使えるようになった記述

Pico1.0からメタデータがYAML形式に変更されたため、以下のような記述も可能です。

  URL: 
    - リンクテキスト::リンクURL
    - リンクテキスト::リンクURL

または

  URL: 
    - 
      text: リンクテキスト
      file: リンクURL
    - 
      text: リンクテキスト
      file: リンクURL

追加するTwig変数

  • download: ダウンロードするファイルのURL
  • url: ダウンロードファイルのURL
  • text: ダウンロードファイルを示すテキスト
  • external: ダウンロードファイルが外部リンクであった場合、true

コンフィグオプション

  • $config['dlfile']['text']:リンクテキストのデフォルト値。何も入力しなかった場合は、「Download」となる。

pico-dlfile's People

Contributors

takamichie avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.