Weitere Ergänzungen für ExtraXML:
- GreetingItem verwendet jetzt auch die ExtraXMLGenerators - MultiPartArticle wird mit altem Theme jetzt auch dargestellt git-svn-id: https://svn.libreccm.org/ccm/trunk@1075 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
411dea3f39
commit
75ef47d97b
|
|
@ -50,20 +50,22 @@ public class MultiPartArticleLoader extends AbstractContentTypeLoader {
|
||||||
*/
|
*/
|
||||||
public MultiPartArticleLoader() {
|
public MultiPartArticleLoader() {
|
||||||
|
|
||||||
m_template = new ResourceParameter
|
//Not needed anymore
|
||||||
|
/*m_template = new ResourceParameter
|
||||||
("com.arsdigita.cms.contenttypes.mparticle.template",
|
("com.arsdigita.cms.contenttypes.mparticle.template",
|
||||||
Parameter.REQUIRED,
|
Parameter.REQUIRED,
|
||||||
"/WEB-INF/content-types/com/arsdigita/cms/contenttypes" +
|
"/WEB-INF/content-types/com/arsdigita/cms/contenttypes" +
|
||||||
"/mparticle-item.jsp");
|
"/mparticle-item.jsp");
|
||||||
|
|
||||||
register(m_template);
|
register(m_template);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
public String[] getTypes() {
|
public String[] getTypes() {
|
||||||
return TYPES;
|
return TYPES;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
//Not needed anymore
|
||||||
|
/*@Override
|
||||||
protected void prepareSection(final ContentSection section,
|
protected void prepareSection(final ContentSection section,
|
||||||
final ContentType type,
|
final ContentType type,
|
||||||
final LifecycleDefinition ld,
|
final LifecycleDefinition ld,
|
||||||
|
|
@ -75,5 +77,5 @@ public class MultiPartArticleLoader extends AbstractContentTypeLoader {
|
||||||
(InputStream)get(m_template),
|
(InputStream)get(m_template),
|
||||||
section, type,ld, wf);
|
section, type,ld, wf);
|
||||||
|
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,7 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
<xsl:apply-templates/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.MultiPartArticle']" mode="cms:CT_text"
|
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.MultiPartArticle']" mode="cms:CT_text"
|
||||||
|
|
@ -85,5 +86,6 @@
|
||||||
</div>
|
</div>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
|
<xsl:apply-templates/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,9 @@
|
||||||
*/
|
*/
|
||||||
package com.arsdigita.london.navigation.ui;
|
package com.arsdigita.london.navigation.ui;
|
||||||
|
|
||||||
|
import com.arsdigita.bebop.PageState;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
import javax.servlet.ServletException;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
|
@ -26,6 +29,7 @@ import com.arsdigita.cms.CMS;
|
||||||
import com.arsdigita.cms.ContentBundle;
|
import com.arsdigita.cms.ContentBundle;
|
||||||
import com.arsdigita.cms.ContentItem;
|
import com.arsdigita.cms.ContentItem;
|
||||||
import com.arsdigita.cms.ContentItemXMLRenderer;
|
import com.arsdigita.cms.ContentItemXMLRenderer;
|
||||||
|
import com.arsdigita.cms.ExtraXMLGenerator;
|
||||||
import com.arsdigita.cms.SecurityManager;
|
import com.arsdigita.cms.SecurityManager;
|
||||||
import com.arsdigita.cms.dispatcher.SimpleXMLGenerator;
|
import com.arsdigita.cms.dispatcher.SimpleXMLGenerator;
|
||||||
import com.arsdigita.dispatcher.DispatcherHelper;
|
import com.arsdigita.dispatcher.DispatcherHelper;
|
||||||
|
|
@ -124,6 +128,15 @@ public class GreetingItem extends AbstractComponent {
|
||||||
|
|
||||||
generateGreetingItemXml(itemEl, baseItem);
|
generateGreetingItemXml(itemEl, baseItem);
|
||||||
|
|
||||||
|
for(ExtraXMLGenerator generator : baseItem.getExtraXMLGenerators()) {
|
||||||
|
try {
|
||||||
|
generator.generateXML(baseItem, content, new PageState(null, request,
|
||||||
|
response));
|
||||||
|
} catch (ServletException ex) {
|
||||||
|
s_log.error(ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue