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: drafts appearing on front-end

Status Resolved
Add-on / Version Publisher
Severity Trivial
EE Version 24

petercommuni

Apr 04, 2013

Hi Brian,

I’m having an issue with the draft and published versions of my content.
I’ve set up both editor and publisher user-types, logged in as editor, edited a basic page, saved as draft.
When i go to the front end,I can see the draft appear.
How can I avoid this? Am I missing a configuration setting?


My stripped down channel entry code is as follows:

{exp:channel:entries channel="about-us" limit="1" status="open"}
    <h1>{title}</h1>
<p>    </p><h2>{static-introduction}</h2>
<p>   {page_content}<br />
 {/exp:channel:entries}

Have you seen this before?

thanks!
Pete

#1

BoldMinded (Brian)

Not sure I follow. You see unparsed code? Can you share the URL or screenshots so I can see more. Its hard to debug with such little information.

#2

petercommuni 1

Hi Brian,

I’ve provided additional details below. The basic issue I am experiencing is that when I save an entry as a draft, and then check the same page on the website front-end, I am seeing the draft version instead of the previous published version. I would expect the draft version to remain hidden until it is published by the publisher.


Other than the draft content appearing when it shouldn’t, the page itself looks fine, no unparsed code - its just a basic “About Us” page I had started with.

I’ve pasted the channel entries code I’m using below:

{exp:channel:entries channel="about-us" limit="1" status="open"}
    <h1>{title}</h1>
    <h2>{static-introduction}</h2>
   {page_content}
 {/exp:channel:entries}

The plugins in use on this page are as follows: P&T Wygwam SEO Lite


The URL I’m editing is http://localhost/driveriteair/en/about-us

And I’ve set the Preview templates as follows - CHANNEL: About Us PREVIEW TEMPLATE: about-us/about-preview + url_title (I’ve tried the other options here, and they all have the same effect)


Am I missing something? I’ve read through the documentation which is great btw, but cannot see anything obvious.

The initial installation went ok, - the only database error I saw was when i first submitted the preview templates, without having selected a template for every channel.

I’m running EE2.5.5 Publisher 0.98.5 PHP 5.3.9 Apache 2.2.21 MySQL client version: mysqlnd 5.0.8-dev

If you still need screenshots, I can email them to you separately. Thanks for the help. pete

#3

BoldMinded (Brian)

I’ll try to look into it this weekend. Sorry for the delay, but in hell right now trying to get a site launched early next week.

#4

BoldMinded (Brian)

You said you’re using the preview templates, so by front-end do you mean you’re seeing the front-end of the site in the preview after saving? Thus you’d see something similar to this: https://www.evernote.com/shard/s9/sh/908d5c61-d8f9-409f-b8d0-3f8f0cdee8d2/af1e348a594dd2d9a62abee9027612e4

If that is the case then that is the intended behavior. In my tests the draft does not show on the FE. It only shows when I add ?status=draft or save the entry as a draft and see the preview (first screenshot). Otherwise its showing the open version as expected: https://www.evernote.com/shard/s9/sh/cdfe12c4-c8e5-4557-b890-6e259532d7e6/ddc3af9dfc403ee0583d20bbf310be7a

You may need to provide CP and/or FTP access for me to debug this further as I can’t replicate this in my sandbox.

#5

petercommuni 1

Brian, thanks for all your help with this. Really appreciate the prompt responses. I’m marking this as resolved now based on our email contact.

Login to reply