radiant-find_by_id_tag-extension 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -13,4 +13,6 @@ Important benefit is that this is also much faster than finding a page by path;
|
|
13
13
|
|
14
14
|
In order to be 'newbie friendly', this extension also allows you to display the page IDs on admin/pages#index and/or admin/pages#edit. In order to do so, set Radiant::Config['expose_page_ids'] to any of 'overview', 'detail' or 'both'. Any other value will hide the ID partials.
|
15
15
|
|
16
|
+
There is also a new tag r:id which allows you to render a page's id on the front-end.
|
17
|
+
|
16
18
|
Created by Benny Degezelle for nzffa.org.nz
|
data/find_by_id_tag_extension.rb
CHANGED
@@ -6,7 +6,7 @@ class FindByIdTagExtension < Radiant::Extension
|
|
6
6
|
url RadiantFindByIdTagExtension::URL
|
7
7
|
|
8
8
|
def activate
|
9
|
-
Page.send :include, FindById::
|
9
|
+
Page.send :include, FindById::TagExtensions
|
10
10
|
|
11
11
|
admin.pages.index.add :sitemap_head, "id_column_th", :before => "title_column_header"
|
12
12
|
admin.pages.index.add :node, "id_column_td", :before => "title_column"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module FindById::
|
1
|
+
module FindById::TagExtensions
|
2
2
|
include Radiant::Taggable
|
3
3
|
|
4
4
|
desc %{
|
@@ -46,5 +46,9 @@ module FindById::TagExtension
|
|
46
46
|
tag.expand
|
47
47
|
end
|
48
48
|
|
49
|
+
desc "Renders the id of the current page"
|
50
|
+
tag "id" do |tag|
|
51
|
+
tag.locals.page.id
|
52
|
+
end
|
49
53
|
|
50
54
|
end
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-find_by_id_tag-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-06-13 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Adds support for an 'id' attribute to r:find
|
15
15
|
email:
|
@@ -23,11 +23,12 @@ files:
|
|
23
23
|
- app/views/admin/pages/_id_field.html.haml
|
24
24
|
- cucumber.yml
|
25
25
|
- find_by_id_tag_extension.rb
|
26
|
-
- lib/find_by_id/
|
26
|
+
- lib/find_by_id/tag_extensions.rb
|
27
27
|
- lib/radiant-find_by_id_tag-extension.rb
|
28
28
|
- lib/tasks/find_by_id_tag_extension_tasks.rake
|
29
29
|
- radiant-find_by_id_tag-extension-1.0.0.gem
|
30
30
|
- radiant-find_by_id_tag-extension-1.1.0.gem
|
31
|
+
- radiant-find_by_id_tag-extension-1.2.0.gem
|
31
32
|
- radiant-find_by_id_tag-extension.gemspec
|
32
33
|
- Rakefile
|
33
34
|
- README.md
|
@@ -56,3 +57,4 @@ signing_key:
|
|
56
57
|
specification_version: 3
|
57
58
|
summary: Find By Id Tag for Radiant CMS
|
58
59
|
test_files: []
|
60
|
+
has_rdoc:
|