Giter Site home page Giter Site logo

pyrosnippets's Introduction

PyroSnippets 2.3

PyroSnippets allows users to create and manage small snippets of reusable content for their site. Useful for giving clients access to small chunks of content that are not page content and can be edited like text, images, WYSIWYG, and HTML code.

Using Snippets

After you install Snippets, it'll show up in the Content menu of PyroCMS. There are two areas, "Content" and "Setup". Setup is where you create the snippets and define any parameters. Content is where the snippet content is actually edited.

Once you set a snippet, you can see the syntax to display it in your layouts and themes. It always follows this syntax:

{{ snippet:your_snippet_slug }}

Snippet Types

Text, HTML, and WYSIWYG

Simple text-based snippets that allow you to save text content. In the WYSIWYG snippet, you can choose to use the advanced or simple editor.

Image

Allows you to upload an image. The tag for the image snippet returns the ID of the file, so you can use it like this:

{{ files:image id=snippet:your_image_slug width="100" height="100" mode="fill" }}

You can find more info on displaying images in PyroCMS here.

Changelog

2.3 - February 8, 2013

Use with: PyroCMS 2.1.x

  • Added support for three status levels for snippets: public, logged in users only, and hidden
  • Added support for cloud files in the image snippet
  • Changed output of image snippet to the file ID. Please see image snippet section above for more details
  • Added option to choose Simple or Advanced WYSIWYG editor
  • Updates for compatability with PyroCMS 2.1.5

2.2.2 – February 8, 2012

  • Updated to PyroCMS slug generator (Thanks @Bojch)!
  • Refined UX for snippet setup (Thanks @Bojch)!
  • Updated the folder structure for easier uploading via control panel
  • Updated Slovenian language (Thanks @kubis)!

2.2.1 – December 18, 2011

  • Updating forms and other elements to PyroCMS 2.0 standards

2.2 – November 4, 2011

  • Changed to snippets as discrete files system with parameter options
  • Separated Snippets into setup and content modes
  • Updated syntax example for Lex Parser
  • Removed support for chunks syntax

2.1 – October 19, 2011

  • Upgrading to PyroCMS 2.0 interface styles
  • New image snippet type
  • Save & Close option for editing snippets
  • Slovenian Translation

2.0 – September 16, 2011

  • Change to PyroSnippets name
  • New permissions addition allows you to restrict member groups to just editing snippet content
  • Updated interface styles for PyroCMS 1.3

1.1 – July 26, 2011

  • Updates to work with PyroCMS 1.3
  • Autocomplete for chunk slugs
  • Shows Chunk type in list

Authors

pyrosnippets's People

Contributors

adamfairholm avatar bojangles-m avatar chadwithuhc avatar imamo avatar kubis avatar nfourtythree avatar stephencozart avatar wturrell 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.