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 A

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

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

2007-03-27 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

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 wa

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:

Re: [Radiant] caching

2007-03-21 Thread Daniel Sheppard
> > In production mode, Radiant uses page level caching right? > > > > Settings (environment.rb and environments/production.rb) > look like page level > > caching, but I thought page level caching wrote files to > the public/ directory? > > I'm confused on the pages being cached as .yml in th

Re: [Radiant] Conflicting updates

2007-03-19 Thread Daniel Sheppard
> >> All this assumes that we aren't going down the road of: User > >> can't even open the page because user B has that page locked > >> (opened). > > > > That's really not possible over http (well, possible, but not > > reliably so). > > Well, it is possible using pessimistic locking (HTTP's

Re: [Radiant] Conflicting updates

2007-03-19 Thread Daniel Sheppard
> 1.) User is notified of conflict. Must call/IM/email other user to > discuss their changes to make a decision. User makes the > choice to keep his or other user's work only. > > 3.) User is notified of conflict. The other user wins. The only > option is to copy their work to somewhere a

[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. I

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: [Radian

Re: [Radiant] [ANN] Launched my Radiant site

2007-03-14 Thread Daniel Sheppard
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of keith > Sent: Thursday, 15 March 2007 11:11 AM > To: radiant@lists.radiantcms.org > Subject: Re: [Radiant] [ANN] Launched my Radiant site > > > Nice job - how did you get the nav to highlight the curr

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. > > loung

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 # ruby scr

Re: [Radiant] Alias Page Extension

2007-03-13 Thread Daniel Sheppard
> True, and subclasses_of is a bit of a slow operation (iterates over > every class in ObjectSpace). Might be better to have a registration > method instead. > > class MyNotFoundPage < Page > not_found_class > end Are you sure that's what subclasses_of does? I know that there's definitel

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

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-12 Thread Daniel Sheppard
> Thanks Brian, > > That is unfortunate for me, I was looking for the reverse :( > > I hoped to find an extension that would re-direct to another > page so I can > maintain some URLs when I migrate to Radiant. > > Regards, > Erik. I've taken the approach of having a separate table mapping

Re: [Radiant] Atom Feeds

2007-03-05 Thread Daniel Sheppard
> Are you sure about this? Since ATOM uses ids to mark the each entry, > it wouldn't care if two entries are updated at the exact same time. > You just need to make sure to have two unique ids...granted if you are > using a time based id mechanism, then I would say you need to watch > out for this

[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 cop

Re: [Radiant] Atom Feeds

2007-03-05 Thread Daniel Sheppard
> r:escape_html> 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: http://radiantcms.org/mailing-list/search/ Site: http://lists.radia

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] 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

Re: [Radiant] Ideas for reimplementation of radiant caching

2007-02-25 Thread Daniel Sheppard
Maybe I need to dump my assumptions for a moment. Knowing the page that we're about to be rendering from the cache would be a useful thing. Why can't we do it? Because the performance of Page.find_by_url sucks. I talked a little bit about that suckage a while ago, and somebody (Adam? Sean?) sugges

Re: [Radiant] Ideas for reimplementation of radiant caching

2007-02-25 Thread Daniel Sheppard
> H... does rails give you access to the session cookie before it > gets sent off in the response? Perhaps the site_controller could be > changed to clear out that cookie if the request is going to be cached - > giving a warning / raising an exception if the session is not empty. > You'd st

Re: [Radiant] Ideas for reimplementation of radiant caching

2007-02-25 Thread Daniel Sheppard
OK. Point taken. I was really just putting my two cents in on a subject that's important to me personally... ie user variable content and ACLs. It would be nice to do something like (I haven't actually looked at the code, my bad): page = Page.new page.headers

Re: [Radiant] Ideas for reimplementation of radiant caching

2007-02-25 Thread Daniel Sheppard
What I was suggesting wasn't that Page.find_by_url be called on every page request The original email was about changes to the caching mechanism... My suggestion, working from your outline: a) check for the existance of /cache/.yml b) check for the validity of /c

Re: [Radiant] Buckets, Page Types

2007-02-25 Thread Daniel Sheppard
> Radiant provides a great mechanism for structured data - everything IS > in a global bucket that you can reference from any other page - that > bucket is providing a structure. Further on that, my part_attachments extension already lets you reference assets globally: or There would be no

Re: [Radiant] Buckets, Page Types

2007-02-25 Thread Daniel Sheppard
> For example, it I were using Radiant for a product site I > might want the > image of the box product on the front page as well as the > product comparison > page and the purchase page. Having to upload multiple copies > of the same > image would be both wasteful and annoying. Using an image

Re: [Radiant] Buckets, Page Types

2007-02-25 Thread Daniel Sheppard
> No user wants to hear about DRY. Users like another Ruby tenant... > "it does what you would expect." They expect that if they're editing > a page, they can add an image from that page. (Of course, they also > expect WYSIWYG, and that the image will be automatically resized and > appear in the

Re: [Radiant] API through XML-RPC (was: Re: JS-free view ? (newcomer))

2007-02-22 Thread Daniel Sheppard
> I finally think that a good solution would be to provide an API > through XML-RPC, like others already do. This would be real > luxury :-). Maybe it's non-trivial, but at least I won't be alone to > use it... so hopefully not alone for achieving it! I'm actually quite interested in implemen

Re: [Radiant] Ideas for reimplementation of radiant caching

2007-02-22 Thread Daniel Sheppard
> I know this is a little late (email from last month)... but > in regard > to caching, isn't the major problem with implementing sessions in > Radiant that the headers are cached as well? This seems to be over > optimisation... Just cache the page text and let the headers be > generated

Re: [Radiant] Facets branch extensibiliy extended

2007-02-22 Thread Daniel Sheppard
> My use case for needing more than just a hook on > page.attributes= is for > when page has_many > > My extension adds: > has_many :page_attributes, :class_name => 'PageAttribute', > :dependent => :destroy > > I need to capture each page_attribute that was added or > deleted, similar

Re: [Radiant] Facets branch extensibiliy extended

2007-02-22 Thread Daniel Sheppard
> How have I specifically hurt the simple use cases? Is there some > compromise we could make that would still give me a hook to have > multiple editors? > > My code may be a little less elegant, but I don't think it's > obtrusive. I think it's mainly because I can't see the thought processes

Re: [Radiant] Facets branch extensibiliy extended

2007-02-21 Thread Daniel Sheppard
I finally got the chance to have a quick look at your changes. I've only looked at the code, not run it, but in summary it looks like what you want is to have a variety of different interfaces with which to edit a page - potentially you'd want to look at the same page using two different editors?

Re: [Radiant] Defining new page types in an extension

2007-02-19 Thread Daniel Sheppard
I reference my page extensions during the load of the extension: http://soxbox.no-ip.org/radiant/svn/extensions/x_groggy/x_groggy_extensi on.rb > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Jacob Burkhart > Sent: Tuesday, 20 February 2007 4:3

Re: [Radiant] Authentication for one Section of Site

2007-02-14 Thread Daniel Sheppard
> I guess having sessions off provides better performance? > > I think sessions would be needed for doing any sort or > ecomm/loggedin/user type extensions. > > Guess I'll got with basic auth for now. Yes, it would provide slightly better performance, but the main problem with sessions is that

Re: [Radiant] Including title tags in

2007-02-14 Thread Daniel Sheppard
.any ideas? -s On 2/14/07, Daniel Sheppard <[EMAIL PROTECTED]> wrote: This will be the title of the link Is that what you're asking? An empty tag will display the tit

Re: [Radiant] Question: 0.6.0 has caching?

2007-02-14 Thread Daniel Sheppard
> Well all, I'm back ;) > > Anyways, just a quick question. I remember discussion about caching > still being hashed out for 0.6.0. My question is, is that I > want to move > to 0.6.0, but my concern is caching. I have a LOT of traffic now and > don't think my host would be thrilled with peggi

Re: [Radiant] Including title tags in

2007-02-14 Thread Daniel Sheppard
This will be the title of the link Is that what you're asking? An empty tag will display the title of the linked page. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sean Johnson Sent: Thursday, 15 February 2007 10:00 AM

Re: [Radiant] (Finally) Launching my Radiant site

2007-02-14 Thread Daniel Sheppard
> Hey Daniel, > > I'm curious, what's your hosting setup? I've got a computer sitting next to my television (that I use for mythtv) running Gentoo - AMD Sempron with 1gb ram. I've got Apache 2.2 with mod_proxy_balancer redirecting requests to a cluster of 3 mongrel process. Runs over an ADSL conn

[Radiant] (Finally) Launching my Radiant site

2007-02-13 Thread Daniel Sheppard
Over the weekend I finally got happy enough with radiant and my extensions to go live: http://www.thegroggysquirrel.com/ I'm probably too lazy to actually write up anything I did to get it going, but you're completely free to have a look through my extension: http://soxbox.no-ip.org/radiant/svn/

[Radiant] .png images in AssetManager

2007-02-09 Thread Daniel Sheppard
The png images in the part_attachments extension are in the vendor/extensions/part_attachments/images directory - you need to copy those to the public/images directory manually. ___ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http:

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

2007-02-07 Thread Daniel Sheppard
> I've been trying to get this working for two days now. If I get myself > a copy of mental (both from the Gem and from SVN) and try to use > sqlite3 as my database, the rake db:bootstrap script doesn't seem to > create a user. I experience your problem on my windows box, but there's a deeper unde

Re: [Radiant] My notes/ideas on Page editor extensions

2007-02-07 Thread Daniel Sheppard
> Also thinking about a possible interface for extensions to use: > > admin.page_edit_parts.remove 'Name' > > admin.page_edit_parts.add 'Name', 'partial_name', optionss > > with options: > :after => 'other_Name' > :before => 'other_Name' >

Re: [Radiant] My notes/ideas on Page editor extensions

2007-02-07 Thread Daniel Sheppard
> Just so you know John I have an app that needs to store meta > tag stuff > like keyword, description, and some other custom fields with > each page > -- much like Dan does. I suspect this is a *common* need (except > different folks will need different fields). The way I do thinks is ha

Re: [Radiant] My notes/ideas on Page editor extensions

2007-02-07 Thread Daniel Sheppard
> > I think the first step needs to be breaking down the > existing parts of > > the edit page into partials so that the actual edit page > itself contains > > barely anything except a list of includes. From that point, > you could do > > a lot of editing of the interface without getting out of

Re: [Radiant] My notes/ideas on Page editor extensions

2007-02-07 Thread Daniel Sheppard
> > I think the first step needs to be breaking down the > existing parts of > > the edit page into partials so that the actual edit page > itself contains > > barely anything except a list of includes. From that point, > you could do > > a lot of editing of the interface without getting out of

Re: [Radiant] My notes/ideas on Page editor extensions

2007-02-07 Thread Daniel Sheppard
> I really mean to write this for myself. But if I write it here then > maybe it will be of use to someone else as well. > > I've been working on moving the additions I made to Corex into > extensions for Mental. I've added a lot of functionality (and plan to > add more). To the page edit screen

Re: [Radiant] Can you use controllers/views within a tag

2007-02-06 Thread Daniel Sheppard
Oh, you need to explicitely require 'application' to load the application controller - The application controller is not loaded until after the extensions, which means that any reference to a controller will be unable to load it's superclass (as the class is named ApplicationController, but it is l

Re: [Radiant] Metal vs. 0.6.0

2007-02-05 Thread Daniel Sheppard
> Apparently, I am using application mode of deployment, but is there a > best know method as when to deploy using application mode versus > instance mode? > > What are the pros/cons of each? Instance mode is for when you want to install multiple radiant sites on the one server and keep them a

Re: [Radiant] problem getting radiant-mental with custom extensionworking on host railsplayground

2007-02-05 Thread Daniel Sheppard
> So, it looks like I need to add the Admin:: to my controller in my > extension for production only. But, still not functional until I > copied my views from the extension directory to the main app > directory. > > This is a complete hack, but it works as far as I can see...now is > there an exp

Re: [Radiant] [mental] List of dependencies for extensions?

2007-02-05 Thread Daniel Sheppard
> In fact, I'll just fix my repository now - I'll make another blog post > with installation instructions and get back to you. Instructions for installing part_attachments: http://soxbox.no-ip.org/radiant/articles/2007/02/06/installing-the-part_ attachments-extension/ Dan.

Re: [Radiant] [mental] List of dependencies for extensions?

2007-02-05 Thread Daniel Sheppard
> I'm trying to install mental (that works fine) but want to use the > part_assets extensions. I've already found that act_as_attachements > wants RMagick to run but apparently it needs more :-( > > Complete traceback to follow. Any idea from anyone? Your problem is that you've downloaded acts_

Re: [Radiant] Can you use controllers/views within a tag

2007-02-04 Thread Daniel Sheppard
> > Displays the list of mytag available. } > > tag "mytag" do |tag| > > render(:controller => MyController, :action => MyAction) > > end > > I wish it was this easy. This is just off the top of my head but: class EasyControllerExtension def activate class << SiteController d

Re: [Radiant] Behaviors suddenly missing from select field

2007-02-01 Thread Daniel Sheppard
EMAIL PROTECTED] On Behalf Of > Daniel Waite > Sent: Friday, 2 February 2007 4:57 PM > To: radiant@lists.radiantcms.org > Subject: Re: [Radiant] Behaviors suddenly missing from select field > > Daniel Sheppard wrote: > > I haven't come across your specific issue, but kno

