Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-11-22 09:35:04

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Preview article

I’ve read through the FAQ and couldn’t find a answer to this very simple question:

How do I preview a article?

I want to be able to see the article before it goes live on the frontpage.

I thought that I could use the hidden status, but I cant get it working:
I created a article with the id 63 and set the status to hidden.
Now I thought that I could see the article on my site if I used the id in the URL, but that doesn’t seems to work.

What am I doing wrong?

Offline

#2 2007-11-22 10:14:05

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Preview article

Only sticky/live articles are viewable from the front-end (yes, there are ugly workarounds, but I won’t mention them, because they stand a good chance of disappearing in the future).

The easiest way is probably to set the section for the article to a section that you normally don’t use and don’t link to from anywhere on the website, use the same style/template for that section as you do for the real section you want the article to appear in. It’s a bit more work than you might hope for.

Offline

#3 2007-11-22 10:55:49

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: Preview article

ruud wrote:

The easiest way is probably to set the section for the article to a section that you normally don’t use and don’t link to from anywhere on the website, use the same style/template for that section as you do for the real section you want the article to appear in. It’s a bit more work than you might hope for.

The problem with this method is that the rss feed will be generated and the article will be pinged.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2007-11-22 10:55:58

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Preview article

gemal you should check out what pat64 did with the txp backend here. features a very nice thickbox-style preview.

http://forum.textpattern.com/viewtopic.php?id=24459

i’ve always found the regular mainly plain text ‘preview’ option in txp to be rather useless ;P

Last edited by iblastoff (2007-11-22 10:57:05)

Offline

#5 2007-11-22 14:36:19

JonahC
Member
From: Toronto
Registered: 2007-09-23
Posts: 39
Website

Re: Preview article

I’ve been wondering about this myself. I want to preview my article because of picture layout etc.

Someone in this forum mentioned that he sets the posting date into the future so he can see the article. I thought this was a brilliant idea and it does work (i.e. you get the “view” link on the write tab)… Is there anything wrong with this approach. If you publish an article with a future date… does it actually get pinged immediately? I also didn’t think it showed up on my rss feed since the date is in the future. I haven’t checked my atom feed though.

So what I’ve done so far is put a posting date in the future and then when I’m satisfied with the post, change the posting date to now. Anything wrong with this approach for previewing an article?

Last edited by JonahC (2007-11-22 15:06:39)


Jonah Calinawan
www.foodportraits.com

Offline

#6 2007-11-22 15:16:10

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Preview article

JonahC wrote:

If you publish an article with a future date… does it actually get pinged immediately?

In fact, we do not ping the aggregator services with definitive hints for distinct articles, but send a general “come on over” ping on the event that a new article went “live”. So yes, your site will issue a ping instructing the aggregators to visit your site and find new stuff, but actually they won’t find one – as your ping was caused by a post which would appear later.

I also didn’t think it showed up on my rss feed since the date is in the future. I haven’t checked my atom feed though.

Feeds never contain future articles.

Offline

#7 2007-11-22 16:17:49

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: Preview article

wet wrote

In fact, we do not ping the aggregator services with definitive hints for distinct articles, but send a general “come on over” ping on the event that a new article went “live”. So yes, your site will issue a ping instructing the aggregators to visit your site and find new stuff, but actually they won’t find one – as your ping was caused by a post which would appear later.

Thanks for clearing this up Robert. Got it wrong all these years:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB