[Radiant] Extensions: Asset Manager Demo
Keith Bingman
keith at keithbingman.com
Sat Nov 25 06:34:45 CST 2006
Please fell free to give me suggestions on the radius tags, this is
just a sort of first draft.
I made the image tag work both with and without the wrapping asset
tag so you can do either this:
<r:asset id="1">
<r:image size="thumb" />
</r.asset>
or you can use a shortcut:
<r:image size="thumb" />
I added a new tag, <r:thumbnail />. You can still add a size, though
this refers to the linked image, not the thumbnail. You can also shut
the link off completey with link="false". Check out the new version
from SVN (if you don't have externals set up, just replace lib/
asset_tags.rb, that is all I have changed). This is the file with all
the tags,
Just a note, should you want to change the thumbnail and icon sizes,
this is stored in the Asset Model. I think it is pretty clear. Check
out the acts_as_attachment tutorial for spefic info on the various
sizes.
http://weblog.techno-weenie.net/articles/acts_as_attachment/thumbnailing
Keith Bingman
keith at keithbingman.com
Tel: +49-7731-7983830
On Nov 24, 2006, at 3:45 PM, Jonathan Métillon wrote:
> I reinstalled the whole radiant-mental and asset extension. It's all
> good now! Thanks I really like the way it produces icons and
> thumbnails.
>
> The only thing is that my girl is not that geek and
>
> <r:asset id="1">
> !<r:asset_url size="thumbnail" />!:<r:asset_url size="normal" />
> </r:asset>
>
> Would be easier for her like that
>
> <r:asset_thumbnail id="1" />
>
> Can I define easily this kind of shortcut?
>
>
> On 11/24/06, Keith Bingman <keith at keithbingman.com> wrote:
>>
>> Please check out the latest version (revision 19), this was fixed
>> in that. I
>> had tagging in, but due to some conflicts with acts_as_taggable
>> and Radiant
>> itself, I had to remove it. I missed the one line, line 75 in the
>> AssetController, if you erase that it works. Like I said, this is
>> fixed in
>> the latest version. I also added the New Asset button; please move
>> this from
>> the Images directory in the extension to the Images directory in
>> Public.
>>
>> Let me know if that works.
>>
>> Keith Bingman
>> keith at keithbingman.com
>> Tel: +49-7731-7983830
>>
>>
>> On Nov 24, 2006, at 11:00 AM, Jonathan Métillon wrote:
>> You got that right! This one fixed. And now, what about that other
>> one?...
>>
>> NoMethodError in Admin/assetController#new
>>
>> undefined method `tag_with' for #<Asset:0xb72cad14>
>>
>> RAILS_ROOT: script/../config/..
>> Application Trace | Framework Trace | Full Trace
>>
>> vendor/rails/activerecord/lib/active_record/base.rb:1848:in
>> `method_missing'
>> vendor/extensions/assets/app/controllers/admin/asset_controller.rb:
>> 75:in
>> `handle_new_or_edit_post'
>> vendor/extensions/assets/app/controllers/admin/asset_controller.rb:
>> 16:in
>> `new'
>> vendor/rails/actionpack/lib/action_controller/base.rb:1068:in
>>
>> _______________________________________________
>> Radiant mailing list
>> Post: Radiant at lists.radiantcms.org
>> Search: http://radiantcms.org/mailing-list/search/
>> Site:
>> http://lists.radiantcms.org/mailman/listinfo/radiant
>>
>>
>
>
> --
> « La perfection est atteinte non quand il ne reste rien à ajouter,
> mais quand il ne reste rien à enlever. » --Antoine de Saint-Exupéry
> _______________________________________________
> Radiant mailing list
> Post: Radiant at lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.radiantcms.org/pipermail/radiant/attachments/20061125/e2b422ee/attachment.html
More information about the Radiant
mailing list