Thank you for reply. Well, I can add ( pre-define) URLS/MAPS to conroller in design time for some standard pages but it works unless they want to add a new custom page with some URL/MAP which is not in controller. And this is where I need programmatically add the entry in runtime. Because, the content admin person will just get lost in raw xml editing and quit possible can make syntax error there etc.
On my opinion this would be a useful thing to automate in the terms of user-friendly content management. BJ Freeman wrote: > > 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. > > > -- View this message in context: http://www.nabble.com/Some-API-to-Edit-controller.xml--tp14723536p14724653.html Sent from the OFBiz - User mailing list archive at Nabble.com.
