Hi, Lenya users.
I want to add custom doctype to my publication. Also I want to use my
own creator (instead of DefaultBranchCreator).
In sample blog publication there is such a feature:

public class NewBlogEntryCreator extends DefaultBranchCreator {

   protected void transformXML(Document doc, String childId, short childType,
         String childName, Map parameters) throws Exception {
// skip
       // Replace title
       du.setElementValue(doc, "/echo:entry/echo:title",
(String)parameters.get("title"));
}
}

As you see, thay use parameters variable to get values entered into
input fields by user.
I want to do thms like that, but by default, parameters is EMPTY_MAP
and I don't know, in which part of code I should change parameters
variable... I can't recognize where do they do it in blog app.
Can anybody help me with that?

To be clear:

I have class NewMovieReviewCreator:

public class NewMovieReviewCreator extends DefaultBranchCreator

It has method transformXML:
        @Override
        protected void transformXML(Document doc, String childId, short 
childType,
                        String childName, Map parameters) throws Exception {
     String title = (String).get("properties.create.child-name"));
}

title is always null, but i want to assign it value of request
parameter properties.create.child-name

Thanks.

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

Reply via email to