Re: [Radiant] Extensions not appearing immediately ... weird

2008-02-27 Thread Daniel Sheppard
I am running Radiant on a HostingRails shared server. Is there a vital step I am missing that must be performed after installing any extensions (like a server reboot?). Yes, a restart is required for extensions to work. They would have worked intermittently because you have multiple

Re: [Radiant] too many articles..

2008-02-23 Thread Daniel Sheppard
http://soxbox.no-ip.org/radiant/svn/extensions/admin_tree_structure/ On Sat, Feb 23, 2008 at 4:52 PM, Sean Cribbs [EMAIL PROTECTED] wrote: Kay, Daniel Sheppard has an extension that organizes pages under an archive page by date. This might help. Sean Kay Joo wrote: Hello

Re: [Radiant] inconsistent routing

2008-02-21 Thread Daniel Sheppard
I'm getting some weird routing issues. My extension defines two routes to send requests to a new controller. It looks like these routes are only recognized about half of the time (at random). The other times the url is just sent to the site_controller for 'normal' processing. Do you have

Re: [Radiant] Really disabling caching

2008-02-12 Thread Daniel Sheppard
Thanks for your answer. I already did that. I also looked through the code of ResponseCache. Where does it use the perform_caching setting, because I for one can't find it? I'm not pointing any fingers here, I'm just asking, is anyone actually running Radiant with caching

Re: [Radiant] Radiant Factory

2007-12-04 Thread Daniel Sheppard
http://soxbox.no-ip.org/radiant/svn/extensions/x_groggy/lib/gr oggy_filter.rb It also filters out a bunch of common characters from people cutting/pasting from word, the key bit is a page.attachments.each This is nice and I would like to try it. Sorry for my dumb question.

Re: [Radiant] One more page launched on Radiant CMS! :)

2007-12-03 Thread Daniel Sheppard
(I managed to build everything while being a designer not a programmer. So it really works, even without proper guidance. The only thing that is over my head is that on Mediatemple Radiant dies out after every 3-4 hours -- it Most likely cause is that you've got more processes running

Re: [Radiant] Rails Versions

2007-12-02 Thread Daniel Sheppard
Do I need to freeze my radiant site on a shared host. I have read that Radiant ties itself to a certain version of rails. How does this work, and how will it be affected when the host deletes that gem and installs a newer version? Also, what if I need to move to a newer version of

Re: [Radiant] How to Diff Between Two Snapshots

2007-12-02 Thread Daniel Sheppard
First you need to download the snapshot extension (search the mailing list). This creates a static snapshot of your entire site and put it in a folder called 'snapshot'. You'd be better off using the import/export extension, completely shutting out the admin interface on your live site and

Re: [Radiant] Radiant Factory

2007-12-02 Thread Daniel Sheppard
o It would be nice to have a convenient way to access images through the Admin interface and to easily (less typing, yet intuitive) 'markup' the images in the associated pages. On my site, I've written my own text filter that

Re: [Radiant] Archive extension without the dates in the URL

2007-11-28 Thread Daniel Sheppard
Should I simply duplicate the archive extension and then make these modifications in a new extension? Or is there an alternative? You can include the archive extension and then have your own extension that either re-opens the existing archive page type or extend archive page to create a new

Re: [Radiant] Using regex and r:find url....

2007-11-27 Thread Daniel Sheppard
It doesn't seem possible to use regex with the r:find url= tag. Using regex isn't a good fit with the database model - the url is a calculated field - doing lookups on it is expensive. What I am trying to do is recursively find the children of a child. Ie... Have a look at the aggregation

Re: [Radiant] Issue with page updating since 0.6.4

2007-11-21 Thread Daniel Sheppard
I think I can agree with this. It has almost become second nature to change the home page to reset the cache. I have noticed this with changing snippets (which should clear cache - I had asked this earlier) and then clearing the cache. No go! It doesn't update the home page. Well the

Re: [Radiant] Issue with page updating since 0.6.4

2007-11-21 Thread Daniel Sheppard
My cache dir is empty after running Clear Cache. Should the cache.data and cache.yml files have a new time or get deleted too? Ah! Yes, they should be deleted - in fact they shouldn't be created. This was recently fixed on the trunk. Dan. ___

Re: [Radiant] Issue with page updating since 0.6.4

2007-11-21 Thread Daniel Sheppard
Should I delete them? I used the gem install so I guess that I will have to wait or is there an easy way to upgrade to the trunk? --Tom You can update to the trunk with rake radiant:freeze:edge Once it is fixed in the stable build, you can run: rake radiant:unfreeze To go back to using

Re: [Radiant] shards and admin_tree_structure

2007-11-15 Thread Daniel Sheppard
+-Le 15/11/07 17:08 +1100, Daniel Sheppard a dit : | I upgraded my radiant installation from admin_parts to shards | yesterday, and | it works like a charm. | Today, I wanted to give admin_tree_structure a try because | | Have just updated admin_tree_structure to work with the latest

Re: [Radiant] shards and admin_tree_structure

2007-11-15 Thread Daniel Sheppard
I've been looking at the selenium_on_rails plugin to add testing for an extension that I'm working on. I'd love to see not only radiant using selenium but to have it integrate with extensions (after all, they're the source of much of the breakage). Writing good tests might get

Re: [Radiant] shards and admin_tree_structure

2007-11-14 Thread Daniel Sheppard
Today, I wanted to give admin_tree_structure a try because I'm begining to get a bit too much posts on my blog 0:-) It kinda works, but the comments column added by the comments extension on the pages listing is empty now (what a surprise, as both override _node.rhtml) but I can live without

Re: [Radiant] shards and admin_tree_structure

2007-11-14 Thread Daniel Sheppard
I upgraded my radiant installation from admin_parts to shards yesterday, and it works like a charm. Today, I wanted to give admin_tree_structure a try because Have just updated admin_tree_structure to work with the latest core + shards.

Re: [Radiant] shars / admin_parts

2007-11-12 Thread Daniel Sheppard
I have a radiant 0.6.2 setup with admin_parts and a few extensions, which are working just fine. Now, I want to upgrade to 0.6.4, and replace admin_parts with shards. After what I read, the upgrading should go smoothly, what bothers me is the admin_parts - shards migration, I don't see

Re: [Radiant] Extension Testing troubles

2007-11-08 Thread Daniel Sheppard
I'm having trouble writing unit tests for a Radiant extension. I've created fixtures for layouts, pages and page_parts, which are pasted below. In my unit test, I find that if I call: @page = pages(:homepage) the tests work. Whereas if I try: @page = pages(:lazypage) I get an

Re: [Radiant] Feature Request

2007-11-08 Thread Daniel Sheppard
* There is a Clear Cache button on the Pages tab. Is it at all possible to duplicate that button the Snippets and Layout tabs also? Very often when one is experimenting with a new snippet or layout, there's a need to clear cache since the changes do not propagate through

Re: [Radiant] Can I use standard Rails plugin?

2007-11-06 Thread Daniel Sheppard
jsminifier is only a small compressing utility... it clear spacing and unusefull chars only. The real plus about using the plugin I've posted before is that it gzip files on the fly! :D If you have your javascript in a static file, your webserver should be doing the compressing with

Re: [Radiant] New Paginated Archive Extension: What Next?

2007-11-06 Thread Daniel Sheppard
Apparently, Radiant offered no built-in support for pagination of Archive Pages, like what you'd need to set up a blog. So I wrote one, Paginated Archive. I was planning on doing the same but got a little distracted. How have you handled page urls are you doing something like:

Re: [Radiant] Image Caching

2007-11-01 Thread Daniel Sheppard
I am working on an image extension, which stores the images in the database, then resizes them on retrieval. To make this at all usable, I of course need to be able to cache the images. I had hoped to use the Radiant system to do this, but so far have been unable to make this work.

Re: [Radiant] Image Caching

2007-11-01 Thread Daniel Sheppard
Second Question: what am I doing wrong? Can this system even cache images? You're doing nothing wrong, in fact, you're reproducing my By which I meant, you are doing _something_ wrong, just that there's nothing fundamentally wrong with your plan. Dan.

[Radiant] [ANN] AlphabetPage extension

2007-10-30 Thread Daniel Sheppard
My New AlphabetPage Extension is available from: http://soxbox.no-ip.org/radiant/svn/extensions/alphabet_page/ Adds a new page type, AlphabetPage, which works quite similarily to the ArchivePage but insteads breaks down the children into sections alphabetically, rather than by date. If the

Re: [Radiant] [PREVIEW] Snapshot extension: serve Radiant sitesstatically

2007-10-28 Thread Daniel Sheppard
I'm glad that the extension is useful. I take note of the virtual page problem you comment and will look at it before releasing the first official version of the extension. I don't have experience with virtual pages so may be i ask you for support. A good opportunity to

Re: [Radiant] Checking for other extensions and gems

2007-10-28 Thread Daniel Sheppard
raise 'blah requires the installation of the Shards extension' unless defined?(ShardsExtension) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Parrish Sent: Monday, 29 October 2007 4:03 PM To: radiant@lists.radiantcms.org Subject:

Re: [Radiant] Replacing Radius

2007-10-19 Thread Daniel Sheppard
Just read through that pdf. I'm mainly in agreement with his commentary of the current field of template engines - though he does lose me a bit on his 'StringTemplate is totally the best thing ever' conclusions (his alternating table row colours example (9.2) especially looks like a horribly

Re: [Radiant] Detecting Page Changes

2007-10-18 Thread Daniel Sheppard
I wish there was a per page cache time property. That way dynamic pages had shorter cache times. Perhaps tags on page would adjust the cache time setting for the page. Just set response.cache_timeout (to a value in seconds) from your page model. Dan.

Re: [Radiant] Detecting Page Changes

2007-10-18 Thread Daniel Sheppard
I wish there was a per page cache time property. That way dynamic pages had shorter cache times. Perhaps tags on page would adjust the cache time setting for the page. Just set response.cache_timeout (to a value in seconds) from your page model. Dan.

[Radiant] Replacing Radius

2007-10-18 Thread Daniel Sheppard
I would suggest to add the parameters individually to the r:snippet tag, and to allow a body to be defined: r:snippet name=rounded-box class=whatever bg-color=blue This is a parametrized snippet... /r Basically, featurewise it looks like what you're after is

Re: [Radiant] conditional display of image

2007-10-12 Thread Daniel Sheppard
On Fri, 12 Oct 2007 15:26:40 +0200 Mathieu Arnold [EMAIL PROTECTED] wrote: +-le 12.10.2007 13:37:30 +0200, Aitor Garay-Romero a dit : | The strange thing, it that I don't always get a request object, and I'm | wondering if there could be a better way to do that, the main point being | is

Re: [Radiant] TinyMCE

2007-10-11 Thread Daniel Sheppard
On Thu, 11 Oct 2007 16:11:19 -0500 Ryan Heneise [EMAIL PROTECTED] wrote: Forgot to mention... the rich_text extension requires the admin_parts extension: http://soxbox.no-ip.org/radiant/svn/extensions/admin_parts/ I would advise moving your extensions away from admin_parts and using shards. I

Re: [Radiant] Detecting Page Changes

2007-10-10 Thread Daniel Sheppard
I'm trying to figure out a way to track whenever a given page's rendered output may have changed. I was doing some thinking about this recently, but haven't had a go at implementing yet. My basic idea was: Add a listener that hooks into after_initialize on page, snippet and layout.

Re: [Radiant] updating public

2007-10-10 Thread Daniel Sheppard
I saw in the changelog that Radiant 0.6.3 is using the 1.5.0 release of Prototype, but updating the radiant gem does not update the javascripts directory. Should there be a rake:public:update task or something like that? Running the radiant command on the directory will overwrite any

Re: [Radiant] Issues with the new tree admin extension and with the admin tree expansion

2007-10-07 Thread Daniel Sheppard
The _node.rhtml file from the extension is definitely being loaded, I made a minor change and it showed up. Not sure exactly what is happening here, but I would love to use this extension, so let's try to get this sorted out. I see the problem now - I'd made a change to the javascript

Re: [Radiant] Issues with the new tree admin extension and with the admin tree expansion

