If I understand correctly, you want to have a page with a specific content/type, like text/xml ? You would have to patch kernel/layout/set.php to do that, since a template by itself does not have a specific content type (a page is made of several templates, not just one).
I'm not sure that patch is available in the contributions, I would have to check that.
Bertrand : If he is talking about mime Content Type:
Dosn't v3.8 have support for setting that per siteaccess?? Seem a lot easier and more upgradeable then patching kernel files.
vytis: If you are talking about eZ Content types = class types, then you should explain what you are after a little bit better..
I'm talking about mime types. I want to create template for CSS file. Current system returns this as "text/html", and mozilla ignores it, because content type of CSS file must be "text/css"
[HTTPHeaderSettings]
# Enable/disable custom HTTP header data.
CustomHeader=disabled
# Header list. Contains all HTTP which should override standard ones.
HeaderList[]
HeaderList[]=Cache-Control
HeaderList[]=Pragma
HeaderList[]=Expires
# Default Cache-Control header
# HTTP Headers are specified using the following format :
# <HTTP header>[<eZ publish path|module{/view}>]=<value>{;<depth>{;<level>}}
#
# Example :
# # Set Pragma HTTP header to no-cache for whole site, except /news, and 2 levels below news.
# Pragma[]
# Pragma[/]=no-cache;2
# Pragma[/news]=;2;0
To achieve what you need, you could try something like this:
[HTTPHeaderSettings]
# Enable/disable custom HTTP header data.
CustomHeader=enabled
# Header list. Contains all HTTP headers which should override standard ones.
HeaderList[]
HeaderList[]=Content-Type
Content-Type[]
Content-Type[/css]=text/css