ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to "publish" an article so that only I can see it?

June 07, 2010 5:18am

Subscribe [2]
  • #1 / Jun 07, 2010 5:18am

    unomyname

    28 posts

    Hi,
    because I am using some additional plugins that only work on published content, preview mode does not really help me see how that page is going to look like when published.

    Is there a way to “publish” an article, so that no one else can see it (no pings, not visible on the index page)?

    Thanks!

  • #2 / Jun 07, 2010 5:29am

    Milan Topalov

    128 posts

    Normally I create a “preview” (Live Look) template (should be the same as a “public” template, apart from being protected & should display entries with status “closed” as well as “open”.

    You can assign it to a weblog here:
    CP Home ›  Admin ›  Weblog Administration ›  Weblog Management ›  Edit Weblog Preferences

    The result is a “Live Look” link on Edit Weblog page in Control Panel, which takes you to a preview.

  • #3 / Jun 07, 2010 5:39am

    unomyname

    28 posts

    Could you please be a little more specific in how you do it. I’m a complete n00b with EE.
    I did create a copy of my Articles template.
    What do I do then?
    How do I make it displayed entries with status closed?
    What exactly do I have to do in Edit Weblog Prefs?
    Thank you so much for helping

  • #4 / Jun 07, 2010 5:53am

    Milan Topalov

    128 posts

    Yep, duplicate your article template (e.g. if “artices/index” is article template, duplicate it to say “articles/preview”).

    Your preview template should contain a weblog entries tag.

    Modify the tag to display “open” and “closed” entries (cos your unpublished articles will have status “closed”, hopefully):

    {exp:weblog:entries ... status="open|closed" }
    content
    {/exp:weblog:entries}

    Now modify the weblog settings and assign the preview template as a “Live Look” template (see my previous post).

    While you’re there, set the default status to “closed” (it’s under “Administrative Preferences”).

    And that’s it!

    Now, create an entry & save it.

    Entry will have status “closed” (so won’t appear on the website), but you’ll get “Live Look” preview link (next to it in entries list under edit tab).

    Preview the entry and once you’re happy with it, change the status to “open” so that it shows up on your website.

  • #5 / Jun 07, 2010 6:37am

    unomyname

    28 posts

    i’m not exactly sure what you mean by “assigning the preview template as a Live Look template”.

    I did get to the page you referred to (Edit Weblog Prefs) but I don’t think I understand what I should be changing there….

    What exactly is Live Look anyway?

  • #6 / Jun 07, 2010 6:46am

    Milan Topalov

    128 posts

    To set a “Live Look” template for a Weblog go:

    Weblogs Prefs > Path Settings > Live Look Template

    Setting “preview” template as “Live Look” is a way of telling EE to use “preview” template for… well “live preview” 😊

  • #7 / Jun 07, 2010 7:05am

    unomyname

    28 posts

    thanks
    looks like i’m almost there 😊

    i got the live look working

    only, when i try to preview a closed post, all i get is the template itself, without the content…

    when i try to preview an open post, everything works fine…

  • #8 / Jun 07, 2010 7:55am

    Milan Topalov

    128 posts

    Glad to hear it.

    To solve the status problem see my post #3

  • #9 / Jun 07, 2010 12:38pm

    unomyname

    28 posts

    if you are referring to adding status=open|closed, then i already have it…

  • #10 / Jun 07, 2010 12:57pm

    unomyname

    28 posts

    i take it back. i figured it out.
    i had smart quotes around open|close, which messed everything up.

    THANK YOU SO MUCH for your help!

    I’m a happy man now

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases