@@ 118-122 (lines=5) @@ | ||
115 | } |
|
116 | ||
117 | // Don't show which page this is if we're already editing within a page context |
|
118 | if (Controller::curr() instanceof CMSPageEditController) { |
|
119 | $fields->removeByName('PageID'); |
|
120 | } else { |
|
121 | $fields->fieldByName('Root.Main.PageID')->setTitle(_t('DMSDocumentSet.SHOWONPAGE', 'Show on page')); |
|
122 | } |
|
123 | ||
124 | // Don't show which page this is if we're already editing within a page context |
|
125 | if (Controller::curr() instanceof CMSPageEditController) { |
|
@@ 125-129 (lines=5) @@ | ||
122 | } |
|
123 | ||
124 | // Don't show which page this is if we're already editing within a page context |
|
125 | if (Controller::curr() instanceof CMSPageEditController) { |
|
126 | $fields->removeByName('PageID'); |
|
127 | } else { |
|
128 | $fields->fieldByName('Root.Main.PageID')->setTitle(_t('DMSDocumentSet.SHOWONPAGE', 'Show on page')); |
|
129 | } |
|
130 | ||
131 | $gridFieldConfig->getComponentByType('GridFieldDataColumns') |
|
132 | ->setDisplayFields($self->getDocumentDisplayFields()) |