[Radiant] /admin/export
James MacAulay
jmacaulay at gmail.com
Fri Jul 14 15:43:03 CDT 2006
Hi all,
I'm rather new to radiant and I'm using it to set up a small-scale intranet
site. I wanted to do an /admin/export to create a template that could be
used for the setup_database script, but I'm running into difficulties. The
YAML file I get from the export seems to be in a different format than
setup_database is expecting.
I'm not very familiar with YAML or how it is generated and parsed in Ruby,
so I'm a bit lost. I was initially running Radiant from a RubyGem, but I've
since switched to the subversion trunk in the hopes that this issue would be
resolved (perhaps by the fact that it's got its own Rails in /vendor/...I
thought maybe this was an issue with my version of Rails and how it handles
YAML conversions).
So I've got Radiant rev. 85 running on Rails 1.1.2 (or whichever version is
in /vendor/), served via LightTPD.
Any help would be greatly appreciated.
-James MacAulay
Ottawa, Canada
The export files I get look like this:
---
Snippets:
5:
name: firefox-reminder
updated_at: 2006-07-13 19:43:46 Z
filter_id: ""
created_by: 1
updated_by:
id: 5
content: <a
href="http://www.spreadfirefox.com/?q=affiliates&id=0&t=65"><img
border="0" alt="Get Firefox!" title="Get Firefox!" src="
http://sfx-images.mozilla.org/affiliates/Buttons/110x32/safer.gif"/></a>
created_at: 2006-07-13 19:43:46 Z
1:
name: header
updated_at: 2006-07-13 15:58:42 Z
filter_id: Textile
created_by: 1
updated_by: 1
id: 1
...etc.
The templates in /db/templates, on the other hand, look like this:
name: Simple Blog
description: Setup Radiant as a simple weblog.
records:
Layouts:
main:
id: 1
name: Normal
content: |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
...etc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.radiantcms.org/pipermail/radiant/attachments/20060714/7971799d/attachment.html
More information about the Radiant
mailing list