Skip to content

DeuxHuitHuit/random_entries_generator

Repository files navigation

Random Entries Generator

A really quick way to create dummy entries for Symphony CMS

TL;DR

  1. REQUIREMENTS
  2. INSTALLATION
  3. HOW TO USE
  4. SUPPORTED FIELDS
  5. DELEGATES
  6. Help, my field is blank!!!
  7. LICENSE

REQUIREMENTS

  • Symphony CMS version 2.6.x and up (as of the day of the last release of this extension)

INSTALLATION

  • git clone / download and unpack the tarball file
  • Put into the extension directory
  • Enable/install just like any other extension

You can also install it using the extension downloader. Just search for random_entries_generator.

For more information, see http://getsymphony.com/learn/tasks/view/install-an-extension/

HOW TO USE

  • Go on the publish index or edit page of a section.
  • Click on the "Create Random Entry" button.
  • Enjoy some beer.
  • Repeat.

SUPPORTED FIELDS

DELEGATES

This extension also provides developers with two delegates, EntriesPreCreateRandomData and EntriesPostCreateRandomData. Delegates are fire once per field and offers developer the ability to change field and/or generated data. Check the FieldAdapter::generateData() method for more information on those delegates.

Help, my field is blank!!!

In order to generate data for a particular field, this extension requires a field adapter that will populate the data in the database.

If a field stays blank, it's probably because the adapter for it does not exists. If the adapter does exists, it is also possible that it does not cover all cases.

You can look here to see if there is already an adapter for the field in question. If not, feel free to implement it (it's really easy!) and send a Pull Request.

LICENSE

MIT

Made with love in Montréal by Deux Huit Huit

Copyright (c) 2015