Well, I thought it was funny. Don't mind the crazy person! (me)
Sean
On 5/15/07, Daniel Sheppard <[EMAIL PROTECTED]> wrote:
>
> > Subject: Re: [Radiant] automated page building
> >
> > Very funny Daniel ;).
> >
> > Sean
>
> Funny? That code is pretty much verbatim from a script I have to generat
> Subject: Re: [Radiant] automated page building
>
> Very funny Daniel ;).
>
> Sean
Funny? That code is pretty much verbatim from a script I have to generate a
bunch of pages for benchmarking find_by_url.
Dan.
___
Radiant mailing list
Post: Radia
Saji,
Make sure to put quotes around that URL. It should be a string, not a regex.
parent = Page.find_by_url("/articles/")
Sean
On 5/15/07, Saji Njarackalazhikam Hameed <[EMAIL PROTECTED]> wrote:
> Hi Daniel,
> Thanks very much. I ran the following code (included inside a file test.rb)
>
> # S
Very funny Daniel ;).
Sean
On 5/15/07, Daniel Sheppard <[EMAIL PROTECTED]> wrote:
> require 'config/environment'
>
> parent = Page.find_by_url('/path/to/parent')
>
> 50.times do {|i|
> child = Page.new
> child.parent = parent
> child.title = "Page #{i}"
> child.bre
Hi Daniel,
Thanks very much. I ran the following code (included inside a file test.rb)
# Start of code
parent = Page.find_by_url(/articles/)
i=1
child = Page.new
child.parent = parent
child.title = "Page #{i}"
child.breadcrumb = "Page #{i}"
child.slug = "page-#{i}"
body = PagePart.new
> The problem is that I cannot find a way to retrieve the value
> of the 'id'
> param in the code for tags which are placed in the called page.
> I have tried the following (without success)
> curId = params[:id]
> curId = tag.locals.params[:id]
> curId = tag.globals.params[:id]
> curId = tag.loc
require 'config/environment'
parent = Page.find_by_url('/path/to/parent')
50.times do {|i|
child = Page.new
child.parent = parent
child.title = "Page #{i}"
child.breadcrumb = "Page #{i}"
child.slug = "page-#{i}"
body = PagePart.new
body.cont
Hi.
I am developing a family of tags that should do the following:
- find_by_id a given record for a Model in the database
-show field values for that record
This tags are defined in a Model which inherits from Page
This tag should work inside a radiant page called through a normal
SiteController
Dear Sean,
Thank you for the tips. I am comfortable with writing shell or
Ruby scripts for this task, but have no idea of the inner workings of
Radiant. I have briefly looked at the Capistrano manuals and it
is a possible tool for my purpose.
If there is an example showing how to use scripting (ru
You could write a Ruby script that you invoke with script/runner, or
better yet, a Rake task. It will require some knowledge of the inner
workings of Radiant (at least how the models interact).
Alternatively, if you're not comfortable with using the shell,
Capistrano could help you automate this,
You might look at the LDAP extension for some ideas. KCKCC.edu uses
(or used) the extension to hit an LDAP server on another machine. The
concept is basically the same -- wrap the external service in some
object semantics you can live with, then write tags that allow you to
display the data. Oth
Dear All,
I started using Radiant and appreciate much its elegant interface. As
a user I find it easy to use the Radiant interface for creating
new pages and developing complex webpages with minimal effort.
I wonder if there is a way to create certain pages automatically
using some kind of scrip
Right. Take a look at the date of the post that recommends the
unpack command. That was accurate for 0.5. Now, with 0.6, the
recommended method of installation is through the gem binary, as
suggested in the wiki.
From what I have surmised, installing into a subdirectory is *very*
diffi
keith wrote:
> All,
>
> I've tested install on site 5 several times since the release and am
> following the exact steps illustrated in the wiki -
> http://dev.radiantcms.org/radiant/wiki/HowToSite5 - it gives me the same
> exact error across accounts. When I try to unpack the application I get
>
Hey all,
I'm relatively new to Radiant CMS. I've had a little success with
understanding how to develop extensions to do custom things for me in a new
site I'm developing. One thing I'd like to be able to do is consume a web
service I wrote in another Rails application from my extension. Is the
Wow, thats the way to go!
I'll be happy to translate to the second language (Dutch).
Erik.
Sean Cribbs wrote:
> John Thursday night hacking session?
>
>
--
Erik van Oosten
http://2007.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/
___
Francesco Lunelli wrote:
> Yes I can use console but what I nedd is a little different.
> I know that I am perverting the nature of Radiant, but I am trying to
> adapt it to the needs of my silly customers. (Why customers are quite
> always silly?)
> I created a form and a script that parse the for
The Facets model of Extensions is to break up the page editing interpace
into regions and parts.
To alter this interface you insert your "part" somewhere into this
hierarchy. Or you can re-arrange the hierarchy.
So for example you would do something like:
Radiant::PageEditorUI.add "admi
On May 15, 2007, at 5:25 AM, Francesco Lunelli wrote:
> I changed the code in the gem, but I would prefer to do a cleaner job
> becasue changing the gem changes every radiant site on the same
> machine.
> (Fortunately I have only one site for the moment)
While it's still a little ugly, you'd p
I created a page that lists all its children titles..when I add a
children I need to clear cache to update tha main page..
so I create an extension with a new page type (Dynamic).
When a page is saved, it checks all its ancestor; if it finds a page
of Dynamic type it clears its cache..
Is ther
Thanks, I double triple checked my apache setup again and it turns
out I was loading the include file with the config twice, once from
inside the virtual host, and also before any virtual hosts were
applied - hence the problem.
A stupid mistake I should have caught first time round... Apolog
> When children are asked for a page part, say 'body', they would first look
> for 'body_en' and only revert to 'body' if that does not
> exist.
>
> So you'd have a single tree of pages, but they would be served through
> different urls:
>
> /en/books
> /de/books
> /fr/books
I think its a intere
John W. Long ha scritto:
> Francesco Lunelli wrote:
>
>> In the old version of Radiant I created sites with all controllers,
>> models etc in the site so I modified them to avoid that the default
>> values was inserted in the db.
>> But now I migrated to the new version of Radiant 0.6.1 and all
Thanks for the answers.
The possibility of capturing query parameters is not limited to
addressing different part of pages, but it could be useful in many ways,
I hope this possibility will be included in standard radiant distribution.
In this case I used it to include static html pages into radian
I'm ready to traduce the first lang file.
On 5/15/07, John W. Long <[EMAIL PROTECTED]> wrote:
>
> Sean Cribbs wrote:
> > John Thursday night hacking session?
>
> That sounds like fun. Anyone else with a desire to see Radiant localized
> planning to be there?
>
> --
> John Long
> http://wisehea
25 matches
Mail list logo