Code Monkey home page Code Monkey logo

radiant-page_fields-extension's Introduction

Page Fields

Adds editable fields to your pages. These fields can be found in the "More" drawer, along with the slug and breadcrumb. You can add, edit, and delete fields much like page parts.

Usage

Currently, PageFields only works on edge (Radiant > 0.9.1) due to some changes made to the core javascripts.

When you install PageFields run these in your shell

rake radiant:extensions:page_fields:migrate
rake radiant:extensions:page_fields:update

All page keyword and description attributes will be converted to page fields. If you would like your pages to be born with a different set of default fields, you may change Radiant::Config['defaults.page.fields']:

Radiant::Config['defaults.page.fields'] = 'keywords, description, author'

To output data to your pages use: <r:field name="field_name" />

Meta tags

For backwards compatibility, r:meta, r:meta:description, and r:meta:keywords are retained. However, the preferred syntax is now:

<r:meta name="keywords" />
<r:meta name="description />"

The old tag syntax without a name attribute may be deprecated at some point.

Todo

Merge in multitype support (datetime, boolean, integer fields) and conditional tags. Document the hooks you'd want to use if you were to create your own extended field type.

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.