Re: [Radiant] Backdating posts when moving to Radiant
Are you using Mechanize to import pages into Radiant? That was actually the fastest way I could think off to get my data in there i.e. the code I used for the login: http://www.pastie.org/501391 I can figure out which article number a page has given the page's title as long as it is not a 2nd lvl child (because the page hierarchy is not expanded, the page does not return all links and I can't see a way of clicking the small + sign with mechanize) But that doesn't present a problem for me since I have a root/section/article hierarchy and I only want to add articles to sections. Cheers, V.- ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Backdating posts when moving to Radiant
Vassilis Rizopoulos wrote: Are you using Mechanize to import pages into Radiant? That was actually the fastest way I could think off to get my data in there i.e. the code I used for the login: http://www.pastie.org/501391 I can figure out which article number a page has given the page's title as long as it is not a 2nd lvl child (because the page hierarchy is not expanded, the page does not return all links and I can't see a way of clicking the small + sign with mechanize) But that doesn't present a problem for me since I have a root/section/article hierarchy and I only want to add articles to sections. Cheers, V.- Hi Vassilis In my opinion, using script/runner to run a script to insert the pages is likely to be easier. It's more Rails-based (so if you understand Rails, it's easy) than in the case of using Mechanize. It also completely avoids the necessity to tune to the API. Best wishes, Mohit. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Backdating posts when moving to Radiant
On Tue, Jun 2, 2009 at 5:02 PM, Charlie Robbins charlie.robb...@gmail.comwrote: The edit published_at field is disabled by default in the Admin interface. You can enable it by changing a config value. Radiant::Config['page.edit.published_date?'] = true More on the wiki: http://wiki.github.com/radiant/radiant/change-a-pages-publication-date Thanks Charlie, that's the part I was missing. I went the mechanize way in order to pump the data into Radiant and everything works fine. Small nag: none of the forms have names, means one needs to pretty print the mechanize output and figure out where in the array to find a form in. All in all about 50 line of code, so I can't complain. Cheers, V.- ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Backdating posts when moving to Radiant
Vassilis Rizopoulos wrote: On Tue, Jun 2, 2009 at 5:02 PM, Charlie Robbins charlie.robb...@gmail.comwrote: The edit published_at field is disabled by default in the Admin interface. You can enable it by changing a config value. Radiant::Config['page.edit.published_date?'] = true More on the wiki: http://wiki.github.com/radiant/radiant/change-a-pages-publication-date Thanks Charlie, that's the part I was missing. I went the mechanize way in order to pump the data into Radiant and everything works fine. Small nag: none of the forms have names, means one needs to pretty print the mechanize output and figure out where in the array to find a form in. All in all about 50 line of code, so I can't complain. Cheers, V.- Are you using Mechanize to import pages into Radiant? Cheers, Mohit. 6/5/2009 | 12:09 AM. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Backdating posts when moving to Radiant
Vassilis Rizopoulos wrote: On Tue, Jun 2, 2009 at 5:02 PM, Charlie Robbins charlie.robb...@gmail.comwrote: The edit published_at field is disabled by default in the Admin interface. You can enable it by changing a config value. Radiant::Config['page.edit.published_date?'] = true More on the wiki: http://wiki.github.com/radiant/radiant/change-a-pages-publication-date Thanks Charlie, that's the part I was missing. I went the mechanize way in order to pump the data into Radiant and everything works fine. Small nag: none of the forms have names, means one needs to pretty print the mechanize output and figure out where in the array to find a form in. All in all about 50 line of code, so I can't complain. Cheers, V.- Also, would recommend using the LiveHTTPHeaders extension in Firefox to see what is being submitted to the site, if you want to go that way. Cheers, Mohit. 6/5/2009 | 12:12 AM. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Backdating posts when moving to Radiant
The edit published_at field is disabled by default in the Admin interface. You can enable it by changing a config value. Radiant::Config['page.edit.published_date?'] = true More on the wiki: http://wiki.github.com/radiant/radiant/change-a-pages-publication-date On Sun, May 31, 2009 at 12:03 PM, Mohit Sindhwani t...@onghu.com wrote: Vassilis Rizopoulos wrote: I have a self-built blog engine that stores article content in text files. Most of the entries are in Textile so I don't see a problem there. I would like to move this content to the new Radiant-based blog I got up and running, and ofcourse I want to backdate them so that posting dates reflect the original posts. Now, I do not want to do this per hand. The article volume is big enough, that contemplating changing the dates per hand gives me carpal tunnel syndrome. I've lready figured out how to post articles to Radiant and have them land in the appropriate places but I can't figure out how the fields for the publication dates are called. So a post about turning these fields on in the Radiant forms, bt I once again failed to do that. And since it was a hint I picked up from the old site I can't find it again - and in the git wiki that page has not been created yet. Anyone have any pointers for me? Basically, if you have figured out how to move articles across to Radiant, you should be able to set page.published_at to the correct value as you want. Just take a look at the schema of the pages table and you'll know which field to set up. Hope this helps. Cheers, Mohit. 6/1/2009 | 12:02 AM. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Backdating posts when moving to Radiant
I have a self-built blog engine that stores article content in text files. Most of the entries are in Textile so I don't see a problem there. I would like to move this content to the new Radiant-based blog I got up and running, and ofcourse I want to backdate them so that posting dates reflect the original posts. Now, I do not want to do this per hand. The article volume is big enough, that contemplating changing the dates per hand gives me carpal tunnel syndrome. I've lready figured out how to post articles to Radiant and have them land in the appropriate places but I can't figure out how the fields for the publication dates are called. So a post about turning these fields on in the Radiant forms, bt I once again failed to do that. And since it was a hint I picked up from the old site I can't find it again - and in the git wiki that page has not been created yet. Anyone have any pointers for me? Cheers, V.- ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Backdating posts when moving to Radiant
The publication date field on the Page model is published_at. Just give it a Date/Time/DateTime object when saving. Sean Vassilis Rizopoulos wrote: I have a self-built blog engine that stores article content in text files. Most of the entries are in Textile so I don't see a problem there. I would like to move this content to the new Radiant-based blog I got up and running, and ofcourse I want to backdate them so that posting dates reflect the original posts. Now, I do not want to do this per hand. The article volume is big enough, that contemplating changing the dates per hand gives me carpal tunnel syndrome. I've lready figured out how to post articles to Radiant and have them land in the appropriate places but I can't figure out how the fields for the publication dates are called. So a post about turning these fields on in the Radiant forms, bt I once again failed to do that. And since it was a hint I picked up from the old site I can't find it again - and in the git wiki that page has not been created yet. Anyone have any pointers for me? Cheers, V.- ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Backdating posts when moving to Radiant
Vassilis Rizopoulos wrote: I have a self-built blog engine that stores article content in text files. Most of the entries are in Textile so I don't see a problem there. I would like to move this content to the new Radiant-based blog I got up and running, and ofcourse I want to backdate them so that posting dates reflect the original posts. Now, I do not want to do this per hand. The article volume is big enough, that contemplating changing the dates per hand gives me carpal tunnel syndrome. I've lready figured out how to post articles to Radiant and have them land in the appropriate places but I can't figure out how the fields for the publication dates are called. So a post about turning these fields on in the Radiant forms, bt I once again failed to do that. And since it was a hint I picked up from the old site I can't find it again - and in the git wiki that page has not been created yet. Anyone have any pointers for me? Basically, if you have figured out how to move articles across to Radiant, you should be able to set page.published_at to the correct value as you want. Just take a look at the schema of the pages table and you'll know which field to set up. Hope this helps. Cheers, Mohit. 6/1/2009 | 12:02 AM. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant