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: Some field types not showing correctly in published or draft preview

Status Resolved
Add-on / Version Publisher Lite 0.98.8
Severity Critical
EE Version 30
Images

Re-Open Ticket

Peter McDonagh

Jun 21, 2013

hi Brian,
I’m integrating Publisher Lite into a new site, and have come across an issue similar to the one described in this thread:

http://boldminded.com/support/ticket/477

In the CP, I can switch between my published and draft versions, - all looks correct in the edit entry screen, however for certain field types, namely wygwam field type, I am not seeing the draft content in the preview or the front-end with ?publisher_status=draft
Matrix and playa seem to work fine though.

To recreate:
Add draft text to a wygwam field which already contains content
save as draft
Once saved, i can not see the draft text for this field on the front end or preview

In the same entry, I added draft text to another wygwam field (which was initially blank in the published version of the entry) - the draft text then shows on both the draft and published version of the entry on the front-end.

To recreate:
add text to a blank wygwam field where the entry has already been published
save as draft
See that the draft text is shown on the published version and draft version in the front-end


I have made an update to the acc.publisher.php file to account for the ee2.6 updates, however this has not made a difference, The result is the same.

Any ideas?
thanks for assistance

#1

BoldMinded (Brian)

Did you apply the core EE patch mentioned near the bottom of this thread? https://support.ellislab.com/bugs/detail/19456

#2

Peter McDonagh

I tried this again today: updated both custom_field.php and custom_field_pair.php with the patch linked towards the bottom of that thread. That didn’t work - I didn’t see any difference. I then upgraded to v261, and updated the 2 files again It still doesn’t work for me

Incidentally, I had also updated acc.publisher.php, as done here: https://gist.github.com/litzinger/2dff8cbad4407648c65f

Any other ideas? tks pete


#3

BoldMinded (Brian)

I’ll use the logins you provided and take a look tonight or tomorrow.

#4

Peter McDonagh

Thanks Brian,

you can clearly see the issue on entry #159 - go to edit > people, and test content in published and draft view. Note that playa and matrix content seems to work fine.

#5

BoldMinded (Brian)

Peter, I think its fixed. I made a few changes to the publisher_entry.php model file.

On a side note, I did notice repeated usage of the same entries tag (which is something I didn’t account for very well and was the issue at hand). Anyway, EE handles it fairly well in that it uses tokens as place holders if the contents of the entries tag are the same, but in your case they are different, thus its running excessive queries on the page. I would suggest refactoring the template a bit and using Stash to grab 1 entries tag but split its output into multiple parts to be used later in the template, thus removing the extra entries tags.

#6

Peter McDonagh

Brian, I’ve just tested through everything, works great. As usual, legendary support, thanks again. I’ll take your advice and see where I can trim use of entries tag.

Login to reply