[Radiant] Version Control Code
Hello - Does anyone have code for a version control extension they'd be willing to share? Even if its not perfect yet (we'd be happy to build on and improve!) We use radiant for a number of our sites. However, we are feeling the need for a simple version control integration. Going back into database logs to recover accidental deletions is simply not fun. Any thoughts/code/pointers on this would be very much appreciated! Thanks - Jonathan ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Shorten blog urls
I have a client who wants to shorten the blog permalinks on their site from: http://example.com/blog/archive/2008/05/31/my-blog-post To: http://example.com/blog/my-blog-post The blog is set up in the standard Radiant manner, and I'm scratching my head over how to get these links working how they'd like them to. A few requirements: /blog/archives should still be an archive page, and /blog still needs to show the most recent five posts (and thus I don't think it can be the archive page itself). Any pointers on the simplest way to get this working? If I need to write a some custom tags that's fine, but I wanted to make sure I'm not missing a simpler solution first. TIA! -- Nathaniel Talbott :(( ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Shorten blog urls
Nathaniel, I think overriding Page#find_by_url for the /blog page would be the answer. In the override (which I would probably add with alias_method_chain), I would do two things: 1) Attempt to find the page normally by calling the overridden method. 2) If the normal find_by_url returns nil or a FileNotFoundPage, attempt to find the page by slug as a child of the /blog/archive page (more precisely, select the ArchivePage from /blog's children, then find among its children by slug, excluding virtual pages). If this returns nothing, then pass through nil or the FileNotFoundPage; otherwise return the found grandchild page. Hope that gets you going in the right direction. Sean Nathaniel Talbott wrote: I have a client who wants to shorten the blog permalinks on their site from: http://example.com/blog/archive/2008/05/31/my-blog-post To: http://example.com/blog/my-blog-post The blog is set up in the standard Radiant manner, and I'm scratching my head over how to get these links working how they'd like them to. A few requirements: /blog/archives should still be an archive page, and /blog still needs to show the most recent five posts (and thus I don't think it can be the archive page itself). Any pointers on the simplest way to get this working? If I need to write a some custom tags that's fine, but I wanted to make sure I'm not missing a simpler solution first. TIA! ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Shorten blog urls
I forgot to mention that you might need to implement a custom tag anyway. The tag would look up the tree to see if the current page has an ancestor that has your special page class, then scope its permalink under that ancestor's url. Sean Nathaniel Talbott wrote: I have a client who wants to shorten the blog permalinks on their site from: http://example.com/blog/archive/2008/05/31/my-blog-post To: http://example.com/blog/my-blog-post The blog is set up in the standard Radiant manner, and I'm scratching my head over how to get these links working how they'd like them to. A few requirements: /blog/archives should still be an archive page, and /blog still needs to show the most recent five posts (and thus I don't think it can be the archive page itself). Any pointers on the simplest way to get this working? If I need to write a some custom tags that's fine, but I wanted to make sure I'm not missing a simpler solution first. TIA! ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Shorten blog urls
On Thu, Jun 5, 2008 at 12:20 PM, Sean Cribbs [EMAIL PROTECTED] wrote: I think overriding Page#find_by_url for the /blog page would be the answer. The main downside I see to this is that the pages will remain accessible under the longer urls as well, which I know the client won't like (this is all about SEO). Any good remedy for that? One approach I'm considering is to just nest the pages directly under the main blog page, and add an archive page to sit next to them (probably with some custom tags). I think that would solve all my issues, but I'm not sure. -- Nathaniel Talbott :(( ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] any way to dynamically populate r:random?
I'd like to insert part of a random subpage into the sidebar and figured it'd be a good fit for the r:random tag but so far am having very little luck. I've tried: r:random r:children:each r:optionr:title//r:option /r:children:each /r:random and even: r:random r:find url=/this/url r:children:each r:optionr:title//r:option /r:children:each /r:find /r:random but they both just return the title of the parent page. Am I missing something simple or expecting the impossible. Does anyone have any suggestion how to randomly grab a page part from a dynamically generated list of pages, besides using javascript? thanks ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Installing extensionw with git
Super simple question for anybody that has the answer: How does one install an extension from a git repo? Thanks. ~Nate ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Installing extensionw with git
There are a few ways you could go about it. I've recommended that you simply clone the extension into your app such as this: git clone git://github.com/mghaught/radiant-page-event.git vendor/extensions/page_event Github also has a download button which will give you an tarball of the project. If neither of those work, there are a few other tricks you can use. Cheers, Marty On Thu, Jun 5, 2008 at 9:21 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Super simple question for anybody that has the answer: How does one install an extension from a git repo? Thanks. ~Nate ___ 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] Installing extensionw with git
On Thu, 2008-06-05 at 21:51 -0600, Marty Haught wrote: There are a few ways you could go about it. I've recommended that you simply clone the extension into your app such as this: git clone git://github.com/mghaught/radiant-page-event.git vendor/extensions/page_event Exactly what I needed to know. Thanks. ~Nate ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] [ANN] radiant-fckeditor 0.5 WYSIWYG Editor released.
Folks, The existing FCKEditor plugin was out of date, so I spent a bunch of time creating a new FCKEditor plugin, with the goal of making a full-featured WYSIWYG page part editor that can easily be used. . .or not. It can be added/removed at will from page parts. Please see the page below for requirements and installation instructions. http://github.com/djcp/radiant-fckeditor/tree/master It has working file upload integration, is pretty good about not messing with your Radius tags and you can switch between it and other filters via the default Filter select menu. I have tested on Firefox 2.0, IE 7 and Safari 3.1. It could use some more testing - of course - but it should work on every browser FCKEditor does. It's based on FCKEditor 2.5 and some of Scott Rutherford's plugin at: http://blog.caronsoftware.com/2008/2/6/fckeditor-plugin-0-4-3-released It requires Shards, and I've tested it on 0.6.6, 0.6.7 and edge Radiant. It is vulnerable to the multiple partial injection in 0.6.7 dev mode bug, so if you see more than one FCKEditor in a page part, that's the problem. Run in production mode, or upgrade 0.6.7 to the latest Radiant from github. The future: * An admin tab that allows toolbar button customizations, * Integration with scripts_n_styles to auto-populate the CSS class drop-down, * Integration with the PageAttachments plugin, * Integration with the Link Browser API to allow for point-and-click in-page linking, * You tell me! Thanks! For now, kudos, suggestions, and bug reports can go to dan at endpoint dot com. --DJCP -- Posted via http://www.ruby-forum.com/. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Re: [ANN] radiant-fckeditor 0.5 WYSIWYG Editor released.
Daniel Collis-puro wrote: Folks, The existing FCKEditor plugin was out of date, so I spent a bunch of time creating a new FCKEditor plugin, Sigh. It's late. And it's an extension, not a plugin. --DJCP -- Posted via http://www.ruby-forum.com/. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Textile in Radiant
Does anybody know why textile wants to wrap a string of capital letters with a span class=caps tag? Or know how to keep it from happening? Why's textile reference doesn't mention anything about this feature. ~Nate ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant