radiant-copy_move-extension 2.4.8 → 2.4.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/HELP.rdoc +25 -3
- data/README.textile +3 -10
- data/lib/copy_move/model.rb +11 -0
- data/radiant-copy_move-extension.gemspec +2 -4
- metadata +9 -15
- data/VERSION +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 717faaba334ad9b9b720d03b961c108dfaf78685a9a72b3e4b2d51e2ca10c56a
|
4
|
+
data.tar.gz: 5e41844830988102722955ba97e8681efcfdc623eac4aeab667014bee5f5a88b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 420126e902cd04ac56b39b3e0d2ccd4f93d666478412bf0647f1e3910d055527013c0f16b59ddfdcfeb594370c26abc7e0b602a16d54081c03d2aa79d42298d6
|
7
|
+
data.tar.gz: 6f6d328e0c98b1dcafa2fc17c16756ef524c5bcd17999245e7439c88bee60fa071d9ca4fa03607b1996f495addfdd4432333c4a2df423e76b9f0d73813ec3395
|
data/HELP.rdoc
CHANGED
@@ -21,13 +21,13 @@ This will copy only the selected page, no children will be copied.
|
|
21
21
|
|
22
22
|
==== Copy 'X' and its first-level children.
|
23
23
|
|
24
|
-
This will copy the selected page and all pages one level below it in the tree.
|
24
|
+
This will copy the selected page and all pages one level below it in the tree.
|
25
25
|
|
26
26
|
==== Copy 'X' and all of its children.
|
27
27
|
|
28
|
-
This will copy the selected page and all pages below it in the tree.
|
28
|
+
This will copy the selected page and all pages below it in the tree.
|
29
29
|
|
30
|
-
==== Only move page.
|
30
|
+
==== Only move page.
|
31
31
|
|
32
32
|
Only move the page, do not create a copy, note that all pages below it in the tree wil be moved as well.
|
33
33
|
|
@@ -41,3 +41,25 @@ This allows you to set the status of the new page and all its children.
|
|
41
41
|
* If you choose the "Use the same status" option then all the pages will retain their existing statuses
|
42
42
|
* If you set to a status other than "Use the same status" then ALL the pages in the copied/moved tree will have their status changed.
|
43
43
|
|
44
|
+
== Configuration
|
45
|
+
|
46
|
+
=== Exclude pages from the new parent ('copy or move under') dropdown
|
47
|
+
|
48
|
+
For larger sites, you may want to exclude certain pages from coming up in the "new parent" select for performance and/or usability reasons.
|
49
|
+
There are 2 options:
|
50
|
+
|
51
|
+
1. Create a page field called "exclude_children_from_copy_move_target" to not display it's children in the list.
|
52
|
+
2. To not display children from ArchivePages, set:
|
53
|
+
Radiant::Config["copy_move.exclude_archive_children"]
|
54
|
+
|
55
|
+
=== Copy page attachments
|
56
|
+
|
57
|
+
When using the {clipped extension}[https://github.com/radiant/radiant-clipped-extension], you may want page attachments to be copied along.
|
58
|
+
To achieve this, set:
|
59
|
+
Radiant::Config["copy_move.copy_page_attachments"]
|
60
|
+
|
61
|
+
=== Copy related pages
|
62
|
+
|
63
|
+
When using the {relations extension}[https://github.com/jomz/radiant-relations-extension], you may want related pages to be copied alond.
|
64
|
+
To achieve this, set:
|
65
|
+
Radiant::Config["copy_move.copy_page_relations"]
|
data/README.textile
CHANGED
@@ -55,21 +55,14 @@ h2. Usage
|
|
55
55
|
|
56
56
|
See the HELP.rdoc
|
57
57
|
|
58
|
-
For larger sites, you may want to exclude certain pages from coming up in the "new parent" select for performance and/or usability reasons.
|
59
|
-
There are 2 options:
|
60
|
-
|
61
|
-
1/ Create a page field called "exclude_children_from_copy_move_target" to not display it's children in the list.
|
62
|
-
2/ Set Radiant::Config["copy_move.exclude_archive_children"] to true to not display children from ArchivePages
|
63
|
-
|
64
|
-
|
65
58
|
h2. Contributors
|
66
59
|
|
67
60
|
* Benny Degezelle
|
68
|
-
* Mario T. Lanza
|
61
|
+
* Mario T. Lanza
|
69
62
|
* Daniel Collis-Puro
|
70
63
|
* Sean Cribbs
|
71
64
|
* Andrew vonderLuft
|
72
|
-
|
65
|
+
|
73
66
|
h2. Credits
|
74
67
|
|
75
|
-
This extension contains icons from the FamFamFam Silk icon set. See http://famfamfam.com/
|
68
|
+
This extension contains icons from the FamFamFam Silk icon set. See http://famfamfam.com/
|
data/lib/copy_move/model.rb
CHANGED
@@ -26,8 +26,19 @@ module CopyMove
|
|
26
26
|
self.parts.each do |part|
|
27
27
|
new_page.parts << part.clone
|
28
28
|
end
|
29
|
+
self.fields.each do |field|
|
30
|
+
new_page.fields << field.clone
|
31
|
+
end
|
29
32
|
new_page.send :add_to_list_bottom if defined?(Reorder)
|
30
33
|
new_page.status_id = status.blank? ? new_page.status_id : status
|
34
|
+
if self.respond_to?(:page_attachments) && Radiant::Config["copy_move.copy_page_attachments"]
|
35
|
+
self.page_attachments.each do |att|
|
36
|
+
new_page.page_attachments.build(:asset_id => att.asset_id, :position => att.position)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
if self.respond_to?(:related_page_ids) && Radiant::Config["copy_move.copy_page_relations"]
|
40
|
+
new_page.related_page_ids = self.related_page_ids
|
41
|
+
end
|
31
42
|
new_page.save!
|
32
43
|
end
|
33
44
|
end
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "radiant-copy_move-extension"
|
8
|
-
s.version = "2.4.
|
8
|
+
s.version = "2.4.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Benny Degezelle", "Andrew vonderLuft"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2021-09-08"
|
13
13
|
s.description = "With this extension you can copy or move a page with or without its children."
|
14
14
|
s.email = "benny@gorilla-webdesign.be"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -23,7 +23,6 @@ Gem::Specification.new do |s|
|
|
23
23
|
"README.textile",
|
24
24
|
"Rakefile",
|
25
25
|
"TODO",
|
26
|
-
"VERSION",
|
27
26
|
"app/helpers/copy_move_helper.rb",
|
28
27
|
"app/views/admin/pages/_copy_move_extra_td.html.haml",
|
29
28
|
"app/views/admin/pages/_copy_move_extra_th.html.haml",
|
@@ -70,4 +69,3 @@ Gem::Specification.new do |s|
|
|
70
69
|
s.add_dependency(%q<radiant>, [">= 1.0.0.rc2"])
|
71
70
|
end
|
72
71
|
end
|
73
|
-
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-copy_move-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
5
|
-
prerelease:
|
4
|
+
version: 2.4.10
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Benny Degezelle
|
@@ -10,22 +9,20 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2021-09-08 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: radiant
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - ">="
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: 1.0.0.rc2
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
|
-
- -
|
25
|
+
- - ">="
|
29
26
|
- !ruby/object:Gem::Version
|
30
27
|
version: 1.0.0.rc2
|
31
28
|
description: With this extension you can copy or move a page with or without its children.
|
@@ -42,7 +39,6 @@ files:
|
|
42
39
|
- README.textile
|
43
40
|
- Rakefile
|
44
41
|
- TODO
|
45
|
-
- VERSION
|
46
42
|
- app/helpers/copy_move_helper.rb
|
47
43
|
- app/views/admin/pages/_copy_move_extra_td.html.haml
|
48
44
|
- app/views/admin/pages/_copy_move_extra_th.html.haml
|
@@ -53,8 +49,8 @@ files:
|
|
53
49
|
- app/views/admin/pages/move_page.html.haml
|
54
50
|
- config/locales/de.yml
|
55
51
|
- config/locales/en.yml
|
56
|
-
- config/locales/nl.yml
|
57
52
|
- config/locales/fr.yml
|
53
|
+
- config/locales/nl.yml
|
58
54
|
- config/routes.rb
|
59
55
|
- copy_move_extension.rb
|
60
56
|
- lib/copy_move.rb
|
@@ -73,25 +69,23 @@ files:
|
|
73
69
|
- spec/spec_helper.rb
|
74
70
|
homepage: https://github.com/jomz/radiant-copy-move
|
75
71
|
licenses: []
|
72
|
+
metadata: {}
|
76
73
|
post_install_message:
|
77
74
|
rdoc_options: []
|
78
75
|
require_paths:
|
79
76
|
- lib
|
80
77
|
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
78
|
requirements:
|
83
|
-
- -
|
79
|
+
- - ">="
|
84
80
|
- !ruby/object:Gem::Version
|
85
81
|
version: '0'
|
86
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
-
none: false
|
88
83
|
requirements:
|
89
|
-
- -
|
84
|
+
- - ">="
|
90
85
|
- !ruby/object:Gem::Version
|
91
86
|
version: '0'
|
92
87
|
requirements: []
|
93
|
-
|
94
|
-
rubygems_version: 1.8.25
|
88
|
+
rubygems_version: 3.1.6
|
95
89
|
signing_key:
|
96
90
|
specification_version: 3
|
97
91
|
summary: Copy/Move extension for Radiant CMS
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.4.5
|