Hi Daniel, What you're creating is a controller that will only work if there's a request parameter present. I'm assuming you're creating a single product page that will present any product based on the parameter passed. This will work fine when used this way but will break in the page editor where the id is not present. Your editors won't be able to edit this page in a meaningful way. As soon as they add this component to page they can't edit it any more.
To solve it I would recommend you show nothing or some mock product info when the parameter is missing. Make it optional by setting required to false on the annotation. public ModelAndView render(@RequestParam(value="id", required=false) int id, Node content) If you would rather show an empty page than the mockup info in production you can test whether the Magnolia instance is an author instance. boolean isAdminInstance = Components.getComponent(ServerConfiguration.class).isAdmin(); Hope that helps, Tobias -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=2e989327-ab5a-4654-96f9-64b8eacb27e9 ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
