Displaying upcoming/future posts

28 views
Skip to first unread message

Puneeth Chaganti

unread,
May 8, 2013, 12:24:35 PM5/8/13
to nikola-...@googlegroups.com
Hello all,

I've recently added a feature[1] to be able to schedule posts in the
future. You can do this by setting the date metadata to a future
date.

Now, I would like to add a view, where a list of upcoming posts is
displayed. I'm not sure, what's the best way to go about this.

I have two routes in mind. First, modify the `Indexes` task and add a
upcoming_post_list. Second, add a new task, that writes the upcoming
posts into a json file; use javascript to add this list to any page
you choose.

Any comments/suggestions are welcome.

Thanks,
Puneeth

[1] -https://github.com/ralsina/nikola/pull/486

Roberto Alsina

unread,
May 8, 2013, 12:27:11 PM5/8/13
to nikola-...@googlegroups.com
On 08/05/13 13:24, Puneeth Chaganti wrote:
> Hello all,
>
> I've recently added a feature[1] to be able to schedule posts in the
> future. You can do this by setting the date metadata to a future
> date.
>
> Now, I would like to add a view, where a list of upcoming posts is
> displayed. I'm not sure, what's the best way to go about this.
>
> I have two routes in mind. First, modify the `Indexes` task and add a
> upcoming_post_list. Second, add a new task, that writes the upcoming
> posts into a json file; use javascript to add this list to any page
> you choose.
>
> Any comments/suggestions are welcome.
>


In my mind the future posts are sort of like auto-expiring drafts that
turn into real posts. Do other blogging things actually show the
upcoming posts?

Puneeth Chaganti

unread,
May 8, 2013, 12:39:21 PM5/8/13
to nikola-...@googlegroups.com
On Wed, May 8, 2013 at 9:57 PM, Roberto Alsina
<ral...@netmanagers.com.ar> wrote:
> In my mind the future posts are sort of like auto-expiring drafts that
> turn into real posts. Do other blogging things actually show the
> upcoming posts?

For a site/blog, where posts occur in a schedule, I think it is useful
to show a list of future posts. I have seen it on a few wordpress
blogs, but am unable to find them now, with a quick search. But, I
found a wordpress plugin[1] and a related thread [2].

Also, now that I think of it, there should probably be a config option
to allow publishing future date posts to be published right now,
instead of in the future.

--
Puneeth

[1] - http://wordpress.org/extend/plugins/upcoming-posts/
[2] - http://wordpress.org/support/topic/displaying-futurescheduled-posts-1

allan bailey

unread,
May 8, 2013, 12:46:13 PM5/8/13
to nikola-...@googlegroups.com
You still need to deploy your blog via cron or something right?  Or are you thinking of having some javascript magic suddently start displaying the future post?

-a



--
You received this message because you are subscribed to the Google Groups "nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nikola-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.





--
Allan Bailey
zirpu...@gmail.com

There are 2 hard problems in computer science:
  caching, naming, off-by-1 errors.

Roberto Alsina

unread,
May 8, 2013, 3:21:28 PM5/8/13
to nikola-...@googlegroups.com
On 08/05/13 13:46, allan bailey wrote:
You still need to deploy your blog via cron or something right?  Or are you thinking of having some javascript magic suddently start displaying the future post?


The first.

Puneeth Chaganti

unread,
May 14, 2013, 10:28:53 PM5/14/13
to nikola-...@googlegroups.com
So, does anybody have any suggestions on how to go about implementing this?
Reply all
Reply to author
Forward
0 new messages