The controller, at this point, is loaded once at boot up. you can write an enhanced xml editor that reads the xsd for fields in a form, similar to how the widgets read the entities to display info. But non of this has been done, to my knowledge. Just a note, view map must follow all the request-maps or you get an error on loading. my thought it would better to have all these in the Controller on distribution then they can just edit the FAQ page as HTML in the Content application.
JohnBrown sent the following on 1/9/2008 2:47 PM: > Hi Guys, > > I am in process of making more intuitive UI and some automation over > standard ofbiz CMS for creating FAQ, Policy and alike pages. The process > involves adding some entries ( a reference to page and the view map etc.) to > controller.xml file. ANd what I would like at this point is that user just > would enter the url part he wants it to be: for example > host.com:8080/ecommerce/MyFAQPage and there would be generated respective > entries in controller.xml behind the scene - with no need for user to edit > the file manually. > something like: > > <request-map uri="MyFAQPage"> > <security https="false" auth="false"/> > <response name="success" type="view" value="FAQ"/> > </request-map> > ..and the view map. > > So I wonder does Ofbiz has something already within the packages which could > help me to add such kind of entries to controller.xml via java code? Perhaps > some xml file editor api classes? > > Thank you guys in advance for any hints.
