On Thu, Jul 1, 2010 at 11:30 AM, Marshal Linfoot <[email protected]> wrote:
> Jim, this is a really useful addition to the sns extension, something I've
> wished was there from the start. Which leads me to ask, why another
> extension instead of working it into the main sns extension?

It's untested (other than manual verification), and assumes a lot. SNS
was not built with this in mind and the entire suite of specs for
standard tags (or any tags added to the Page model) should be run
against a TextAsset to ensure that everything works properly.

I played with the idea of changing the structure of Radiant to do
something like this, but I actually think SNS ought to change it's
structure so that is is easier to do.

> Thanks very much for this. Going to start using it right away.

Please do report bugs.

>
> On Wed, Jun 30, 2010 at 12:48 PM, Jim Gay <[email protected]> wrote:
>>
>> I recently solved a problem when using the SNS extension.
>> With SNS, you can edit stylesheets and javascripts, but you can't use
>> typical radius tags that you have available in pages, snippets, and layouts.
>>
>> Now with the SNS Page Hook extension, you can
>> http://ext.radiantcms.org/extensions/232-sns-page-hook
>>
>> A typical use case is doing something like this in your stylesheets:
>>
>> #my_item {
>>  background-image: url('<r:assets:url title="my_image" />');
>> }
>>
>> If you only have SNS, you can't do that. But with SNS Page Hook, you can.
>>
>> I wrote more details about it here
>> http://www.saturnflyer.com/blog/jim/2010/06/29/ruby-metaprogramming-is-awesome
>>
>> I mentioned this in another thread, but thought some subscribers might not
>> have seen it and the feature addition for SNS is helpful. I'd love to have
>> your feedback.
>>
>>
>> Jim Gay
>> Saturn Flyer LLC
>> www.saturnflyer.com
>> 571 - 403 - 0338
>
>
> --
> marshal
>



-- 
Jim Gay
Saturn Flyer LLC
http://www.saturnflyer.com
571-403-0338

Reply via email to