Re: [Radiant] Wrapping the surrounding html code with tag(s) return value

2008-06-17 Thread Jim Gay
On Jun 17, 2008, at 8:16 PM, nn wrote: Hi Jim, Thanks for the reply. On Tue, Jun 17, 2008 at 1:18 PM, Jim Gay <[EMAIL PROTECTED]> wrote: You'd need to write a tag that wraps it. tag 'myext:model:if_something' do |tag| tag.expand if (your code to check that value) end that would expand the

Re: [Radiant] Wrapping the surrounding html code with tag(s) return value

2008-06-17 Thread nn
Hi Jim, Thanks for the reply. On Tue, Jun 17, 2008 at 1:18 PM, Jim Gay <[EMAIL PROTECTED]> wrote: > You'd need to write a tag that wraps it. > > tag 'myext:model:if_something' do |tag| > tag.expand if (your code to check that value) > end > > that would expand the tag only if that something is s

[Radiant] Failure to install Page Attachments extension

2008-06-17 Thread Matt Anderson
I'm trying to follow the instructions at http://wiki.radiantcms.org/Installing_Extension_-_Page_Attachments. When I get to this step: rake production db:migrate:extensions The output is: rake aborted! undefined method `[]' for # >From that point on, my server will no longer start up as well. T

Re: [Radiant] adding shards regions

2008-06-17 Thread Sean Cribbs
Jim, Right now it's based completely on controller and template name. So if 'developing' is another controller, you're fine. Otherwise, it would require a major shift in the way that RegionSets are determined. However, you can override the controller name and template name by setting the ap

Re: [Radiant] adding shards regions

2008-06-17 Thread Jim Gay
Sean, I've got a question about this again. I'm trying to add regions to my views, but I have a different file structure and I don't quite know how to get render_region to work with it. For example, I have: admin/help/index.html.haml (works fine) admin/help/developing/index.html.haml (not

Re: [Radiant] Re: Re: Re: Admin Tree Extension

2008-06-17 Thread Keith Bingman
Keith Bingman wrote: This is now on Github at http://github.com/kbingman/admin_tree_structure/tree/master It would be great if someone could chekc it out and see if it works for them. I have it working under the 0.6.6 Gem. If anyone is still using the old drag-and-drop page Reorder extension, b

[Radiant] Re: Re: Re: Radiant documentation - summer reboot

2008-06-17 Thread David Piehler
Mohit Sindhwani wrote: > I would like to > initially treat this as a separate 'handbook' called 'Documentation - > Summer Reboot' rather than into the main handbook. Hopefully, it will > be easy to move pages around later? I prefer this idea, as long as renaming the main section once we are done

Re: [Radiant] Re: Re: Radiant documentation - summer reboot

2008-06-17 Thread Mohit Sindhwani
Casper Fabricius wrote: Hi David, I've always found building the navigation system in Radiant quite a hassle, so I have recently added an to my fork of radiant (http://github.com/RSpace/radiant/tree/master) and submitted a pull request to Sean. I have no idea if it will make it into Radiant

[Radiant] Re: Re: Re: Radiant documentation - summer reboot

2008-06-17 Thread David Piehler
Casper Fabricius wrote: > I've always found building the navigation system in Radiant quite a > hassle, so I have recently added an to my fork of radiant > (http://github.com/RSpace/radiant/tree/master > ) and submitted a pull request to Sean. I have no idea if it will make > it into Radiant 0.6.

Re: [Radiant] Troubles with

2008-06-17 Thread Nancy Carroll
Hi Sean, Thanks for your tips! I've applied them all except the one about . I have pages on both levels that I would prefer not show up in the menu, and I couldn't convince the outer one to filter the inner ones as well. Unfortunately, nothing has changed with regard to et al. I'll keep

Re: [Radiant] Password Protect an entire instance

2008-06-17 Thread Sean Cribbs
Josh, Here's another "we did that for Redken" moment. The professional site on Redken requires authentication in various places, but the consumer site requires none. Essentially we added a boolean flag on the Page model that would let one select whether login was required to see that page a

Re: [Radiant] Password Protect an entire instance

2008-06-17 Thread Josh Schairbaum
Sean, Thanks for the tips. I've also got the multi-site extension installed, would it be possible to completely password protect one site, but not the other? Meaning, could the filter on SiteController figure out which page was the root of the site and use it that way? Regards, Josh On

Re: [Radiant] Troubles with

2008-06-17 Thread Sean Cribbs
Nancy, I'm not sure why they do not work for you or where that error comes from, but here's a couple tips. Your inner is a duplication of logic from the outer scope. I think you probably want it on the inside of the inner . If you want to use the title of the page in a link to the page,

[Radiant] Troubles with

2008-06-17 Thread Nancy Carroll
Hmmm, there is obviously something I am missing with regards to and and Radiant 0.6.6. I've made a little menu, and it works just fine, except that all cases of are simply ignored, and a blank space is inserted in my rendered html. In the case of a: "undefined method `url' for nil:NilCla

[Radiant] Re: Layouts, snippets and site assets on the file system?

2008-06-17 Thread Jonathan McCoy
Jonathan McCoy wrote: > In parallel, it would be nice to add another basic user-level of > "Designer", for managing Snippets - in the absence of SCM/file support > for layouts/partials. > > In keeping designs and code DRY, we find ourselves using snippets to > contain more than user-editable co

Re: [Radiant] Wrapping the surrounding html code with tag(s) return value

2008-06-17 Thread Jim Gay
You'd need to write a tag that wraps it. tag 'myext:model:if_something' do |tag| tag.expand if (your code to check that value) end that would expand the tag only if that something is set the way you want, and your radius/html would look like this: h1. Some Header There are probably

[Radiant] Wrapping the surrounding html code with tag(s) return value

2008-06-17 Thread nn
Let's say I have the fallowing: h1. Some Header I need to check if myext:model:something is blank, and if it is "h1. Some Header" should not be shown. If its not blank, then the header is shown. Any sugestions? ___ Radiant mailing list Post: Rad

Re: [Radiant] Re: Re: Radiant documentation - summer reboot

2008-06-17 Thread Casper Fabricius
Hi David, I've always found building the navigation system in Radiant quite a hassle, so I have recently added an to my fork of radiant (http://github.com/RSpace/radiant/tree/master ) and submitted a pull request to Sean. I have no idea if it will make it into Radiant 0.6.8 or even into cor