Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Interested Beginner
RE: Modify headers with .page and include_file [ reply ]  
2010-07-18 20:37
Thank you,

little typ, big failure...
Now this works fine

Fabio

By: Thomas Leitner
RE: Modify headers with .page and include_file [ reply ]  
2010-07-18 08:31
You are missing the slash before the closing '>'.

Other than that there seems to be no error in your usage of the block tag. You may want to include the options node="first" and notfound="ignore" for graceful degradation when a page does not contain a header block.

By: Interested Beginner
Modify headers with .page and include_file [ reply ]  
2010-07-17 17:55
Hello,

Id'like to individualise headers also. So I have tried to change default.template:
...
<head>
...
<link rel="stylesheet" href="{relocatable: css/default.css}" type="text/css" media="screen" />
<!-- Header-Tag for inclueds and scripts -->
<webgen:block name="header">
<title>{title:}</title>
</head>
...
Than I have added the blocks to the .page file:
---
title: Some title
routed_title: Some title
sort_info: 30
--- name:header
{include_file: {filename: include/list_header.txt, process_output: false, escape_html: false}}
--- name:content
{include_file: {filename: include/list_content.txt, process_output: false, escape_html: false}}

Unfortunately, the output does not include the content of the "include/list_header.txt file,
only the crude tag:
<webgen:block name="header">

How to proceed in a better way?

Thank you for your precious help

Fabio