ContentItemPage:
Hinzugefügt: * Ausgabe des Contenttypes (siehe Ticket #1683) git-svn-id: https://svn.libreccm.org/ccm/trunk@2276 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
ca50661b68
commit
86df63062d
|
|
@ -56,6 +56,8 @@ import com.arsdigita.kernel.ui.ACSObjectSelectionModel;
|
|||
import com.arsdigita.persistence.OID;
|
||||
import com.arsdigita.ui.DebugPanel;
|
||||
import com.arsdigita.util.Assert;
|
||||
import com.arsdigita.xml.Document;
|
||||
import com.arsdigita.xml.Element;
|
||||
import java.io.IOException;
|
||||
import java.math.BigDecimal;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
|
@ -524,4 +526,19 @@ public class ContentItemPage extends CMSPage implements ActionListener {
|
|||
protected WizardSelector getWizardPane() {
|
||||
return m_wizardPane;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the content type to the output.
|
||||
*
|
||||
* @param state PageState
|
||||
* @param parent Parent document
|
||||
* @return page
|
||||
*/
|
||||
protected Element generateXMLHelper(PageState state, Document parent) {
|
||||
Element page = super.generateXMLHelper(state, parent);
|
||||
Element contenttype = page.newChildElement("bebop:contentType", BEBOP_XML_NS);
|
||||
contenttype.setText(m_item.getContentItem(state).getContentType().getLabel());
|
||||
|
||||
return page;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue