Re: [Radiant] Radius integration with rails app

2007-11-19 Thread Arpit Jain
Sean Cribbs wrote:
> Depends on if you want to use just Radius, or the whole Radiant
> application.  If you want to use just Radius, you can install the gem
> and require it like you would any other gem.  Then you would define
> your own context and tags within it, set up the parser and go.
> 
> For the case of integrating Radiant with your Rails app, the easiest
> way is to build your app in a Radiant extension and use the
> "share_layouts" extension to use the same layouts as your Radiant
> pages.  If you want more detail with this, query me again.
> 
> Sean

Hi sean.
   For integrating Radiant in my application , i am using mini_radiant 
plugin.
   But i am getting some routed issues with it.
   Can you please provide me with the details as how to build my own 
application in a Radiant extension.

Thanks
Arpit
-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Sessions in Radiant Help

2007-11-19 Thread Marc des Garets
But this shouldn't work because the method session is undefined for 
yourextension_extension.rb.

That's the error I get when I try to do what you said:
in `activate': undefined method `session' for SolrTags:Module 
(NoMethodError)

But I'm using radiant 6.0.4 so could be this. How could I get the method 
session for my _extension.rb file?


Marc


Erik van Oosten wrote:
> You can enable sessions for a particular extension by doing something 
> like this:
>
> class YourExtension < Radiant::Extension
>   def activate
> YourController.class_eval { session :disabled => false }
>   end
> end
>
> This works on Radiant 6.0.3. I found this on the mailing list. I do not 
> think this is documented.
>
> Regards,
> Erik.
>
>
>
> Jeff Dean wrote:
>   
>> I believe that this is because of a bug in rails, and not radiant.   
>> The SiteController has session :off, and adding session :on in your  
>> controllers doesn't seem to do anything.
>>
>> The only way I know to change this is to actually go into  
>> SiteController and comment out that line.  I've seen posts about  
>> putting things like:
>>
>> SiteController.class_eval{session :on}
>>
>> in the activate method of your extension, but that didn't work for me.
>>
>> To get it to work, I did froze to edge radiant, then went into  
>> SiteController.rb and commented out the session line.  This would mean  
>> that any pages that you want sessions off for you'd have to do  
>> manually - so use with caution.
>>
>> Jeff
>>
>>   
>> 
>
>   

___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] [ANN] Simpler reorder extension

2007-11-19 Thread Sean Cribbs
With Adam's permission, I have replaced the reorder extension in the 
Radiant repository with the simpler one I developed recently.  Instead 
of adding a separate view with drag-and-drop, it adds up/down/top/bottom 
buttons to the sitemap.  

You can use Subversion to download it from:

http://dev.radiantcms.org/svn/radiant/trunk/extensions/reorder

Enjoy!

Sean
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Migrating Extensions

2007-11-19 Thread Chris Parrish
What is the radiant method for reverse migrations?

I would have guessed:
  rake db:migrate:extensions:my_extension_name VERSION=XXX

but of course this does not work.

This also brings up a second issue:  Is it even possible to migrate one 
extension without doing them all?

Again, I would have guessed something like the following would be possible:
  rake db:migrate:extensions:my_extension_name


-Chris
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Migrating Extensions

2007-11-19 Thread Andrea Franz
On Nov 19, 2007 7:04 PM, Chris Parrish <[EMAIL PROTECTED]> wrote:
> What is the radiant method for reverse migrations?
>
> I would have guessed:
>   rake db:migrate:extensions:my_extension_name VERSION=XXX

You should be able to do something like this:

rake radiant:extensions:extension_name:migrate VERSION=0
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Problem with Shards!

2007-11-19 Thread Will Green
The old reorder extension broke with Radiant 0.6.4, so I installed Shards 
(tags/rel_0.6.4) and the 
new Reorder extension. Now, when I access the Admin interface, this is what I 
get:

Showing vendor/extensions/shards/app/views/admin/page/_node.rhtml where line #2 
raised:

wrong number of arguments (0 for 1)

Extracted source (around line #2):

1: 
2:   
3: 
4: <% if simple -%>
5:   <%= icon %>

Help!

-- 
Will Green
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Problem with Shards!

2007-11-19 Thread Sean Cribbs
Will,

Use the trunk version of shards.  It fixes that error.

Sean

Will Green wrote:
> The old reorder extension broke with Radiant 0.6.4, so I installed Shards 
> (tags/rel_0.6.4) and the 
> new Reorder extension. Now, when I access the Admin interface, this is what I 
> get:
>
> Showing vendor/extensions/shards/app/views/admin/page/_node.rhtml where line 
> #2 raised:
>
> wrong number of arguments (0 for 1)
>
> Extracted source (around line #2):
>
> 1: 
> 2:   
> 3: 
> 4: <% if simple -%>
> 5:   <%= icon %>
>
> Help!
>
>   

___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Problem with Shards!

2007-11-19 Thread Will Green
Thanks, but it caused other UI problems (specifically, the page tree wasn't 
indented at all).

I'm reverting to 0.6.3, and the older, more featureful, reorder extension 
(which I had a cached copy 
of, thank goodness, because that version no longer exists in your repo) for the 
time being.

==
Will Green

Sean Cribbs wrote:
> Will,
> 
> Use the trunk version of shards.  It fixes that error.
> 
> Sean
> 
> Will Green wrote:
>> The old reorder extension broke with Radiant 0.6.4, so I installed Shards 
>> (tags/rel_0.6.4) and the 
>> new Reorder extension. Now, when I access the Admin interface, this is what 
>> I get:
>>
>> Showing vendor/extensions/shards/app/views/admin/page/_node.rhtml where line 
>> #2 raised:
>>
>> wrong number of arguments (0 for 1)
>>
>> Extracted source (around line #2):
>>
>> 1: 
>> 2:   
>> 3: 
>> 4: <% if simple -%>
>> 5:   <%= icon %>
>>
>> Help!
>>
>>   
> 
> ___
> Radiant mailing list
> Post:   Radiant@lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant