[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope
Subject:    [Zope] List of attributes
From:       Garito <garito () sistes ! net>
Date:       2007-06-25 3:23:40
Message-ID: faf6c7e50706242023sbd95180kcd3b385c45ce9537 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi all!

Is it possible to use tal:attributes with a dictionary or something like
this?

I would like to change/add attributes to a HTML object in a list or a dict
like:

<tal:b tal:define='atributos python: {'href': '
http://blogs.sistes.net/Garito', 'target': '_blank', 'myCustomAttribute':
'Value1'}
<a href="http://www.sistes.net" tal:attributes='atributos'>I'm a link!</a>

Thanks a lot!
-- 
Mis Cosas
http://blogs.sistes.net/Garito

[Attachment #5 (text/html)]

Hi all!<br><br>Is it possible to use tal:attributes with a dictionary or something \
like this?<br><br>I would like to change/add attributes to a HTML object in a list or \
a dict like:<br><br>&lt;tal:b tal:define=&#39;atributos python: {&#39;href&#39;: \
&#39; <a href="http://blogs.sistes.net/Garito">http://blogs.sistes.net/Garito</a>&#39;, \
&#39;target&#39;: &#39;_blank&#39;, &#39;myCustomAttribute&#39;: \
&#39;Value1&#39;}<br>&lt;a href=&quot;<a \
href="http://www.sistes.net">http://www.sistes.net </a>&quot; \
tal:attributes=&#39;atributos&#39;&gt;I&#39;m a link!&lt;/a&gt;<br \
clear="all"><br>Thanks a lot!<br>-- <br>Mis Cosas<br><a \
href="http://blogs.sistes.net/Garito">http://blogs.sistes.net/Garito</a>



_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic