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.

"Live Look" feature does not display weblog entry

August 16, 2010 2:20pm

Subscribe [3]
  • #1 / Aug 16, 2010 2:20pm

    JHUGlobalWater

    8 posts

    Is it possible to use “Live Look” to preview closed weblog entries or open weblog entries that have not yet posted (i.e. status=open, date=some future date)?  If so, then I’d like to take advantage of this feature. Currently, we turn our site off temporarily to view new posts, which is obviously not ideal, and my attempt today to set up “Live Look” failed. 

    CP Home ›  Admin ›  Weblog Administration ›  Weblog Management ›  Edit Weblog Preferences > “Live Look” template is set to “magazine/article,” a template used on the front end of our site without trouble. 

    However, clicking on “Live Look” opens a new window that displays the site homepage.  This happens even for articles with status=open and date=some past date.  Here is the address that appears for viewing weblog entry #163 (status=open; date=earlier today):

    http://globalwater.jhu.edu/?URL=http://globalwater.jhu.edu/magazine/article/163/

    That URL displays the Homepage, although putting in http://globalwater.jhu.edu/magazine/article/163/ correctly displays this open, live article. 

    I think maybe the problem is our setup in Admin > System Preferences > General Configuration.  We encountered a problem viewing the site as SuperAdmin while offline that seems similar to this “Live Look” problem . The discussion forum was able to resolve the offline viewing issue by directing me to change the cookie server domain (http://ellislab.com/forums/viewthread/159052/)

    Thanks for your help!

  • #2 / Aug 16, 2010 3:16pm

    Rob Allen

    3114 posts

    You need to specify some extra parameters in the weblog:entries tag to get future/closed entries to show, eg status=“open|closed” will display closed entries as well. On it’s own that would allow the publisc to see those entries so one option is to create a separate template for your live look and make it only accessible by certain member groups as needed.

    That’s one way, there are probably some others 😊

  • #3 / Aug 16, 2010 8:37pm

    Brandon Jones

    5500 posts

    Thanks, bluedreamer.

    Does that help, JHUGlobalWater?

  • #4 / Aug 17, 2010 2:44pm

    JHUGlobalWater

    8 posts

    Thanks, Bluedreamer.  That fixes the problem of previewing closed or future entries in a template.  Good suggestion to create a new template, restrict access to SuperAdmins, set ‘show_future_entries=“yes” ‘, and set ‘status=“open|closed”’. 

    However - can anyone help with the related issue of the broken “live look” link?  That is, how do we get the “live look” link to open a new window that displays the entry?  From CP Home ›  Edit Weblog Entries there is a column called “view.”  Clicking on “live look” for entry 165, for example, opens this URL:

    http://globalwater.jhu.edu?URL=http://globalwater.jhu.edu/magazine/article_livelook/165/

    That URL displays my site homepage. BUT, deleting the first part of the URL allows the article to display in the correct “live look” template:

    http://globalwater.jhu.edu/magazine/article_livelook/165/

    Where does the first part of the URL with question mark come from?  Having a broken “live look” link is inconvenient. 

    Many thanks,

    Luke

  • #5 / Aug 18, 2010 2:33am

    John Henry Donovan

    12339 posts

    Luke,

    Where does the first part of the URL with question mark come from?

    It’s a redirect that prevents the location of your control panel from showing up in the referrer logs.

    I believe your htaccess removing your index.php is interfering with its behaviour.
    Look what happens when I add back in the index.php

    http://globalwater.jhu.edu/index.php?URL=http://globalwater.jhu.edu/magazine/article_livelook/165/

    This is the intended behaviour

  • #6 / Aug 18, 2010 12:41pm

    JHUGlobalWater

    8 posts

    Thanks, John.

    Adding the index.php to the URL gives the intended behavior.  I am not sure what the htaccess is and am now looking in the User Guide and forum to see how to change it.  Any advice?

    Luke

  • #7 / Aug 18, 2010 12:50pm

    JHUGlobalWater

    8 posts

    John -

    I set CP Home ›  Admin ›  System Preferences ›  General Configuration > Name of your site’s index page to index.php

    That fixes the live look problem. Thanks!

    I notice that index.php now appears in the URL on weblog entries as I navigate our site, but not in the weblog index pages.  This is not a big deal, but shorter URLs are better.  Is there another setting to control whether index.php appears on weblog entries? 

    Either way, everything seems to be fully functional now.

    Best,

    Luke

  • #8 / Aug 19, 2010 1:32am

    John Henry Donovan

    12339 posts

    Luke,

    Glad its working for you. We don’t support the removal of index.php but if you felt so inclined take a look at this Wiki entry

    Feel free to start a new thread if you have any more questions

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

ExpressionEngine News!

#eecms, #events, #releases