2007-10-07 Thread Daniel Sheppard
The _node.rhtml file from the extension is definitely being loaded, I made a minor change and it showed up. Not sure exactly what is happening here, but I would love to use this extension, so let's try to get this sorted out. I see the problem now - I'd made a change to the

Re: [Radiant] Issues with the new tree admin extension and with the admin tree expansion

2007-10-06 Thread Daniel Sheppard
Sean, many thanks for your prompt reply. I froze my radiant installation but I get a sort of recursive admin tree (see the attached pdf file: http://pastie.caboo.se/104477 ). Is there something I'm missing? Are you running any other extensions? If there's another extension that is

Re: [Radiant] how to install an extension?

2007-10-05 Thread Daniel Sheppard
Good to know, but in fact there is a external_rss/external_rss_extension.rb file that does define ExternalRssExtension. So that file is located at: {RAILS_ROOT}/vendor/extensions/external_rss/external_rss_extension.rb Is that correct? Are the permissions on that directory correct?

Re: [Radiant] Extension load order

2007-09-26 Thread Daniel Sheppard
Rails has just changed their mechanism for plugin loading: http://ryandaigle.com/articles/2007/9/24/what-s-new-in-edge-rails-specify-plugin-load-order Basically, you specify the load order of plugins that you care about and then just add the :all symbol to substitute in all the remaining

[Radiant] Extension load order

2007-09-25 Thread Daniel Sheppard
Rails has just changed their mechanism for plugin loading: http://ryandaigle.com/articles/2007/9/24/what-s-new-in-edge-rails-specify-plugin-load-order Basically, you specify the load order of plugins that you care about and then just add the :all symbol to substitute in all the remaining

[Radiant] Updated benchmarks

2007-09-20 Thread Daniel Sheppard
I decided to do a quick run at writing a mongrel handler to do the work of the radiant cache - turns out there is zero performance gain in doing so. Modifying the mongrel handler to serve up html files using xsendfile, I get: 2014 bytes534.96 [#/sec] (mean)

Re: [Radiant] MySQL SystemStackError: stack level too deep:

2007-09-19 Thread Daniel Sheppard
stack level too deep SystemStackError: stack level too deep: SELECT * FROM page_parts WHERE (page_parts.page_id = 6) AND (page_parts.`name` = 'extended') LIMIT 1 Do you have any extensions installed? They could be breaking things. If not, It could actually be that the stack level is too

Re: [Radiant] Caching error as well as possibly memory leak?

2007-09-18 Thread Daniel Sheppard
That is a bit of a weird trace. I can't quite follow how a trace that looked like that could happen (I don't see how the inflector would want to get involved during the file opening process). It's falling over during the writing of the .yml file (line 169), I'm guessing that's due to multiple

Re: [Radiant] Caching error as well as possibly memory leak?

2007-09-17 Thread Daniel Sheppard
NoMethodError (undefined method `[]' for false:FalseClass): /vendor/radiant/app/models/response_cache.rb:65:in `read_metadata' /vendor/radiant/app/models/response_cache.rb:71:in Just checked in a change that will fix it from breaking your site. Looks like either a process was falling

[Radiant] Giving more structure to the admin tree

2007-09-13 Thread Daniel Sheppard
-Original Message- From: Daniel Sheppard Sent: Friday, 14 September 2007 10:12 AM Subject: Re: [Radiant] 12,000 articles in a Radiant site? If you've got something like my situation, where you're using something like ArchivePage and letting it have a few hundred children

Re: [Radiant] Trouble with inheritance in ArchivePage

2007-08-29 Thread Daniel Sheppard
I'm developing an extension with radiant 0.6.2 as a gem. In the extension I generated a page thats inherits from ArchivePage, like this: class CategoryPage ArchivePage end And put it in activate like this: def activate CategoryPage end There's no reason for that not to

Re: [Radiant] Trouble with inheritance in ArchivePage

2007-08-29 Thread Daniel Sheppard
Is there any content in those files beyond what you've mentioned? No, the contents is exact what I wrote here(copy and paste ;) Can you try it in your workspace? # cat new_extension_extension.rb class NewExtensionExtension Radiant::Extension def activate CategoryPage end end #

Re: [Radiant] caching

2007-07-09 Thread Daniel Sheppard
I have tried to track this bug with Aptana debugger on Windows. I'm using Radiant 0.6.2 (gem) with WEBrick server on my development machine. The problem is: ResponseCache instance is not living during whole server lifespan. It is recreated on every page request. Yes, the ResponseCache

Re: [Radiant] Deploying Radiant on Debian with Apache 2 and fastcgi

2007-07-05 Thread Daniel Sheppard
Check your apache error log and see where it is looking to get load your stylesheets from. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ouroz Ouroz Sent: Friday, 6 July 2007 1:34 AM To: radiant@lists.radiantcms.org Subject: [Radiant] Deploying

Re: [Radiant] Virtual Machine for Radiant

2007-06-29 Thread Daniel Sheppard
128MB is probably too little, unless you're planning on getting away with a single mongrel running the site. If you include imagemagick-based image manipulation of any kind, that 128MB might be pushing it too. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

Re: [Radiant] Virtual Machine for Radiant

2007-06-29 Thread Daniel Sheppard
My preferred way to go about it is to use mongrel behind apache and following instructions from http://mongrel.rubyforge.org/docs/apache.html But that's mainly because I feel very confortable with both mongrel and apache and I tend to be installing on fairly hefty machines. Fastcgi, a direct

Re: [Radiant] Problem editing a page with 0.6.2 (gem)

2007-06-26 Thread Daniel Sheppard
From your trace, I'm guessing that the lock column isn't being initialized to a default value of zero, and null values are screwing it up. What db are you using? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ollivier Robert Sent: Tuesday, 26

Re: [Radiant] Images again

2007-06-05 Thread Daniel Sheppard
What are the core plans for a new image manager? I have one I wrote, there is Sean's and then the Gallery extension, but it seems like there should be some sort of official plugin. None these (mine for sure!) are really ready for prime time or all they all that they could be. This

Re: [Radiant] Internationalization examples

2007-05-30 Thread Daniel Sheppard
We've went over a couple of options and for managability we've decided on creating separate default page parts for each language and then overriding find_page_by_url in our extension to select the right content to render based upon the browser language type. John implemented Ruby

Re: [Radiant] Installation issue

2007-05-30 Thread Daniel Sheppard
Some more detail would help. If you're going to reference another message, it would help if you replied to the same thread, and regardless you should post your error message - 'the same issue' often isn't. Have you created the database and configured your database.yml file correctly?

Re: [Radiant] Installation issue

2007-05-30 Thread Daniel Sheppard
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Sheppard Sent: Thursday, 31 May 2007 1:20 PM To: radiant@lists.radiantcms.org Subject: Re: [Radiant] Installation issue Some more detail would help. If you're going to reference another message, it would help if you replied

Re: [Radiant] Installation issue

2007-05-30 Thread Daniel Sheppard
Can you send your database.yml file? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Williams Sent: Thursday, 31 May 2007 2:17 PM To: radiant@lists.radiantcms.org Subject: Re: [Radiant] Installation issue My apologies. The issue I am

Re: [Radiant] Installation issue

2007-05-30 Thread Daniel Sheppard
. . .upon running 'rake development db:migrate', I recieve: I assume you meant rake development db:bootstrap Is that what you actually ran? or just rake db:bootstrap? did you have any RAILS_ENV set? Dan ___ Radiant mailing list Post:

Re: [Radiant] DB2 support in radiant. Patch proposal

2007-05-28 Thread Daniel Sheppard
I am interested in using it in rails. I propose the following patch to radiant/app/models/archive_finder.rb in order to support db2 specific syntax for date fields: def extract(part, field) Oh god... e. In the interests of sanity, lets pretend that radiant never had a

Re: [Radiant] DB2 support in radiant. Patch proposal

2007-05-28 Thread Daniel Sheppard
Daniel Sheppard wrote: In the interests of sanity, lets pretend that radiant never had a switch based on ActiveRecord::Base.connection.adapter_name. http://dev.radiantcms.org/radiant/changeset/447 Did this change preserve existing functionality? Yes - all tests pass, and unless

Re: [Radiant] DB2 support in radiant. Patch proposal

2007-05-28 Thread Daniel Sheppard
IIRC, that 'extract' method that was removed was designed to deal with sqlite3. Yes, but it was only necessary because the original code was doing the search in a platform specific way by relying on functions to transform a date into a string and perform a string comparison. The new

Re: [Radiant] Using Radiant to handle part of a site?

2007-05-17 Thread Daniel Sheppard
app on top of the Radiant site. That is, I'm going to (attempt to) use Apache mod_rewrite to properly dispatch incoming URLs to the right application: RadiantCMS or CustomRailsApp. I'm going to attempt to make the pages in the CustomRailsApp look like the pages found in Radiant. I'm

Re: [Radiant] automated page building

2007-05-16 Thread Daniel Sheppard
child.parts should be an array -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Saji Njarackalazhikam Hameed Sent: Wednesday, 16 May 2007 4:57 PM To: radiant@lists.radiantcms.org Subject: Re: [Radiant] automated page building Sean, Thanks..

Re: [Radiant] automated page building

2007-05-15 Thread Daniel Sheppard
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.content =

Re: [Radiant] accessing params[] inside a tag

2007-05-15 Thread Daniel Sheppard
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 =

Re: [Radiant] Any limits for Radiant

2007-05-14 Thread Daniel Sheppard
Radiant is a no-fluff, open source content management system designed for small teams. Just wondering if the phrase designed for small teams implies any limit for pages in Radiant. I am worried if I can use it for creating heavy-duty web-sites, serving 10 of 1000's of pages. designed for

Re: [Radiant] url parameters

2007-05-13 Thread Daniel Sheppard
s it possible to capture query parameters and use them inside tags? For example if I have a URL like this http://www.mysite.com/books?lang=it can I caputre the lang parameter and pass it to some tags? Having a page made with to parts it and eng I could decide wiche part show in a way

Re: [Radiant] Radiant + Apache

2007-05-13 Thread Daniel Sheppard
Search google for installation a rails app on apache. There's nothing special about radiant. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Saji Njarackalazhikam Hameed Sent: Monday, 14 May 2007 1:25 PM To: radiant@lists.radiantcms.org Subject:

Re: [Radiant] Fixture loading from multiple dirs

2007-05-10 Thread Daniel Sheppard
Yes, I have used it. In fact, I wrote that patch/extension. Are you going to be at RailsConf? Maybe we can meet up and hack on some stuff. No rails conf for me... Flights from Australia are a bit too expensive. I think the main problem is that it changes the behaviour of an existing method,

Re: [Radiant] Fixture loading from multiple dirs

2007-05-10 Thread Daniel Sheppard
to the create_fixtures. Sean On 5/10/07, Daniel Sheppard [EMAIL PROTECTED] wrote: Yes, I have used it. In fact, I wrote that patch/extension. Are you going to be at RailsConf? Maybe we can meet up and hack on some stuff. No rails conf for me... Flights from Australia are a bit too

Re: [Radiant] More Radiant on Dreamhost issues (Memory Leak?)

2007-05-10 Thread Daniel Sheppard
Well, I got to talking to a Dreamhost rep, saying that my 'website' is leaking memory badly. I found it hard to believe, but with my site issues steadily worsening, I checked out ps aux and logged some rough stats. I know my host kills when I get to a total of 200MB memory usage, or

Re: [Radiant] Asset Managing Extension - Page Attributes - Edit rbfiles?

2007-05-10 Thread Daniel Sheppard
page_attributes is not sean's extension - it's not even an asset management extension afaik. You're after page_attachments: http://seancribbs.com/svn/rails/plugins/extensions/page_attachments/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Victor

Re: [Radiant] page_attachments extension

2007-04-27 Thread Daniel Sheppard
If you're using my extension (from soxbox.no-ip.org), you need to install the admin_parts extension also. Otherwise, can't help you. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Gruner Sent: Friday, 27 April 2007 5:27 PM To: radiant@lists.radiantcms.org

Re: [Radiant] Need someone to confirm a bug with sqlite3 and mental

2007-04-26 Thread Daniel Sheppard
I have the same issue here. Even with sqlite3-ruby 1.2.1. Any solutions yet? radiant (0.6.0) sqlite3-ruby (1.2.1) sqlite 3.3.13 It's a rails issue - the version of rails that you're using is the most important one. You should be running 1.2.3 (that's what radiant ships with) but you

Re: [Radiant] Need someone to confirm a bug with sqlite3 and mental

2007-04-26 Thread Daniel Sheppard
Thanks for your reply. Rails::VERSION::STRING from script/console says 1.2.3. I'm using the rails version radiant ships with (no vendor/rails). In that case are you sure you're seeing the same problem? What do you get when you run .schema in sqlite? Dan.

Re: [Radiant] Need someone to confirm a bug with sqlite3 and mental

2007-04-26 Thread Daniel Sheppard
In that case are you sure you're seeing the same problem? What do you get when you run .schema in sqlite? http://paste-bin.com/11503 I'm feeling pretty clueless here. Looks like you're not running windows. The original bug was only (afaik) experienced in windows. Maybe the bug still

Re: [Radiant] Optimistic Locking

2007-04-23 Thread Daniel Sheppard
In my instance, it doesn't show the changes I just made, it shows the changes that were made to the database (by someone else); the changes I made are lost. Dan, do you have time to look into this? I'm no ruby/rails expert yet, but I'm happy to help. I'm going to familiarize

Re: [Radiant] Suggestion Textile rendering

2007-04-19 Thread Daniel Sheppard
Agreed - the only time when my users have ever had the need for line breaks was when they were quoting lyrics/poetry, which is a rare enough occurrence that bring is fine. Sounds to me like a typical application of pre-formatted text pre. Certainly, the default fixed width style would

Re: [Radiant] Optimistic Locking

2007-04-19 Thread Daniel Sheppard
If a page has been edited, it warns you of the problem, but it wipes your changes and displays what is in the database. In my mind, it should warn you, but not remove any change that you made. It warns you, and displays the changes that you just made.. The changes are there, it's just

Re: [Radiant] Very unique idea: Extension to protect from slashdoteffect?

2007-04-18 Thread Daniel Sheppard
I was sitting here thinking; While I will never be slashdotted (Or similar violent surge scenarios), there is a good chance that while Radiant gains traction, that someone somewhere will end up being on the blunt end of a slashdotting. Now, I've been brainstorming on The wikipedia page

Re: [Radiant] Suggestion Textile rendering

2007-04-18 Thread Daniel Sheppard
My users are constantly confused by putting breaks into their text and getting no breaks on the final page. From a typographic point of view I don't see the need for line breaks, but maybe you can fill me in. Agreed - the only time when my users have ever had the need for line breaks

Re: [Radiant] Missing Site Banner From Child Pages Radiant Mental

2007-04-16 Thread Daniel Sheppard
Your banner isn't displaying because you're using relative links. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Minton Sent: Monday, 16 April 2007 12:38 PM To: Radiant Subject: [Radiant] Missing Site Banner From Child Pages Radiant Mental Using Radiant

Re: [Radiant] Awstats Integration with Radiant CMS

2007-04-11 Thread Daniel Sheppard
You need a RewriteCond so that the awstats path doesn't get rewritten. google awstats rails http://forum.dreamhosters.com/troubleshooting/51061-Installing-Awstats-on-a-Rails-Site.htm _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Minton Sent: Thursday, 12

Re: [Radiant] Radiant replace Pages with Abstract Content Model

2007-03-29 Thread Daniel Sheppard
I'm not sure that I agree. My concern with Oliver's patch (which has been suggested at least once before) is that it over complicates the model. I'm a little leary of creating a complex inheritance heirarchy for Radiant. Yes pages and images and redirects have URLs, but beyond that they

Re: [Radiant] Radiant replace Pages with Abstract Content Model

2007-03-28 Thread Daniel Sheppard
Something I have missed in Radiant, since I have first used it (pre-0.5), is a uniform representation of content. I personally find the Page model clever, but rather strict as online content is rarely limited to pages, page parts and layouts. A content management system should be able

Re: [Radiant] Radiant as a news a bit more improved

2007-03-26 Thread Daniel Sheppard
You can do what many people do with Radiant in such cases: use page parts. Simply create a new page part named source and put relevant information there. After that you can render this information where and when you see fit. Ok, I understood. But are there a way to make a new

Re: [Radiant] migrating from 0.5.2 to 0.6rc2

2007-03-21 Thread Daniel Sheppard
I normally fix migration validation problems by supplying a basic implementation within the migration itself - usually just class Page ActiveRecord::Base end with maybe an association or two. Using the actual models for migrations tends to lead to problems down the road. _ From:

[Radiant] Conflicting updates

2007-03-19 Thread Daniel Sheppard
Just had my first instance of conflicting updates - I edited a page while somebody else was editing it too without realising it - luckily in this instance we were both trying to do the same thing, but this could lead to data loss without warning. Time for some big red flashing warning lights.

Re: [Radiant] Hide pages/snippets/layouts admin tabs?

2007-03-18 Thread Daniel Sheppard
Restrict the pages tab to users with the dev role: admin.tabs['Pages'].visibility = [:dev] Dan. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karl Doody Sent: Monday, 19 March 2007 10:37 AM To: radiant@lists.radiantcms.org Subject: [Radiant]

Re: [Radiant] Alias Page Extension

2007-03-13 Thread Daniel Sheppard
(Note that I also had to have a custom index page so that it could look at my custom file not found type). Wouldn't something like this in core be better? (COMPLETELY UNTESTED) - 8 - Index: page.rb === ---

Re: [Radiant] Alias Page Extension

2007-03-13 Thread Daniel Sheppard
I've taken the approach of having a separate table mapping urls to page numbers and a file not found behaviour that performs redirects for old mappings (I also trawl through my server logs for 404s and correct any repeated spelling mistakes / truncations) - I've left it as a

Re: [Radiant] Alias Page Extension

2007-03-13 Thread Daniel Sheppard
Are you sure that's what subclasses_of does? I know that there's definitely a method on ActiveRecord::Base that keeps track of subclasses as their created - maybe it's called something else - descendants maybe? - I can't remember, but I'm pretty sure it exists. lounge groggy #

Re: [Radiant] Atom Feeds

2007-03-05 Thread Daniel Sheppard
Has anyone used Radiant to produce Atom feeds? If so what code did you use? I've got a Page type that exposes all the data needed for an atom feed. http://soxbox.no-ip.org/radiant/svn/extensions/x_groggy/app/models/atom_page.rb There's a few hard-coded things in there - Specifically in the

Re: [Radiant] Atom Feeds

2007-03-05 Thread Daniel Sheppard
content type=htmlr:escape_htmlr:content // r:escape_html/content Your content tag should have mode=escaped if it's going to contain escaped html. Dan. ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search:

[Radiant] Smart Quotes

2007-03-05 Thread Daniel Sheppard
Just a little hint for those with the same problem: Most of the other authors on http://www.thegroggysquirrel.com/ write up their articles in Microsoft Word before bringing them to the site (so that they can spell/grammar check in a comfortable environment). Problem is that when it comes to

Re: [Radiant] Two new extensions - WYSIWYG editor and Maruku filter

2007-03-01 Thread Daniel Sheppard
Just had a little bit of a poke around in their demo site. What ideas are you thinking we should borrow? On 2/26/07, Nathan Wright [EMAIL PROTECTED] wrote: I'm hoping that someone makes an asset manager that's so well thought out and executed that John looks at it and says Damn, we've got to

[Radiant] 304 Caching

2007-02-27 Thread Daniel Sheppard
I checked in a change last night (http://dev.radiantcms.org/radiant/changeset/348) to make cached responses send out a 'Last-Modified' header and send back a 304 if the 'If-Modified-Since' header is set on the request. I wasn't expecting it to really achieve much saving on pages with just 5 minute

Re: [Radiant] Ideas for reimplementation of radiant caching

2007-02-26 Thread Daniel Sheppard
Right. Caching the complete url in the database would help, but would not work in all cases, i.e. virtual pages that represent multiple urls. Perhaps we should try this and get some metrics? I was thinking that there would be a Page#calculate_urls method that would by default just

  1   2   >