Re: [Radiant] Using Radiant unpacked?

2008-11-11 Thread Mohit Sindhwani

Joe Van Dyk wrote:

Personally, I don't know why you'd want to use a gem for radiant, but
the option is there.

  

I guess it's might convenient in development!


Any time any of my applications depends on a 3rd party library, I try
to package up that library with my application.
  

I agree - in deployment, it's mighty convenient :)

Cheers,
Mohit.
11/11/2008 | 5:15 PM.

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


[Radiant] id standard tag

2008-11-11 Thread Andreas Roedl
Hey guys,

I'm not subscribed to the dev mailing list, but anyway...

Sean, could you please add :id to the standard page tags?

  [:breadcrumb, :slug, :title, :id].each do |method|
desc %{
  Renders the @#{method}@ attribute of the current page.
}
tag method.to_s do |tag|
  tag.locals.page.send(method)
end
  end

I'm aware that this is a pretty much useless tag for most users and
developers, but in some situations it comes in handy.


Thanks,


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


Re: [Radiant] Using Radiant unpacked?

2008-11-11 Thread Simon Rönnqvist

  Hi!

Could it be that when using Passenger you'd save a little on the  
memory usage by having more common code in betweeen the apps? Anyhow,  
with Passenger 2 however even running vendor-Rails shouldn't be a big  
sin (from what I read somewhere).


I tried running two gem-based installations and one repo-based, I  
can't say I saw any significant difference in memory consumption or  
performance. Quite ironically I didn't see any great difference in  
memory consumption and performance between Radiant and an freshly made  
Rails app only displaying a view (with static content), so maybe I  
just looked in the wrong place... or Radiant is really light-weight. :)


  cheers, Simon


On Nov 11, 2008, at 06:36 , Joe Van Dyk wrote:


Personally, I don't know why you'd want to use a gem for radiant, but
the option is there.

Any time any of my applications depends on a 3rd party library, I try
to package up that library with my application.

Joe

On Mon, Nov 10, 2008 at 2:19 PM, Simon Rönnqvist [EMAIL PROTECTED] wrote:

OK, so for what purpose was Radiant made a gem then? :)

And is there any easy way to move an installation from/to being a
repo-version to/from an installation pointing to a gem?

cheers, Simon


On Nov 10, 2008, at 23:32 , Joe Van Dyk wrote:


I'd keep as much as you can in the repository.  What happens if you
need to upgrade Radiant for one of your applications, but need to  
keep

another application on an older Radiant version?  It's no problem if
Radiant (and the rest of the libraries you use) are bundled up with
the application.

Joe

On Mon, Nov 10, 2008 at 4:15 AM, Simon Rönnqvist [EMAIL PROTECTED]  
wrote:


Hi!

I just dug up this old post. :)

I found that I can also install gems in my home-directory at  
Dreamhost, I

tested installing Radiant that way and it worked. Would you still
recommend
cloning from the repo or is using a gem just as good, what pros  
and cons

do
you see?

I'm guessing that the gem version might be more stable, and also  
easier

to
maintain if I want to have several installations. While using the
repo-version again would give me more flexibility to use newer  
code, or

maybe even switch to some branch.

Is it easy to move an installation from using a gem to using a
repo-version
or the other way around?

cheers, Simon


On Oct 8, 2008, at 16:57 , Casper Fabricius wrote:


Hi Simon,

I'd recommend to do a

git clone git://github.com/radiant/radiant.git my_radiant_app

instead. Remember to create a database.yml file and to create  
the mysql

database on DH.

Med venlig hilsen / Best regards,
Casper Fabricius
http://casperfabricius.com

On 08/10/2008, at 15:44, Simon Rönnqvist wrote:


Hi!

I've been trying to use Radiant unpacked with Dreamhost. But I  
fail to
get it working, maybe I'm doing something wrong... but I failed  
to find

any
good howto.

I unpacked Radiant into my Radiant app's vendor/gems/ folder  
using gem

unpack radiant.
(I'm not 100% sure where I should put it actually.)

Then I uploaded the whole thing to Dreamhost and tried the  
following:

$ rake production db:bootstrap
(in /home/.soes/ronnqvist/radiant)
Missing the Radiant  gem. Please `gem install -v= radiant`,  
update your
RADIANT_GEM_VERSION setting in config/environment.rb for the  
Radiant

version
you do have installed, or comment out RADIANT_GEM_VERSION to  
use the

latest
version installed.

So it seems that Rake doesn't know where to look for the  
Radiant gem.

Any
ideas on how I do this very basic thing? :)

cheers, Simon
___
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


___
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


___
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


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

Re: [Radiant] id standard tag

2008-11-11 Thread Chris Parrish
Andreas, I don't know if this will help you or not, but I'm about to 
release an updated version of Conditional Tags that will now offer the 
r:puts tag to render values.  My goal was to allow users to inspect 
the results of their evaluators but it would be handy here too.   You 
could create your own extension with a module like:


   module MyModule
   include ConditionalTags::Evaluatable
   evaluator id, :index_not_permitted do |tag, element_info|
 tag.locals.page.id
   end
   end

Then, in your extension's my_extension.rb file you'd add the following 
code to the #activate method:


   raise My Extension requires the Conditional Tags extension to be 
loaded first unless defined?(ConditionalTags)

   ConditionalTags::CustomElement.send :include, MyModule

And suddenly you'll be able to output the value you seek using:

   r:puts value_for=id /

Better still, you would also be able to use 'id' in conditional 
statements like:


   r:if cond= id is 15 I know what contextual page I'm on!/r:if

Don't know if that part would be useful to you or not though.


-Chris


Andreas Roedl wrote:

Hey guys,

I'm not subscribed to the dev mailing list, but anyway...

Sean, could you please add :id to the standard page tags?

  [:breadcrumb, :slug, :title, :id].each do |method|
desc %{
  Renders the @#{method}@ attribute of the current page.
}
tag method.to_s do |tag|
  tag.locals.page.send(method)
end
  end

I'm aware that this is a pretty much useless tag for most users and
developers, but in some situations it comes in handy.


Thanks,


Andreas
___
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