Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

appending paths in zpt

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


garry at schoolteachers

Jan 12, 2009, 12:25 PM

Post #1 of 4 (1181 views)
Permalink
appending paths in zpt

I have this: tal:attributes="href here/getUserName" in a link that works but I
want to append a hard coded extension to it.
How would I turn it into this and get it to work ?

tal:attributes="href here/getUserName/listview?page=1000"

Regards
Garry
_______________________________________________
Zope maillist - Zope [at] zope
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 )


teebes at gmail

Jan 12, 2009, 12:45 PM

Post #2 of 4 (1119 views)
Permalink
Re: appending paths in zpt [In reply to]

Sounds like you need to use a string:
tal:attributes="href string:${here/getUserName}/listView?page=1000"

- Teebes

On Mon, Jan 12, 2009 at 3:25 PM, Garry Saddington <
garry [at] schoolteachers> wrote:

> I have this: tal:attributes="href here/getUserName" in a link that works
> but I
> want to append a hard coded extension to it.
> How would I turn it into this and get it to work ?
>
> tal:attributes="href here/getUserName/listview?page=1000"
>
> Regards
> Garry
> _______________________________________________
> Zope maillist - Zope [at] zope
> 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 )
>


garry at schoolteachers

Jan 12, 2009, 1:06 PM

Post #3 of 4 (1117 views)
Permalink
Re: appending paths in zpt [In reply to]

On Monday 12 January 2009 20:45, Thibaud Morel l'Horset wrote:
> Sounds like you need to use a string:
> tal:attributes="href string:${here/getUserName}/listView?page=1000"
>
Thanks that's done it
Garry
_______________________________________________
Zope maillist - Zope [at] zope
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 )


lists at zopyx

Jan 12, 2009, 9:12 PM

Post #4 of 4 (1115 views)
Permalink
Re: appending paths in zpt [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12.01.2009 21:25 Uhr, Garry Saddington wrote:
> I have this: tal:attributes="href here/getUserName" in a link that works but I
> want to append a hard coded extension to it.
> How would I turn it into this and get it to work ?
>
> tal:attributes="href here/getUserName/listview?page=1000"
>

Check the ZPT documentation and learn about using the "string:" directive.

- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAklsItEACgkQCJIWIbr9KYwgKACfdwouA0bCphA80n2yg9PiKx7D
vogAoKsyuQ8LEmLfFxSqKkRLFhL5G4XI
=QgxZ
-----END PGP SIGNATURE-----
Attachments: lists.vcf (0.31 KB)

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.