How can a make a loop using chameleon and pyramid in my html? I search but i found nothing like that =/ Is easier use javascript in this case? I use d ...
How can a make a loop using chameleon and pyramid in my html? I search but i found nothing like that =/ Is easier use javascript in this case? I use d ...
Sometimes it would be nice to be able to do this, just return None in any expression evaluating for a nonexistent dict key instead of raising KeyError ...
Trying to change table data based on conditions. string.stringname may have -shadow at the very end of the string, and it may not. I'm trying to ge ...
I'm trying to modify my /portal_view_customizations/zope.interface.interface-plone.belowcontenttitle.documentbyline template with a tal expression, so ...
Why is a variable defined outside a fill-slot or define-macro element not visible inside this element? <body tal:define="a string:a"> <m ...
It's a rather unusual request, but is it possible to extract a subdomain to a variable? When I click on (1) I want to save "sub1" and vice versa. I ...
How can I use Chameleon or Zope Page Templates to easily create CSS zebra striping? I want to add odd and even classes to each row in a table, but usi ...
When using chameleon, I can replace element from a base template using the concept of slot. Where you define a slot and fill it using another tag. As ...
I am just getting started with pyramid and chameleon templates. I have the following code example that renders a site menu. It highlights the cur ...
I'm using pyramid with Chameleon and I try to add a class to a link dependent of the page number with tal:condition. When I replace page_number for a ...
I'm returning a string body_class to my view. I can't seem to put in a condition without breaking it: Kinda works. It outputs the body class but th ...
Is it a good practice storing related information in the HTML tag? $("#my_div").append("<span id='info' boo='foo'/>"); $("#info").attr("boo"); ...
How to access view reference (and its members) when TAL is used with python namespace prefix? For example, I got reference on records property of the ...
I got the following drop-down list - SELECT element - construction in my ZPT template: <select id="record_selector"> <option tal:repeat= ...
I am trying to display conditional text in a Pyramid Chameleon template. Basically, checking if the dictionary key 'maxed_out_alerts' is empty (false) ...
I have the following tal condition code that in theory is supposed to work, but it is not performing the condition check. the form hits this condition ...
Below line raises: PHPTAL_VariableNotFoundException' with message 'Unable to find variable 'GLOBALS' in current scope' while works ...
I'm trying to update one of our older ZPT based applications and I would like to implement the following HTML5 Boilerplate best practice for adding co ...
I have a piece of TALES for a page template in Plone which looks through the results of a collection and inserts them into a box (similar to that of a ...
I have 2 chained list : These selects are populated by MySQL requests (ZSQL Method) I would like to load this second form only when it's necessar ...