[opencms-dev] Bug in OAMP feeder module?
Tobias Karrer
kartobi at gmail.com
Wed Jan 30 14:17:51 CET 2013
Hi all,
got two questions concerning the OAMP feeder module (version 2.0.0).
As described in the module documentation, it should be possible to add
feedrules to the schema of the according XML content:
<xsd:appinfo>
...
<handler
class="com.alkacon.opencms.v8.feeder.CmsFeedXmlContentHandler"/>
...
<feedrules>
<feedrule element="Title" mapto="Title" maxLength="" default="" />
<feedrule element="Description" mapto="Description"
maxLength="250" default="" />
<feedrule element="-" mapto="DatePublished" maxLength=""
default="dateCreated" />
</feedrules>
</xsd:appinfo>
But when opening the feed I get an error - <formatters> (and as well
<tabs>) are not allowed in XML:
Unable to unmarshal XML content definition schema
"opencms://system/modules/myModule/schemas/job.xsd".
Reason: XML validation error :
<errors>
<error column="15" line="25">cvc-complex-type.2.4.a: Invalid
content was found starting with element 'formatters'. One of '{handler,
preview, defaults, searchsettings, relations, modelfolder, feedrules}'
is expected.</error>
</errors>
<warnings/>.
Seem like a bug. Or is there any configuration missing?
Then, is there a posibility to map categories to the feed?
A lot of content types you normally add to a feed (news, press releases,
jobs) do have categories.
So it would be quite helpful to be able to map these...
Best,
Tobias
More information about the opencms-dev
mailing list