Hi,
Over in Forrest, various people want to output files with .shtml or .php
extensions instead of .html.
I thought this would be a matter of overriding
org/apache/cocoon/util/mime.types to redefine the text/html extension, and
setting confirm-extensions="true" in cli.xconf. It works for the first file,
but seems to disable link following:
There's two issues here: 1) How to output other extensions. 2) Link following with confirm-extensions
So, if you've got confirm-extensions set to false, as far as I can see, your extension will be whatever your pattern is in your sitemap (<map:match pattern="foo.shtml"> should generate foo.shtml without any problem. Are you finding that you can't do this.
Link following with confirm-extensions="true": I regularly run it on the docs (I always generate the docs with confirmation on, then off before committing changes). So it works for me. Can you explain what you're doing?
Oh, I did add an element to cli.xconf:
<include-links extension=".html"/>
With this not present, all pages are scanned for links. Without it, only those mentioned with a node like this are scanned. I assume you haven't got one of them in your cli.xconf.
Regards, Upayavira
------------------------------------------------------------------------ cocoon 2.1.2-dev
Copyright (c) 1999-2003 Apache Software Foundation. All rights reserved.
------------------------------------------------------------------------
* [0/0] 13.001s 23.2Kb index.html Total time: 0 minutes 17 seconds
------------------------------
Is this a bug or am I doing something wrong? If it's a bug I'll file in bugzilla (it's not an important/pressing issue).
Thanks,
--Jeff
