Giter VIP home page Giter VIP logo

pagelistimagelabel's Introduction

Page List Image Label

This module enables you to show thumbnails of images from the pages in the admin page tree.

After installing you can define some options if you like to specify a width/height of the thumbnails and also change the look with some css options, like border padding and background color.

How to use

The configuraton allows you to add a list of template along with the image field name you wish to output a thumbnail from.

It works for single, multiple and cropimage image field types. If multiple images field it will always take the first image from the stack.

Example:

basic-page,image

Would show a thumbnail for all pages that use basic-page template and have an image uploaded to the field image.

Or for croppable images you can define a crop setting (using dot notation):

basic-page,image.landscape

This will show the thumbnail you set in the croppable image with the name landscape.

pagelistimagelabel's People

Contributors

adrianbj avatar somatonic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

lisandi adrianbj

pagelistimagelabel's Issues

Label is blank when template has blank title value

Hey soma,
I know you don't have 2.5 compatibility checked, but I often make the title hidden and not required for PageTable fields. The problem is that when using this module, instead of falling back to the page name, it is completely blank.

It looks like there might have been a few changes to the getPageLabel function since you put this module together to handle the fallback to name.
https://github.com/ryancramerdesign/ProcessWire/blob/dev/wire/modules/Process/ProcessPageList/ProcessPageList.module#L403

although I didn't check the date that line was changed/added so not sure. Regardless I think it needs to be incorporated somehow.

Thanks!

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.