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: Viewing drafts of closed entries

Status Resolved
Add-on / Version Publisher Lite 1.0.3.2
Severity Trivial
EE Version

Nick Lane

Aug 09, 2013

We’re trying to allow users to view drafts in one of the following scenarios:

1. Prior to an entry being published for the first time
2. An entry not yet available because of an entry date in the future
3. An entry with a status of closed (page may have been taken down).

Is this possible out of the box, or could it be accomplished with tweaks to our templates? Any guidance would be appreciated. At the moment, both the draft preview in the CP and via the publisher_status=“draft” do not work, due to the 404 trigger.

These entries use the pages module to assign their template.

Thanks!

#1

BoldMinded (Brian)

Its been awhile since I’ve tested with the Pages module, so I can take a look at this maybe this weekend or early next week.

In the mean time open up the ext.publisher.php file and you’ll see a $debug var, set it to TRUE then load the front-end of your site. It’ll print out the site_pages array by language and status. See if the page you’re saving is present in the draft array. Copy and paste the results here and let me know which page you’re saving as a draft so I can compare to the array too.

#2

Nick Lane

Sure, on a clean local install, I just cleared all entries out and created a new one. I published, created a draft, then changed the status to closed. Below is the array that displays.

int(1) string(4) “open” array(1) { [1]=> array(3) { [“uris”]=> array(1) { [5]=> string(10) “/test-page” } [“templates”]=> array(1) { [5]=> string(1) “2” } [“url”]=> string(37) “http://publisher-test:8888/index.php/” } } int(1) string(5) “draft” array(1) { [1]=> array(3) { [“uris”]=> array(1) { [5]=> string(10) “/test-page” } [“templates”]=> array(1) { [5]=> string(1) “2” } [“url”]=> string(37) “http://publisher-test:8888/index.php/” } }

#3

BoldMinded (Brian)

Going to close this ticket b/c I think its closely related to the other Pages ticket you opened and should be fixed in the build I sent.

Login to reply