Re: [Radiant] Behaviors suddenly missing from select field

2007-02-01 Thread Daniel Sheppard
> I see. When you say 1.2 _doesn't_ reload, what do you mean? Why does > _not_ reloading make Radiant work, but reloading breaks it? During initialization, the Behaviour class is loaded and all the subclasses also get loaded. When a subclass is loaded, it registers itself with the parent class.

Re: [Radiant] Behaviors suddenly missing from select field

2007-02-01 Thread Daniel Sheppard
> FUN! I changed my environment file to use 1.1.6 and it works again. > > I triple-checked my production environment and it's using 1.2.1. > > The biggest difference I see is that I'm on Windows (cry) and my > production server runs Linux. No, the biggest difference is that one is in producti

Re: [Radiant] database locking

2007-02-01 Thread Daniel Sheppard
I think it might actually be specific to the view/controller rather than the model. When modifying the page from elsewhere, you should either just do the modification without regard to locking or database locking could be used. But either/or. From: [EMAI

Re: [Radiant] Examples for advanced radiant extensions ?

2007-02-01 Thread Daniel Sheppard
> But since there is no real documentation for writing extensions, I am > searching for existing extensions to learn from them. So my > question is: > > Whats the most advanced current extension for Radiant ? I don't know about 'most advanced', but the extension for the website I'm currently wo

Re: [Radiant] Access to request object from within tags (answer?)

2007-02-01 Thread Daniel Sheppard
> require "app/models/page_context" > class PageContext > alias initialize_before_reformhaz initialize > > def initialize(page) > initialize_before_reformhaz(page) > globals.request = page.request > end > end > > in my reformhaz_extansion.rb > > I got > > SystemStackError in Sit

Re: [Radiant] Tags and attachments / repository

2007-02-01 Thread Daniel Sheppard
> Another approach would be to allow simple attachments to pages in > some way, and having access to the list of attachments as a Radiant > tag? Is there an extension that does this, or are there any plans to > create one. There's currently two different implementations. My own and sean's. S

Re: [Radiant] database locking

2007-02-01 Thread Daniel Sheppard
> Perhaps instead of locking, we should add a simple version > constraint. > We could add a field to the page called version. Version would be > incredimented every time the page is saved. Before the save the page > would simply verify that the new version is only one higher > than the old

Re: [Radiant] Radiant Digest, Vol 10, Issue 80

2007-01-31 Thread Daniel Sheppard
That's my fault - my part_assets extension has been renamed to part_attachments, but I haven't renamed the dir in my repository. Rename vendor/extensions/part_assets to part_attachments In future get the core working before installing extensions so that you know where your bugs are coming from. >

Re: [Radiant] Ordering of pages

2007-01-31 Thread Daniel Sheppard
> I think it should be easy enough to write a tag for doing > redirects... > (You don't need a special kind of "redirect" page, you can > just create a > new page and insert this tag). Or perhaps this tag should > actually be > provided by a custom page type... Since the changes that we'r

Re: [Radiant] Ordering of pages

2007-01-30 Thread Daniel Sheppard
> I know there is a lot of built in support for sorting lists in Rails, > but I'm still hoping a solution can be pulled together that's not too > complicated and uses a tables. > > I've looked at some of the other sorting patches, but they seem to be > incompatible with mental. Well, the chang

Re: [Radiant] How to move from Trunk to Mental

2007-01-30 Thread Daniel Sheppard
> Thanks Daniel, I'll look into that. > > Here's what I don't understand. This problem has only occured after I > switched to Mental. It was not a problem, even though the install was > exactly the same, under the regular svn trunk. What has changed? > That's what is so aggravating. > > BJ Looki

Re: [Radiant] Access to request object from within tags (answer?)

2007-01-30 Thread Daniel Sheppard
> Hi I'm fighting this too on Mental. > My problem is that included pages (via r:find) have no access to the > request. > This is because in app/models/page.rb Page stores the request into > instance > variables, but the find tag will construct a new page - and > since nobody > will call > pr

Re: [Radiant] Ideas for reimplementation of radiant caching

2007-01-30 Thread Daniel Sheppard
> It also seems to be a good idea not to put post request's > response into > a cache. > A post supposed to change data, and the outcome of that should not be > cached - I should not say OK if you just signed up as root... class Page def cache? request.get? end end Perhaps that should

Re: [Radiant] Ordering of pages

2007-01-30 Thread Daniel Sheppard
> Here's the first pass after a day's work (works with mental): > > http://dev.radiantcms.org/radiant/attachment/ticket/45/sortabl > e_pages.mental.diff > > The patch doesn't address the reparenting issue. I'm going to > have a go > at that as well, but am working on this this in iterations.

Re: [Radiant] How to move from Trunk to Mental

2007-01-29 Thread Daniel Sheppard
Have a look at this message: http://lists.radiantcms.org/pipermail/radiant/2007-January/003149.html > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of BJ Clark > Sent: Tuesday, 30 January 2007 3:18 PM > To: radiant@lists.radiantcms.org > Subject: Re:

Re: [Radiant] Where to put helper methods for tags?

2007-01-28 Thread Daniel Sheppard
Tags are instance_eval'd on the page, so depending on how your page hierachy either put them as a method on a superclass or put them in a module which is included in each of the pages. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Kaleb Walton

[Radiant] Page attachments extension with Fleximage

2007-01-25 Thread Daniel Sheppard
The transformation using fleximage is performed by the controller - look at: http://soxbox.no-ip.org/radiant/svn/extensions/part_assets/lib/part_attachments/site_controller_extension.rb Transformation is specified by .flexi view files. Examples in my repository: http://soxbox.no-ip.org/radiant

Re: [Radiant] Radiant and Relative Path Plugin?

2007-01-24 Thread Daniel Sheppard
The admin pages should work with the relative path plugin, but the actual site itself might be an issue because it doesn't actually use url_for, which is what the relative path plugin hooks into. Oh, and by the way, you'd be using a ReverseProxy directive in apache, not an Alias. The problem that

Re: [Radiant] JS-free view ? (newcomer)

2007-01-24 Thread Daniel Sheppard
> > The Radiant admin will probably always require Javascript. > > So I will probably never be able to use radiant :-( > > Requiring JS breaks overall radiant accessibility. Isn't JS mostly > used to shrink the content tree ? This would be great to relax this, > by providing simple fallbacks fo

Re: [Radiant] Wiki

2007-01-23 Thread Daniel Sheppard
There's a "register" link just under the search button. You need to register before you can modify the wiki or post tickets. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of BJ Clark > Sent: Wednesday, 24 January 2007 4:52 PM > To: Radiant@lists.rad

Re: [Radiant] Ideas for reimplementation of radiant caching

2007-01-23 Thread Daniel Sheppard
I don't see any. It's "good enough" for most cases, I believe. The unmentioned alternative, of course, is memcached. It would take minimal changes to the code, probably a single line in environment.rb , since ResponseCache piggy-backs on the Rails caching mechanism. Howe

Re: [Radiant] Ideas for reimplementation of radiant caching

2007-01-22 Thread Daniel Sheppard
well as some finer control over the cache timeout for a page on a page-by-page basis, but looks like action_cache is not the way to go there. Dan. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Daniel Sheppard > Sent: Wednesda

Re: [Radiant] [ANN] Page attachments extension

2007-01-22 Thread Daniel Sheppard
I think once I get action_cache working 1 & 2 will be a non-issue - if the assets are stored seperately and then cached efficiently you'll get the same performance and also not have the problem of page movement interfering. For 3, I'm not really sure I see the need. In my extension, you can get

Re: [Radiant] Access to params within extension

2007-01-21 Thread Daniel Sheppard
quot;/") p = Hash[:calendar_group => path[2], :calendar => path[3], :period => path[4]] ... end end Just hoping to find a better way. Thanks, On Jan 21, 2007, at 11:52 PM, Daniel Sheppard wrote: If you've ma

Re: [Radiant] Access to params within extension

2007-01-21 Thread Daniel Sheppard
The @request object is made available to a Page, but the tags are not evaluated within the context of a page. If you have a method on your page such as: class MyPage < Page def monkeys @request.params[:monkeys] end end Then you could reference that from your tag: tag 'monkeys' do |tag|

Re: [Radiant] Access to params within extension

2007-01-21 Thread Daniel Sheppard
If you've made a custom route, then that route will be handled by a regular rails controller, not a page object. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Loren Johnson Sent: Monday, 22 January 2007 5:33 PM To: radiant

Re: [Radiant] [ANN] Page attachments extension

2007-01-21 Thread Daniel Sheppard
> My extension is a little rougher around the edges than yours at the > moment, but I'm planning on spending Tuesday night fixing that up (and > removing the dependence on my other admin_parts plugin) - Ok. Scratch that. Just re-jigged it a lot. Pulled in a couple of things from your design and m

Re: [Radiant] [ANN] Page attachments extension

2007-01-21 Thread Daniel Sheppard
> Okay, got a comment (Not specifically directed at you) -- A > question too > -- Are the plug-ins specific to Mental/Trunk Radiant, or can they be > used on either? and if specific, which is this for? As well, I see > references to a lot of plug-ins; nothing updated on the site though. > May

Re: [Radiant] [ANN] Page attachments extension

2007-01-21 Thread Daniel Sheppard
> I had mentioned this in the Radiant Core list a little while > ago because > I wanted people to test it out before I distributed it more > widely, but > I think it's time to let it loose. Unlike the other > extensions I have > released in the last few weeks, I'm not putting this one in >

Re: [Radiant] mental extension development help

2007-01-21 Thread Daniel Sheppard
> I'm trying to port the rss behavior to an extension for use in mental. > I can't find anything talking about how to develop extensions, so I'm > baseing this off looking at hello_tag example. What, if anything is happening? Put some print statements into your rss_reader_extension file to show if

Re: [Radiant] Mental Branch Revision?

2007-01-18 Thread Daniel Sheppard
0) backup the entire site dir + database incase it breaks anything > 1) do an svn:co into my site directory (which will put all the > radiant/rails 1.2 pre release over the old generated radiant rails > app). ... > Right? ___ Radiant mailing list Post:

Re: [Radiant] What about...

2007-01-17 Thread Daniel Sheppard
> Perhaps a dedicated table _might_ be better for that, > especially if a > specialized interface can be provided, but for both early phases of > development of a complex plug in or simple "quick and dirty" > extensions used on a single site the config page part is a perfect > match. Yes,

Re: [Radiant] What about...

2007-01-16 Thread Daniel Sheppard
While the use of yaml config page parts is a problem in radiant 0.5.2, I see no reason why any page in mental would be storing configuration in the page parts or config files or any other form of unstructured data. Extending a page to have a metadata table is as simple as: class GroggyArticlePage

Re: [Radiant] Sticky Posts

2007-01-15 Thread Daniel Sheppard
Heh - I just realised that I had the folder sorted by subject rather than date and was replying to an old post. That's probably the approach I would've used in radiant 0.5.2, but the extensions mechanism in mental has curbed just about every temptation I have to touch the core. > -Original

Re: [Radiant] Sticky Posts

2007-01-15 Thread Daniel Sheppard
If you're willing to play with the mental branch, I've done something similar in my extension that I'm working on for the website I'm working on - The main page will always have a feature article that might not necessarily be the latest article - it will simply be the most recent article marked as

Re: [Radiant] installing on Ubuntu

2007-01-04 Thread Daniel Sheppard
The problem is definitely with the __format__ of the database configuration file. You should post the entirety of that file (preferably as an attachment). > Loading production environment...FAILED > /usr/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line > 5, col 2: ` > socket:/var/run/

Re: [Radiant] Ideas for reimplementation of radiant caching

2007-01-03 Thread Daniel Sheppard
> Daniel Sheppard wrote: > >>From looking at response_cache, there are only two features that it > > implements that the default rails action caching didn't (easily): > > > > - Expire Everything > > - Expire After time > > It also caches

Re: [Radiant] Performance of find_page_by_url

2007-01-02 Thread Daniel Sheppard
I meant to post that to radiant-core... Sorry to the peoples that are scared by such things. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Daniel Sheppard > Sent: Wednesday, 3 January 2007 4:08 PM > To: radiant@lists.radian

[Radiant] Performance of find_page_by_url

2007-01-02 Thread Daniel Sheppard
The performance of find_by_url degrades because children don't automatically get a reference to their parent, but they need to get that parent reference to compute their url. With a structure of: - home - articles - (600 articles here) To find the nth article will take 2xn

Re: [Radiant] Ideas for reimplementation of radiant caching

2007-01-02 Thread Daniel Sheppard
>From looking at response_cache, there are only two features that it implements that the default rails action caching didn't (easily): - Expire Everything - Expire After time Am I missing something else? If I'm not, then I think I might have found something that will give a big ju

[Radiant] Asset Management Extension Progress

2007-01-01 Thread Daniel Sheppard
I've progressed on my asset management extension. Further updates will be available at: http://soxbox.no-ip.org/radiant I've now finished: - a way to upload asset for a page that hasn't been created yet. If you upload an asset and subsequently don't save the page, it's

Re: [Radiant] New Asset Management Extension

2007-01-01 Thread Daniel Sheppard
> Great stuff Daniel, looking forward to playing more with the > FlexImage stuff after the new year. Hadn't heard of it before, looks > pretty cool! > > In the meantime the only thing that jumped out at me were some > missing icons ;) Attached some BeOS icons I used in case said icons > d

[Radiant] Ideas for reimplementation of radiant caching

2007-01-01 Thread Daniel Sheppard
I want radiant to have a more robust caching mechanism than the current 'expire every x minutes' method of doing things - I'd like it to be able to handle just removing things from the cache when things actually change. I've roughed out a plan on how I think this should be done in a safe manner. I

<    1   2   3   >