> ----- Original Message -----
> From: <[EMAIL PROTECTED]>

> Do you need a dynamic sitemap or a dynamic site structure?
>
> The sitemap is (becomes) HTTP request->response mapping code.
> It needs recompiling for each change to the sitemap.xmap file - a massive
> overhead on a per-request basis (!)
> You can include code that interrogates a dynamic system and influence the
> response - this may be what you mean ? :)
>
> David

Thanks David, but I a not clear on how to do that. Currently I have my own
sitemap/site-config system. I allow authorized/roled users to
add/update/remove pages and folders to a site. I use different XML files to
describe the site for example (is there some example or documentation on how
I could map this to cocoon's "dynamic system"?):

site.xml
------------------------
<config id="koberg_1_0" title="koberg.com" subtitle="Information
Architecture and Content Styling" use_tool_style="1">
 <folder owner="rk123" id="f0000000001" name="koberg" label="Main"
xsl_fileref="body2col.xsl">
  <page xsl_fileref="body2col.xsl" id="p0000000001" is_index="true"
display_label_link="true" label="Home" title="Koberg Home Page">
   <floaters>
    <floater id="Simple" position="left_panel">
    </floater>
    <floater id="emilioMonkeyboy" position="left_panel">
    </floater>
    <floater id="dicksolomon" position="left_panel">
    </floater>
    <floater position="right_panel" id="InfoArch">
    </floater>
    <floater position="right_panel" id="johnnyg">
    </floater>
   </floaters>
   <content>
    <xml id="index_en_01" position="center_panel">
    </xml>
    <xml id="blurb_en_01" position="center_panel">
    </xml>
   </content>
  </page>
  <page xsl_fileref="none" is_index="false" id="78676utvyt"
display_label_link="true" label="About" title="About Koberg Consulting">
   <floaters>
    <floater position="left_panel" id="dicksolomon">
    </floater>
    <floater position="right_panel" id="InfoArch">
    </floater>
   </floaters>
   <content>
    <xml id="Simple" position="center_panel">
    </xml>
    <xml id="about_en_01" position="center_panel">
    </xml>
    <xml id="blurb_en_01" position="center_panel">
    </xml>
   </content>
  </page>
...
</folder>
...
</config>

------------------

content.xml
-----------------------
<config context="koberg" id="koberg_1_0">

   <content>

     <content-xml
         id="index_en_01"
         folder=""
         dropdown_vis="true"
         label="Main Index, English"
         xml_idref="index_en.xml"/>

     <content-xml
         id="InfoArch"
         folder="floaters/"
         dropdown_vis="true"
         label="Information Architect"
         xml_idref="info_arch.xml"/>

    ....
  </content>
</config>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to