Gaute Amundsen schrieb:
foo = restrictedTraverse('/foo/bar/index.html/macros/mymacro')
You can use this macro in a template.
div metal:use-macro=foo/
Tonico
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No
Dragos Chirila schrieb:
Hi everybody,
I am stuck with the following problem. I would appreciate it very much
if you could help me with it.
[snip]
If I understand correctly you want to fill a slot if a condition is true
else leave the default.
A typical slot-modell looks something like
Antonio Beamud Montero schrieb:
Ok... I want to define a template (like a skeleton), other template
(like the body of the skeleton) and lot of templates in sections of the
body of the skeleton and reuse the skeleton and the body across all my
web... How I can do that? It's posible or only one
Claudio Battaglino schrieb:
Hi,
what does exactly happen when I use python: into a zpt?
Is it a problem if I have many python: in my page templates?
Path expressions are by far better human readable IMHO. I try very hard
to avoid Python expressions if possible.
To give you an example:
I
Small correction ...
option tal:attributes=python: test(foo == bar, 'selected', None) ...
Should be:
option tal:attributes=selected python: test(foo == bar, 'selected',
None) ...
___
Zope maillist - Zope@zope.org
Tino Wildenhain schrieb:
... flexibility w/o slow and error prone full dynamic
stylesheets.
Plain text/css files are slow too if you don't cache 'em.
Tonico
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No
Tino Wildenhain schrieb:
Tonico Strasser schrieb:
Tino Wildenhain schrieb:
... flexibility w/o slow and error prone full dynamic
stylesheets.
Plain text/css files are slow too if you don't cache 'em.
But you can, thats the whole point.
You can cache dynamic stylesheets too, why
Tom Von Lahndorff schrieb:
- I think fly out menus on Web pages just don't Feel Good (not to
mention the debatable usability problems they might introduce[2]).
See Mike D.'s comments on that article which pretty much sums up my
rationale and implementation.
Still not convinced, but
Tino Wildenhain schrieb:
David Pratt schrieb:
Anyone have any idea whether dynamic css via dtml will remain possible
as CMF gets more Z3'ish? Or will only possibility be overrides in css
itself.
What do you expect to change with Z3? Otoh, not using runtime-generated
CSS is usually a better
Tino Wildenhain schrieb:
Peter Bengtsson schrieb:
John Huttley wrote:
Hi,
What is the best way of handling CSS?
I've looked at ZStylesheets, but it is buggy and uses depreciated
functions that will not be available in 2.10.
I recommend a DTML Document as an upgrade to File objects.
If
Martijn Faassen wrote:
* does anyone know a good web designer who can design a solid looking,
serious, but still exciting website for zope?
Whether a site is exciting or not is purely subjective I think. I find
w3.org very exciting, but I guess many here don't ;)
Making a solid design
Nikko Wolf schrieb:
Ian Bicking wrote:
I'm surprised this has never come up for me before, but now I want to
render a recursive data structure and I'm at a loss how I might do
that in ZPT. Or, what the best workaround would be. E.g.:
['a', 'b', ['c', ['d', 'e']]]
Becomes:
ul
lia/li
Hong Yuan schrieb:
I have a page template, say 'products.pt', which takes
traverse_subpath[0] as one of the variables, so e.g. the URL:
http://myserver/products/100
will actually call products.pt, which get 100 from the URL and displays
it in the template.
Now my question is how can I get the
Jim Fulton wrote:
Evan Simpson wrote:
Jim Fulton wrote:
IMO, if we take this route, we should think of the notation as
providing an alternate traversal operator. That is, there is
syntax that either modifies or replaces /, so of the examples
above, only:
context/*dc/title
In that case, I'd be
14 matches
Mail list logo