[Radiant] Processing unrelated nested Radius tags

2008-01-16 Thread David Piehler
Hello,

I'm trying to process one radius tag inside another. For example, one
tag retrieves a photo name such as "Dave.jpg" and sticks it into the
page_attachments tag for an image:



The resulting HTML output is...



... but the problem is the  tag itself is never
processed, so the photo does not appear on the screen.

I'm guessing this is a tag scope issue. Any help?

Thanks,
- Dave
-- 
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] Processing unrelated nested Radius tags

2008-01-16 Thread David Piehler
>  alt="photograph" />

This also produces the same unprocessed  tag:




This fails completely, however:



"You have a nil object when you didn't expect it! The error occurred 
while evaluating nil.content_type"
-- 
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] Processing unrelated nested Radius tags

2008-01-16 Thread John Long
On 1/16/08, David Piehler <[EMAIL PROTECTED]> wrote:
>  alt="photograph" />

This fails because Radius can't parse tags that are within attributes.
Why are you trying to do this? Is there a way to accomplish what you
want without using tags within attributes.

--
John Long
http://wiseheartdesign.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] Processing unrelated nested Radius tags

2008-01-19 Thread David Piehler
John Long wrote:
> On 1/16/08, David Piehler <[EMAIL PROTECTED]> wrote:
>> > alt="photograph" />
> 
> This fails because Radius can't parse tags that are within attributes.
> Why are you trying to do this? Is there a way to accomplish what you
> want without using tags within attributes.

My goal was to have a person's name in the DB generate a filename that I 
could pass to the page_attachments tag to grab. Example:

David Piehler -> david_piehler.jpg -> 

As you've said though, something like this is not possible due to the 
way Radius tags are parsed. Thanks for clarifying this. I've since taken 
a more heavy-handed approach to solve it.
-- 
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] Processing unrelated nested Radius tags

2008-01-19 Thread Sean Cribbs
David Piehler wrote:
> John Long wrote:
>   
>> On 1/16/08, David Piehler <[EMAIL PROTECTED]> wrote:
>> 
>>> >> alt="photograph" />
>>>   
>> This fails because Radius can't parse tags that are within attributes.
>> Why are you trying to do this? Is there a way to accomplish what you
>> want without using tags within attributes.
>> 
>
> My goal was to have a person's name in the DB generate a filename that I 
> could pass to the page_attachments tag to grab. Example:
>
> David Piehler -> david_piehler.jpg ->  name="david_piehler.jpg" />
>
> As you've said though, something like this is not possible due to the 
> way Radius tags are parsed. Thanks for clarifying this. I've since taken 
> a more heavy-handed approach to solve it.
>   

David,

The way I've found to do this is to use nested Radius tags that pass 
information back up to the parent.  However, the page_attachments tags 
are currently not structured to support this.  If they were, it might 
look like this:

david_piehler.jpg

Obviously, you would use some of your own tags to generate the name.

Sean
___
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] Processing unrelated nested Radius tags

2008-01-19 Thread Chris Parrish
Sean Cribbs wrote:
> David Piehler wrote:
>   
>> John Long wrote:
>>   
>> 
>>> On 1/16/08, David Piehler <[EMAIL PROTECTED]> wrote:
>>> 
>>>   
 >>> alt="photograph" />
   
 
>>> This fails because Radius can't parse tags that are within attributes.
>>> Why are you trying to do this? Is there a way to accomplish what you
>>> want without using tags within attributes.
>>> 
>>>   
>> My goal was to have a person's name in the DB generate a filename that I 
>> could pass to the page_attachments tag to grab. Example:
>>
>> David Piehler -> david_piehler.jpg -> > name="david_piehler.jpg" />
>>
>> As you've said though, something like this is not possible due to the 
>> way Radius tags are parsed. Thanks for clarifying this. I've since taken 
>> a more heavy-handed approach to solve it.
>>   
>> 
>
> David,
>
> The way I've found to do this is to use nested Radius tags that pass 
> information back up to the parent.  However, the page_attachments tags 
> are currently not structured to support this.  If they were, it might 
> look like this:
>
> david_piehler.jpg
>
> Obviously, you would use some of your own tags to generate the name.
>
> Sean
> ___
> Radiant mailing list
> Post:   Radiant@lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>   
I don't see why you couldn't override  with your own 
custom version that would permit either a 'name' or 'user_name' 
attribute like:

  

Of course you'd have the issue of keeping your version of the tag in 
sync with revisions to the PageAttachments extension.  But it would 
probably be pretty easy to implement too.

-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] Processing unrelated nested Radius tags

2008-01-24 Thread David Piehler
Chris Parrish wrote:
> I don't see why you couldn't override  with your own
> custom version that would permit either a 'name' or 'user_name'
> attribute like:
> 
>   
> 
> Of course you'd have the issue of keeping your version of the tag in
> sync with revisions to the PageAttachments extension.  But it would
> probably be pretty easy to implement too.
> 
> -Chris

That's a good idea. If my temporary solution doesn't work out, I'll try 
that. Thanks!

- Dave
-- 
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