radiant-copy_move-extension 2.4.9 → 2.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/HELP.rdoc +7 -4
- data/VERSION +1 -1
- data/lib/copy_move/model.rb +3 -0
- data/radiant-copy_move-extension.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 971724589a778357cb4088817119b57ca301a6bbbb171d990fca9b4856adcbd0
|
4
|
+
data.tar.gz: 5f0bd7f3a81cf5c001cbb0eb4d533f72638eebb3ed8364145e5097f6ac6d600e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 392e7f4b6eb7e7385c08fe85e6c9e3dd9f123616e265af37f237ff5d9597ed3ca8cd0e9eae704c1626b015f7e9bdfd6273decaa1dd6498410bf3cbbcefe1d3c0
|
7
|
+
data.tar.gz: 98134c005937a3c0e052fa8ac4cedffe27247881b15cf6313f3856e188169f218e11734610ee97f2d52ce820423b67ae415da7d715710b04975d696a67cc7fc6
|
data/HELP.rdoc
CHANGED
@@ -48,15 +48,18 @@ This allows you to set the status of the new page and all its children.
|
|
48
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
49
|
There are 2 options:
|
50
50
|
|
51
|
-
1
|
52
|
-
2
|
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"]
|
53
54
|
|
54
55
|
=== Copy page attachments
|
55
56
|
|
56
57
|
When using the {clipped extension}[https://github.com/radiant/radiant-clipped-extension], you may want page attachments to be copied along.
|
57
|
-
To achieve this, set
|
58
|
+
To achieve this, set:
|
59
|
+
Radiant::Config["copy_move.copy_page_attachments"]
|
58
60
|
|
59
61
|
=== Copy related pages
|
60
62
|
|
61
63
|
When using the {relations extension}[https://github.com/jomz/radiant-relations-extension], you may want related pages to be copied alond.
|
62
|
-
To achieve this, set
|
64
|
+
To achieve this, set:
|
65
|
+
Radiant::Config["copy_move.copy_page_relations"]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.4.
|
1
|
+
2.4.11
|
data/lib/copy_move/model.rb
CHANGED
@@ -26,6 +26,9 @@ 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
|
31
34
|
if self.respond_to?(:page_attachments) && Radiant::Config["copy_move.copy_page_attachments"]
|
@@ -5,7 +5,7 @@
|
|
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.11"
|
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"]
|