Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Corrected the CMS fields displayed for a Virtual Page. #1021

Closed
wants to merge 1 commit into from

1 participant

@NGlasl

Currently the Virtual Page will only display fields defined in Page, however this causes issues when you have a Virtual Page pointing to a subclass containing additional fields (that the user may wish to view).

@NGlasl

Just thought I'd follow this one up to see if any progress had been made? ^.^

@NGlasl NGlasl closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 29, 2014
  1. @NGlasl
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  code/model/VirtualPage.php
View
2  code/model/VirtualPage.php
@@ -165,7 +165,7 @@ public function isPublishable() {
* Generate the CMS fields from the fields from the original page.
*/
public function getCMSFields() {
- $fields = parent::getCMSFields();
+ $fields = $this->CopyContentFrom()->getCMSFields();
// Setup the linking to the original page.
$copyContentFromField = new TreeDropdownField(
Something went wrong with that request. Please try again.