An open API service indexing awesome lists of open source software.

https://github.com/james2doyle/pyro-blurb-field

Create small components with Title, Image and Body sections.
https://github.com/james2doyle/pyro-blurb-field

Last synced: 11 months ago
JSON representation

Create small components with Title, Image and Body sections.

Awesome Lists containing this project

README

          

pyro-blurb-field
===============

Create small sections with title, image, and body content.

![blurb field creation](https://raw.githubusercontent.com/james2doyle/pyro-blurb-field/master/create.png)

![blurb field on page form](https://raw.githubusercontent.com/james2doyle/pyro-blurb-field/master/field.png)

Features
--------

* Pre-set the number of blurbs/items you want
* Choose the folder for the image dropdown
* Add a title, image and body for each item
* Looping tags to output data
* Includes 0 => None option to allow no image to be set
* Parse the body with Markdown

Usage
-----

``` html
{{ my_field_slug }}

{{ title }}

{{ if image !== 0 }}

{{ endif }}

{{ body }}

READ MORE

{{ /my_field_slug }}
```

If there was 3 items, this would output:

``` html

Item1

Body Content for 1


READ MORE

Item2

Body Content for 2


READ MORE

Item3

Body Content for 3


READ MORE

```

To Do
-----

* Add sorting/ordering

License
-------

(The MIT License)

Copyright (c) 2014 James Doyle

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.