Giter Site home page Giter Site logo

news_gallery's Introduction

News gallery: Extend news with file collections

About

This extension provides an easy way to file collections to a news record. There are various types of file collections like:

  • Static selection of files
  • Folder from storage
  • Select by category

Requirements

  • TYPO3 8.7 - 9.5
  • Extension "news" 6.0.0-7.9.99

Screenshots

Screenshot of the backend

How to use

Using this extension is simple! Follow this steps:

Creating the records

  1. Install the extension. You can get it either from the TER or from Github
  2. Create a new record "File collection" and define some images.
  3. Create a news record or open an existing one, switch to the tab "Relations" and add the previously created record in the new relation.

Adopt the template

To be able to show the images you need to alter the templates.

1st of all add the namespace declaration at the top of the template:

{namespace ngallery=GeorgRinger\NewsGallery\ViewHelpers}

This is just an example snippet which outputs all images of the file collection in a basic list:

<ngallery:render collections="{newsItem.txGalleryCollections}" storage="{newsItem.txGalleryStorage}" folder="{newsItem.txGalleryFolder}"  as="gallery">
        <f:debug>{gallery}</f:debug>
</ngallery:render>

Note

You can use the gallery in any action of the news extension. No matter if List.html, Detail.html or anything else.

news_gallery's People

Contributors

siwa-tkapplmueller avatar georgringer avatar

Watchers

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.