# Scheduled publishing

**URL:** <https://www.ruby-forum.com/t/scheduled-publishing/63226>\
**Category:** Radiant CMS\
**Created:** [June 13, 2006, 10:39am UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226 "2006-06-13T10:39:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [June 13, 2006, 10:39am UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/1 "2006-06-13T10:39:19Z")

</div>

(sorry for the dupe, i posted the same message with the wrong subject)

During a migration to radiant, we had to correct the publish date of  
archived posts via the database; we had a little idea:

‘status of a page’ select box is now:  
-draft  
-reviewed  
-published  
-hidden

wouldn’t it be nice to have:  
-draft  
-reviewed  
-publish now  
-publish on…  
-hidden

It allows the schedule of a post, and even modifying a publication  
date in the past.

* * *

Radiant mailing list  
removed\_email\_address@domain.invalid  
[http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [June 13, 2006, 12:54pm UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/2 "2006-06-13T12:54:07Z")

</div>

I like that idea of adding in publish on…

What happens once the date has arrived? Will the status changed to:  
publish now?  
I do like the idea of being able to modify the publish date. I don’t  
think this should be an option though that is available in the UI.  
Keep it hidden and as an option to change so not to clutter the UI.

Chris-

On Jun 13, 2006, at 4:34 AM, Tristan Boniver wrote:

> * * *
> 
> Radiant mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)
> 
> * * *
> 
> Radiant mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

Chris Corriveau: CTO of Genevate - P.O. Box 1829, North Falmouth, MA  
02556  
contact | removed\_email\_address@domain.invalid - 508.564.5676 ext. 202 | toll free -  
866.GENEVATE

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [June 14, 2006, 4:38am UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/3 "2006-06-14T04:38:41Z")

</div>

[http://dev.radiantcms.org/radiant/ticket/41](http://dev.radiantcms.org/radiant/ticket/41)

Adds the ability to modify the published date to the UI. Didn’t do any  
‘publish later’ magic (you’d need to have some sort of cron job set up  
to update things), but this will at least allow back-dating of entries.

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [June 16, 2006, 7:37am UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/4 "2006-06-16T07:37:56Z")

</div>

Is it possible to sort children using another attribute than the  
publication date ?

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [June 16, 2006, 7:50am UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/5 "2006-06-16T07:50:01Z")

</div>

[http://dev.radiantcms.org/radiant/browser/trunk/radiant/app/models/page\_](http://dev.radiantcms.org/radiant/browser/trunk/radiant/app/models/page_)  
context.rb#L80

There’s a “by” attribute to select which field to sort by.

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [June 16, 2006, 3:26pm UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/6 "2006-06-16T15:26:22Z")

</div>

Right now i’m hacking my way through ordering children by using  
numbers in my unused ‘breadcrumb’ field (very dirty)

Anyone implementing a sortable-list solution for ordering items in  
the ‘Pages tree’ will be a hero !

Tristan

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [June 16, 2006, 5:16pm UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/7 "2006-06-16T17:16:56Z")

</div>

Tristan Boniver wrote:

> Right now i’m hacking my way through ordering children by using  
> numbers in my unused ‘breadcrumb’ field (very dirty)
> 
> Anyone implementing a sortable-list solution for ordering items in  
> the ‘Pages tree’ will be a hero !

+1 🙂

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [June 16, 2006, 12:08pm UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/8 "2006-06-16T12:08:15Z")

</div>

published\_at seems to be the default attribute;

is there a “position” or “order” attribute available out of the box ?  
(I don’t see anything in the GUI)

Or a way to do it… like creating a part “position” with a number in  
it ?

T

(note : i ask those questions as a simple radiant user)

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [June 19, 2006, 3:34am UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/9 "2006-06-19T03:34:57Z")

</div>

John L. wrote:

> > Anyone implementing a sortable-list solution for ordering items in  
> > the ‘Pages tree’ will be a hero !
> 
> +1 🙂

[http://dev.radiantcms.org:9007/radiant/ticket/45](http://dev.radiantcms.org:9007/radiant/ticket/45)

The code there does the model stuff. The user interface will probably  
involve a complete rewrite of the javascript and html for the admin  
sitemap. To do it right would probably involve changing the admin pages  
to use

's instead of tables (as scriptaculous doesn’t to drag/drop  
of table rows) - this would probably make for cleaner javascript and  
html, though it will probably make for more complicated (and possibly  
less flexible) css.

I’m going to try concentrating on my complex page model changes (ticket  
40) as that’s my big ‘go-live’ hurdle. So I don’t want to get distracted  
by this for now. If anybody wants to pick up the view side of this,  
hopefully the model code should give you what you need to get going.  
Otherwise I’ll try and get back to it later.

Daniel S.  
Website Administrator  
[http://www.thegroggysquirrel.com](http://www.thegroggysquirrel.com)

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [June 19, 2006, 4:05am UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/10 "2006-06-19T04:05:06Z")

</div>

On 6/18/06, Keith B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is anyone else going to be at Railsconf? We could have a RadiantCMS get  
> together…

I’ll be at RailsConf (the 21st to 25th); sounds like a good idea.

## Cheers, Bruce

[http://codefluency.com](http://codefluency.com)

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [June 19, 2006, 4:08am UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/11 "2006-06-19T04:08:21Z")

</div>

I’ll be going to Railsconf, could be up for a meetup.

Chris-

On Jun 18, 2006, at 9:58 PM, Keith B. wrote:

> > involve a complete rewrite of the javascript and html for the admin  
> > 40) as that’s my big ‘go-live’ hurdle. So I don’t want to get  
> > hard. I have done a few applications doing this sort of thing with  
> > [http://www.bitchkittyracing.com](http://www.bitchkittyracing.com)
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> * * *
> 
> Radiant mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

Chris Corriveau: CTO of Genevate - P.O. Box 1829, North Falmouth,  
MA 02556  
contact | removed\_email\_address@domain.invalid - 508.564.5676 ext. 202 | toll free -  
866.GENEVATE  
Visit: [CapePropertySearch.com](http://CapePropertySearch.com) has graphs and trends on over 6,500+  
Cape Cod properties.

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [June 19, 2006, 4:32pm UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/12 "2006-06-19T16:32:01Z")

</div>

Keith B. wrote:

> I would be interesting in looking into doing this. It shouldn’t be too  
> hard. I have done a few applications doing this sort of thing with lists  
> and the styles are not that complicated. I think it may even be easier  
> than a table, though that is a matter of taste. I am on the road, but  
> will give a serious go at the views this week.

I’d prefer a drag and drop sortable table. Sortable lists

> Is anyone else going to be at Railsconf? We could have a RadiantCMS get  
> together…

I’ll be there. Would you guys be up for meeting Thursday afternoon at  
some point? We could also do Saturday lunch if that would work better  
for everyone.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [June 19, 2006, 4:47pm UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/13 "2006-06-19T16:47:43Z")

</div>

John W. Long wrote:

> I’d prefer a drag and drop sortable table. Sortable lists

Grrr. Hit the send button prematurely. I was going to say that I think a  
table may be the only way to display that information in a “tabular”  
fashion. It’s probably semantically correct as well.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [June 19, 2006, 3:58am UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/14 "2006-06-19T03:58:07Z")

</div>

Daniel S. wrote:

> John L. wrote:
> 
> > > Anyone implementing a sortable-list solution for ordering items in  
> > > the ‘Pages tree’ will be a hero !
> > 
> > +1 🙂
> 
> [http://dev.radiantcms.org:9007/radiant/ticket/45](http://dev.radiantcms.org:9007/radiant/ticket/45)
> 
> The code there does the model stuff. The user interface will probably  
> involve a complete rewrite of the javascript and html for the admin  
> sitemap. To do it right would probably involve changing the admin pages  
> to use
> 
> 's instead of tables (as scriptaculous doesn’t to drag/drop  
> of table rows) - this would probably make for cleaner javascript and  
> html, though it will probably make for more complicated (and possibly  
> less flexible) css.
> 
> I’m going to try concentrating on my complex page model changes (ticket  
> 40) as that’s my big ‘go-live’ hurdle. So I don’t want to get distracted  
> by this for now. If anybody wants to pick up the view side of this,  
> hopefully the model code should give you what you need to get going.  
> Otherwise I’ll try and get back to it later.
> 
> Daniel S.  
> Website Administrator  
> [http://www.thegroggysquirrel.com](http://www.thegroggysquirrel.com)

I would be interesting in looking into doing this. It shouldn’t be too  
hard. I have done a few applications doing this sort of thing with lists  
and the styles are not that complicated. I think it may even be easier  
than a table, though that is a matter of taste. I am on the road, but  
will give a serious go at the views this week.

Is anyone else going to be at Railsconf? We could have a RadiantCMS get  
together…

Keith B.  
[http://www.bitchkittyracing.com](http://www.bitchkittyracing.com)

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [June 19, 2006, 5:19pm UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/15 "2006-06-19T17:19:08Z")

</div>

The ‘pages’ page can be considered as a list of items with their  
tools/actions vertically aligned on the right…

I’ve seen successful examples of

 doing that job ( and I  
remember doing it myself in minutes, sortable via scriptaculous, but  
i can’t reach it right now 😕 )

Tristan

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [June 20, 2006, 6:44pm UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/16 "2006-06-20T18:44:02Z")

</div>

> John W. Long wrote:
> 
> > I’d prefer a drag and drop sortable table. Sortable lists
> 
> Grrr. Hit the send button prematurely. I was going to say  
> that I think a  
> table may be the only way to display that information in a “tabular”  
> fashion. It’s probably semantically correct as well.

I don’t think that’s right on either count. The pages aren’t a flat  
table. They’re a nested list, which

's are the more representative  
tag for (or 

's I guess, since we’re doing this for sorting). Making  
the lists look like tables should certainly be a possibility - some  
careful floating should get us there.

Plus the fact that there are exactly zero libraries that allow the drag  
and drop sorting of table rows - browsers are very hostile to such  
things.

Also, a bit of an aside, but vaguely related - drag and drop of pages to  
a different parent is probably not a good idea. I’m a big fan of “Cool  
URI’s Don’t Change” philosophy, and would like to discourage such  
movement of published pages. I’d like to have some sort of “move page”  
option which will reparent the page and replace the existing page with a  
redirect. But I’m yet to imagine how I’d like that to function in a  
user-friendly manner. Someday inspiration will strike.

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [June 19, 2006, 11:01pm UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/17 "2006-06-19T23:01:52Z")

</div>

I just switched the admin interface over to a

, there are a few  
bugs, but for the most part it works nicely. I did it on the bus on the  
way to Chicago, so it is a bit rough. But with a little effort, it will  
look and work just as it did before.

Sortable lists are then very easy. I will take a look at the controller  
code and see if I can fit it all together…

Keith

Tristan Boniver wrote:

> The ‘pages’ page can be considered as a list of items with their  
> tools/actions vertically aligned on the right…
> 
> I’ve seen successful examples of
> 
> doing that job ( and I  
> remember doing it myself in minutes, sortable via scriptaculous, but  
> i can’t reach it right now 😕 )
> 
> Tristan

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [August 3, 2006, 2:24pm UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/18 "2006-08-03T14:24:01Z")

</div>

On Jun 19, 2006, at 6:24 PM, Daniel S. wrote:

> I’d like to have some sort of “move page”  
> option which will reparent the page and replace the existing page  
> with a  
> redirect. But I’m yet to imagine how I’d like that to function in a  
> user-friendly manner. Someday inspiration will strike.

What if drag ‘n’ dropping a published page left a gray entry  
representing a redirect, and pressing “delete” on that redirect row  
produced a warning saying that people might be linking to that URL?

Just a brainstorm.

–  
Ryan P.  
Senior Developer, SubscriberMail, LLC

3333 Warrenville Rd.  
Suite 530  
Lisle, IL 60532  
(630) 303-5072

Not Just Email…SubscriberMail

> **[subscribermail.com domain name is for sale. Inquire now.](https://www.subscribermail.com/)**
>
> subscribermail.com is available for purchase. Get in touch to discuss the possibilities!

This message (including attachments) contains proprietary information  
which may not be disclosed or used beyond the purposes of this  
message without the written consent of SubscriberMail, LLC. If you  
receive this message in error, notify the sender and destroy this  
message and all attachments immediately. Thank you.

SubscriberMail is covered under US PATENT 6,769,002

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [August 3, 2006, 2:24pm UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/19 "2006-08-03T14:24:01Z")

</div>

On Jun 20, 2006, at 10:25 AM, John W. Long wrote:

> Tables are also much, much easier to  
> style for this kind of thing. It gets pretty messy when you try to do  
> the same thing with floats.

Not if you have fixed-length widths you can just plug in to the  
elements. Simple.

–  
Ryan P.  
Senior Developer, SubscriberMail, LLC

3333 Warrenville Rd.  
Suite 530  
Lisle, IL 60532  
(630) 303-5072

Not Just Email…SubscriberMail

> **[subscribermail.com domain name is for sale. Inquire now.](https://www.subscribermail.com/)**
>
> subscribermail.com is available for purchase. Get in touch to discuss the possibilities!

This message (including attachments) contains proprietary information  
which may not be disclosed or used beyond the purposes of this  
message without the written consent of SubscriberMail, LLC. If you  
receive this message in error, notify the sender and destroy this  
message and all attachments immediately. Thank you.

SubscriberMail is covered under US PATENT 6,769,002

---

<div class="post-metadata">

**Author:** ![Tristan\_Boniver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@Tristan\_Boniver](https://www.ruby-forum.com/u/Tristan_Boniver)\
**Post date:** [August 3, 2006, 2:24pm UTC](https://www.ruby-forum.com/t/scheduled-publishing/63226/20 "2006-08-03T14:24:06Z")

</div>

> What if drag ‘n’ dropping a published page left a gray entry  
> representing a redirect, and pressing “delete” on that redirect row  
> produced a warning saying that people might be linking to that URL?

That’s how I’ve been imagining it, but dragging and dropping between  
nested lists can sometimes be a little hard to do. If you make a couple  
of accidental drops, you’ll end up with trailing redirects. Maybe that’s  
not as much of an issue as I think though - guess we’ll see when there’s  
an implementation.

Dan.

[Next page](https://www.ruby-forum.com/t/scheduled-publishing/63226.md?page=2)
