Git Product home page Git Product logo

autocontent's Introduction

AutoContent

ProcessWire module for automatic generation of content when a field is blank and also for generating test pages that can be "one-click" deleted.

Currently works for most default PW fieldtypes. Profields and selected third party fieldtypes coming shortly.

Currently supported field types

Others may work, but these are the ones that have currently been tested. Support for Profields and others is coming soon.

Core

3rd Party

  • MapMarker

CONFIG SETTINGS

Module settings

You can change the locale (country/language) which affects the content generated by the Faker library in text fields.

Field settings

Config settings for certain field types are available from the field's Input tab under the AutoContent Options section.

Textarea

There are multiple options for determing the content of the generated lorem ipsum text.

  • number of paragraphs to generate.
  • short, medium, long, verylong - The average length of a paragraph.
  • decorate - Add bold, italic and marked text.
  • link - Add links.
  • ul - Add unordered lists.
  • ol - Add numbered lists.
  • dl - Add description lists.
  • bq - Add blockquotes.
  • code - Add code samples.
  • headers - Add headers.
  • images & image positions/alignment

If the textarea inputfield type is not an RTE, then only the first two are available and output will be plain text.

Text

Generated content comes from the include Faker (https://github.com/fzaninotto/Faker) library. The name of the field will attempted to be matched to available Faker properties automatically. If there is no match, you can manually provide one under the Faker property config setting.

Images

Generated from http://lorempixel.com with options for the image category (People, Nature, Business, etc), min and max number of images to generate.

Datetime

Various options from the Faker library, including min and max date to be generated

####Support forum: https://processwire.com/talk/topic/11016-autocontent-generator/

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

(See included LICENSE file for full license text.)

autocontent's People

Contributors

adrianbj avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

autocontent's Issues

Auto Content

When un-installing, the module tries to delete the autocontent folder. When this folder doesn't exists, an error is thrown.

RecursiveDirectoryIterator::__construct(/Users/martijn/Sites/Domains/keukenspecialist.dev/htdocs/site/assets/autocontent/): failed to open dir: No such file or directory

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.