Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#4281 closed defect (bug) (invalid)

Can not view drafts when splash index page activated

Reported by: alexgenaud's profile alexgenaud Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.2
Component: Administration Keywords:
Focuses: Cc:

Description

A user is unable to 'view' drafts when there is a splash screen (index.html).

Steps to Recreate
====

  1. Set up WordPress to use pretty-URLs
  2. Create index.html (splash screen) in word-press root directory (along-side index.php).
  3. Save a post as Draft.
  4. Select View post (draft)
  5. URL will be something like http://mydomain/?p=postid
  6. The index.html page will be displayed, not he draft (because it is not using index.php)

Work Arounds
====

  1. Save post as Private, view private is possible.

or

  1. Do some fancy .htaccess/Apache stuff

or

  1. Remove index.html and add a fancy if-else block to the index.php page.

or

  1. Remove index.html and give up on the CMS idea.

Example
=====
http://ingabirna.com/?p=3

Change History (2)

#1 @Otto42
17 years ago

  • Resolution set to invalid
  • Status changed from new to closed

This is an incorrect way of doing a splash screen. The better way would be:

  1. Create your splash page as a Page Template (easy to do, just take your page and add a Page Template header to the top and rename it to be splash.php or something).
  2. Put it in your theme's directory.
  3. Make a new Page Template for your posts page (Add a Page Template header to the theme's index.php and rename it to something like posts.php)
  4. Create new Pages for both the splash and the posts page, using your templates.
  5. On Options->Reading, set your Front page to be the splash page and the posts page to be the posts page, and to use a static page for the front page.

This is basically all covered here:
http://codex.wordpress.org/Creating_a_Static_Front_Page

#2 @rob1n
17 years ago

  • Milestone 2.4 deleted
Note: See TracTickets for help on using tickets.