Mark Barratt wrote:
Well, no, because some of the objects I want to append /source.html to
are not called index.html (but that *is* how we did it for another site
and it works as you say).
A text substitution covers both cases:
tal:attributes=href
John Eikenberry wrote:
Mark Barratt wrote:
A text substitution covers both cases:
tal:attributes=href
python:context.REQUEST['URL0'].replace('index_html','index.html')+'/source.html'
Wouldn't this just result in [path]/index.html/source.html? Do you want
the index.html in the URL to
John Eikenberry wrote:
Mark Barratt wrote:
I can vaguely see why this is happening. My question: is there a
straightforward way of making the links (and error reports) return the
actual page address?
By actual page address you want the URL with index.html instead of
index_html? Given your
Mark Barratt wrote:
Zope 2.7.4 on Debian
DTML method index_html in the root says dtml-var _['index.html']
A link in a page template to
tal:attributes=href string:${context/REQUEST/URL0}/source.html
URL0 always(?) includes the ending published object (eg. index_html).
Normally if you
Mark Barratt wrote at 2005-8-17 17:41 +0100:
Zope 2.7.4 on Debian
DTML method index_html in the root says dtml-var _['index.html']
Do you know, that this is equivalent to the simpler dtml-var index.html?
A link in a page template to
tal:attributes=href
Zope 2.7.4 on Debian
DTML method index_html in the root says dtml-var _['index.html']
A link in a page template to
tal:attributes=href string:${context/REQUEST/URL0}/source.html
where the page is addressed by [path]/ and is actually at [path]/index.html
returns [path]/index_html/source.html