standard_html_header & index_html
How do I include standard_html_header in index_html? It seems to get ignored when I use it.. -- John
From: "John Poltorak" <jp@warpix.org>
How do I include standard_html_header in index_html?
It seems to get ignored when I use it..
<dtml-var standard_html_header> ... your html/dtml/whatever... <dtml-var standard_html_footer> should do it. HTH Jonathan
On Thu, Sep 16, 2004 at 01:27:17PM -0400, Jonathan Hobbs wrote:
From: "John Poltorak" <jp@warpix.org>
How do I include standard_html_header in index_html?
It seems to get ignored when I use it..
<dtml-var standard_html_header>
... your html/dtml/whatever...
<dtml-var standard_html_footer>
should do it.
That's what I thought should work, but it doesn't seem to work with index_html files... it does wotk with other types of files though... I'm obviously missing something basic.
HTH
Jonathan
-- John
On Thu, Sep 16, 2004 at 06:40:05PM +0100, John Poltorak wrote:
On Thu, Sep 16, 2004 at 01:27:17PM -0400, Jonathan Hobbs wrote:
From: "John Poltorak" <jp@warpix.org>
How do I include standard_html_header in index_html?
It seems to get ignored when I use it..
<dtml-var standard_html_header>
... your html/dtml/whatever...
<dtml-var standard_html_footer>
should do it.
That's what I thought should work, but it doesn't seem to work with index_html files...
It works if index_html is a DTMLDocument or DTMLMethod. What is yours? -- Paul Winkler http://www.slinkp.com
On Thu, Sep 16, 2004 at 02:16:57PM -0400, Paul Winkler wrote:
On Thu, Sep 16, 2004 at 06:40:05PM +0100, John Poltorak wrote:
On Thu, Sep 16, 2004 at 01:27:17PM -0400, Jonathan Hobbs wrote:
From: "John Poltorak" <jp@warpix.org>
How do I include standard_html_header in index_html?
It seems to get ignored when I use it..
<dtml-var standard_html_header>
... your html/dtml/whatever...
<dtml-var standard_html_footer>
should do it.
That's what I thought should work, but it doesn't seem to work with index_html files...
It works if index_html is a DTMLDocument or DTMLMethod. What is yours?
How do I tell? I suspect it isn't because the icon for it is different to the DTML Documents I created manually. This file was created automatically when I created a folder. As you might suspect - I'm just getting to grips with the Zope technology...
--
Paul Winkler http://www.slinkp.com
-- John
John Poltorak wrote:
On Thu, Sep 16, 2004 at 02:16:57PM -0400, Paul Winkler wrote:
On Thu, Sep 16, 2004 at 06:40:05PM +0100, John Poltorak wrote:
On Thu, Sep 16, 2004 at 01:27:17PM -0400, Jonathan Hobbs wrote:
From: "John Poltorak" <jp@warpix.org>
How do I include standard_html_header in index_html?
It seems to get ignored when I use it..
<dtml-var standard_html_header>
... your html/dtml/whatever...
<dtml-var standard_html_footer>
should do it.
That's what I thought should work, but it doesn't seem to work with index_html files...
It works if index_html is a DTMLDocument or DTMLMethod. What is yours?
How do I tell?
This is a ZPT - Zope Page Template file.
I suspect it isn't because the icon for it is different to the DTML Documents I created manually. This file was created automatically when I created a folder.
When you create a folder do not check "Create public interface" in the form. Michael
On Thu, Sep 16, 2004 at 02:16:57PM -0400, Paul Winkler wrote:
On Thu, Sep 16, 2004 at 06:40:05PM +0100, John Poltorak wrote:
On Thu, Sep 16, 2004 at 01:27:17PM -0400, Jonathan Hobbs wrote:
From: "John Poltorak" <jp@warpix.org>
How do I include standard_html_header in index_html?
It seems to get ignored when I use it..
<dtml-var standard_html_header>
... your html/dtml/whatever...
<dtml-var standard_html_footer>
should do it.
That's what I thought should work, but it doesn't seem to work with index_html files...
It works if index_html is a DTMLDocument or DTMLMethod. What is yours?
How do I tell?
I suspect it isn't because the icon for it is different to the DTML Documents I created manually. This file was created automatically when I created a folder.
When you click on 'index_html' in the folder list, what is displayed in the shaded line just below the menu tabs? (it should be something like: DTML Method at /folder/index_html) If it is not a DTML Method: try deleting it, then use the 'Add' drop-down menu to create a new DTML Method with the name index_html. HTH Jonathan
Hi John,
When you click on 'index_html' in the folder list, what is displayed in the shaded line just below the menu tabs? (it should be something like: DTML Method at /folder/index_html)
If it is not a DTML Method: try deleting it, then use the 'Add' drop-down menu to create a new DTML Method with the name index_html. Why don't you use a ZPT instead of DTML? It's better and cleaner. You can do: <div tal:replace="structure here/standard_html_header">The Header</div>
Or just: <tal:block replace="structure here/standard_html_header"/> The last statement works and it is shorter, but I think it breaks the philosophy of ZPT: Producing a renderable template even if you aren't using zope. Regards, Josef
On Thu, Sep 16, 2004 at 01:27:17PM -0400, Jonathan Hobbs wrote:
From: "John Poltorak" <jp@warpix.org>
How do I include standard_html_header in index_html?
It seems to get ignored when I use it..
<dtml-var standard_html_header>
... your html/dtml/whatever...
<dtml-var standard_html_footer>
should do it.
That's what I thought should work, but it doesn't seem to work with index_html files... it does wotk with other types of files though... I'm obviously missing something basic.
When you say it 'doesn't seem to work' what is happening?
On Thu, Sep 16, 2004 at 02:42:31PM -0400, Jonathan Hobbs wrote:
On Thu, Sep 16, 2004 at 01:27:17PM -0400, Jonathan Hobbs wrote:
From: "John Poltorak" <jp@warpix.org>
How do I include standard_html_header in index_html?
It seems to get ignored when I use it..
<dtml-var standard_html_header>
... your html/dtml/whatever...
<dtml-var standard_html_footer>
should do it.
That's what I thought should work, but it doesn't seem to work with index_html files... it does wotk with other types of files though... I'm obviously missing something basic.
When you say it 'doesn't seem to work' what is happening?
It just ignores the statements. It is probably related to the incorrect file type being created in the first place. -- John
participants (5)
-
John Poltorak -
Jonathan Hobbs -
Josef Meile -
Michael Haubenwallner -
Paul Winkler