Code Monkey home page Code Monkey logo

shaarli-descriptor's Introduction

Shaarli Descriptor Plugin

Shaarli plugin to customize the default height/number of rows of the Description field when editing a link.

Tested on Shaarli 0.11.1 with the Shaarli-Material theme in desktop and Android Chrome browsers, but it should work with all built-in themes as well. Should be compatible with Shaarli 0.12.0-beta as well which introduced a major internal rewrite (#1511).

Features

  • Set up the number of rows that define the hight of the Description textarea
  • Plugin Administration page integration for easy configuration

Screenshots

Plugin Administration page

After plugin enabled with default DESCRIPTION_ROWS settings:

Shaarli Descriptor admin settings

Edit Link page

After plugin enabled and DESCRIPTION_ROWS set to 10:

Shaarli Descriptor edit link page

Installation

The plugin's folder (shaarli_descriptor) should be placed in the <shaarli>/plugins/ directory.

The directory structure should look like:

└── plugins
    └── shaarli_descriptor
        ├── shaarli_descriptor.html
        ├── shaarli_descriptor.meta
        └── shaarli_descriptor.php

To enable the plugin, just check it in the Plugin Administration page (?do=pluginadmin).

You can also add shaarli_descriptor to your list of enabled plugins in data/config.json.php.
The general.enabled_plugins list should look like then:

"general": {
  "enabled_plugins": [
    "shaarli_descriptor",
    [...]
  ],
}

Configuration

Go to the Plugin Administration page, and edit the following settings (with the plugin enabled).

  • DESCRIPTION_ROWS:
    Hight of the Description textarea. Default: 4
    Example value: 8
    Supported values: integer numbers greater than or equal to 1. If not specified or malformed, defaults to 4.

Note: this setting can also be set in data/config.json.php, in the plugins section:

"general": {
    "plugins": {
        "DESCRIPTION_ROWS": "10",
        [...]
    },
}

Known issues

None

Recommendation

Shaarli Descriptor works best with my Shaarli Markdown Toolbar plugin, check it out, too! 😉

Contact

Immánuel Fodor
fodor.it | Linkedin

shaarli-descriptor's People

Contributors

immanuelfodor avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.