Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: Support for Expression Engine native live preview
Status | Resolved |
Add-on / Version | Publisher Lite 2.8.2 |
Severity | |
EE Version | 4.3.1 |
David Clough
Jun 20, 2018As of version 4.1 of Expression Engine there is the Live Preview feature. Unfortunately this does not play nice with Publisher Lite due to the channel_entries_query_result hook overwriting any live preview data.
Here is a proposed workaround
diff --git a/system/user/addons/publisher/ext.publisher.php b/system/user/addons/publisher/ext.publisher.php
index 28905d01..ef8bf5eb 100644
--- a/system/user/addons/publisher/ext.publisher.php
+++ b/system/user/addons/publisher/ext.publisher.php
@@ -604,6 +604,10 @@ class Publisher_ext
$results = ee()->extensions->last_call;
}
+ if(\Basee\App::isFeatureAvailable('livePreview') && ee('LivePreview')->hasEntryData()){
+ return $results;
+ }
+
$disablePublisher = ee()->TMPL->fetch_param('disable_publisher');
$persistentEntries = $this->entryResult->isPersistenceEnabled();
BoldMinded (Brian)
I thought I tested this and everything appeared to be working fine, but now that I see your code change I feel kind of dumb for not recognizing the issue. I’ll test this a bit locally. Thanks for the diff.
BoldMinded (Brian)
Yep, confirmed. I’ll get this into the next release. Not sure how I missed this originally, thanks!