Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An extension that lets you add custom fields to a Radiant page.

branch: 0.8

This branch is 2 commits ahead and 23 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 db
Octocat-spinner-32 features
Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 spec
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 custom_fields_extension.rb
README.md

Radiant Custom Fields Extension

About

An extension by Aissac that allows you to add custom fields to Radiant CMS pages.

Test on Radiant 0.7.1 and 0.8.

Features

  • Provides the ability to add custom fields to a Page;
  • The Page model is not changed: custom_fields are added as a belongs_to association;
  • Admin interface for managing assigned custom fields;
  • Radius tags for accessing custom fields.

Installation

The Custom Fields Extension has no dependencies, so all you have to do is install it:

git submodule add git://github.com/Aissac/radiant-custom-fields-extension.git vendor/extensions/custom_fields

Then run the migration and the update:

rake radiant:extensions:custom_fields:migrate
rake radiant:extensions:custom_fields:update

Usage

Available Tags

  • See the "available tags" documentation built into the Radiant page admin for more details.
  • Use the <r:custom_field:value /> tag to render the value of a custom field.
  • Use the <r:custom_field:each /> tag to iterate over the assigned custom fields of a page.
  • Use the <r:custom_fields:if_matches /> and <r:custom_field:unless_matches> tags to filter the custom fields.

Contributors

  • Cristi Duma
  • Istan Hoka

TODO

  • default (fallback) atribute for missing fields;
  • AJAX-ify admin interface.
Something went wrong with that request. Please try again.