Browse files

asset metadata extended properly

  • Loading branch information...
1 parent 2c7c3e6 commit 670391f47b24329976404ef522a6ce0c6bb1c04e @will-r will-r committed Oct 11, 2011
View
7 app/views/admin/assets/_edit_metadata.html.haml
@@ -1,7 +0,0 @@
-%tr
- %td.label
- Display
- %td.field{:style => 'text-align: left;'}
- - fields_for :asset, @asset do |fields|
- = fields.check_box :furniture
- = fields.label :furniture, t('taggable_extension.site_furniture')
View
14 app/views/admin/assets/_edit_title.html.haml
@@ -1,14 +0,0 @@
-- include_stylesheet 'admin/taggable'
-- include_javascript 'autocomplete'
-- include_javascript 'admin/taggable'
-
-- fields_for :asset, @asset do |fields|
- %p.keywords
- %label{:for=>"asset_keywords"}
- Tags
- = fields.text_field :keywords, :class => 'textbox tagger'
-
- %p.title
- %label{:for=>"asset_title"}
- Title
- = fields.text_field :title, :class => 'textbox', :maxlength => 100
View
6 app/views/admin/assets/_furniture.html.haml
@@ -0,0 +1,6 @@
+- fields_for :asset, @asset do |f|
+ %tr
+ %td.label
+ = f.label :furniture
+ %td.field{:style => 'text-align: left'}
+ = f.check_box :furniture
View
10 app/views/admin/assets/_tags.html.haml
@@ -0,0 +1,10 @@
+- include_stylesheet 'admin/taggable'
+- include_javascript 'autocomplete'
+- include_javascript 'admin/taggable'
+- fields_for :asset, @asset do |f|
+ %tr
+ %td.label
+ %label{:for=>"asset_title"}
+ = f.label :keywords
+ %td.field
+ = f.text_field :keywords, :class => 'textbox tagger'
View
7 config/locales/en.yml
@@ -1,4 +1,9 @@
en:
+ activerecord:
+ attributes:
+ asset:
+ keywords: "Tags"
+ furniture: "Furniture?"
tags: "Tags"
helpers:
label:
@@ -7,5 +12,3 @@ en:
page_id: "Pointer to page"
visible: "Visible?"
description: "Description (optional)"
- taggable_extension:
- site_furniture: "Site furniture? (not shown in lists and galleries)"
View
2 lib/radiant-taggable-extension.rb
@@ -1,5 +1,5 @@
module RadiantTaggableExtension
- VERSION = '2.0.3'
+ VERSION = '2.0.4'
SUMMARY = %q{Tagging, clouding and faceting extension for Radiant CMS}
DESCRIPTION = %q{General purpose tagging and retrieval extension: more versatile but less focused than the tags extension. A good way to support faceted search.}
URL = "http://spanner.org/radiant/taggable"
View
6 lib/taggable/admin_ui.rb
@@ -10,12 +10,6 @@ def self.included(base)
def load_taggable_regions
@tag = load_default_tag_regions
end
-
- # def load_default_regions_with_tags
- # load_default_regions_without_tags
- # load_taggable_regions
- # end
- # alias_method_chain :load_default_regions, :tags
protected
View
2 taggable_extension.rb
@@ -21,6 +21,8 @@ def activate
unless defined? admin.tag
Radiant::AdminUI.send :include, Taggable::AdminUI
Radiant::AdminUI.load_taggable_regions
+ admin.asset.edit.add :extended_metadata, 'furniture'
+ admin.asset.edit.add :extended_metadata, 'tags'
end
tab("Content") do

0 comments on commit 670391f

Please sign in to comment.