Git Product home page Git Product logo

devel_generate_text_settings's Introduction

Devel Generate Text Settings

This module allows you to control the length and format of generated content for text and long text fields. This only applies to generation of node content for now.

Installation

  • Install as normal
  • After enabling you will find additional settings at the bottom of the "Devel Generate > Generate content" form.

Instructions

Two new fields will be added to the bottom of the "Devel Generate > Generate content" form:

Prefix for title values

If set, this value will be prepended to the auto-generated node title.

Text field settings

Controls the length and format of generated content for text and long text fields.

  • Configure one field per line
  • If the min and max are the same, that exact value will be used
  • Set the fifth parameter to "true" to use title formatting (capital words, no punctuation) - only works with char and word counts
  • Format: field_machine_name, count_type, min, max, treat_as_title

Examples: (for Text field settings)

Between 100 and 250 characters, with sentences:

field_blog_preview, char, 100, 250

Between 3 and 7 words, no sentences, all words start with capital letter:

field_program_name, word, 3, 7, true

One paragraph, with sentences:

body, para, 1, 1

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

Maintainers

This module is seeking maintainers.

Originally written for Drupal by

Ported to Backdrop CMS by

devel_generate_text_settings's People

Contributors

docwilmot avatar agileadam avatar

Watchers

Jason Flatt avatar Jen Lampton avatar James Cloos avatar Greg Netsas avatar  avatar

devel_generate_text_settings's Issues

Configuration is not owned by any module error on sync

Config sync, whether by bee config-import or on admin/config/development/configuration/sync is failing for this module:

Steps To Reproduce

To reproduce the behavior:

  1. Install and enable devel_generate_text_settings on two sites
  2. Change settings on one site (e.g. title prefix) and generate one node to save the setting
  3. Copy config to other site
  4. Run the import, either by bee config-import or on admin/config/development/configuration/sync

Actual behavior

Configuration sync failed. The following errors were reported:
The configuration "devel_generate_text_settings.settings" is not owned by any module. Try enabling the module that provides this configuration, then importing again.

Expected behavior

Config imports to second site

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.