[
http://jira.magnolia-cms.com/browse/MGNLDATA-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Philipp Bärfuss resolved MGNLDATA-107.
--------------------------------------
Resolution: Workaround exists
You have to register the node type explicitly. You find an [example in the rss
module|
http://svn.magnolia-cms.com/svn/community/modules/magnolia-module-rssaggregator/tags/magnolia-module-rssaggregator-1.1.2/src/main/java/info/magnolia/module/rssaggregator/setup/RSSAggregatorVersionHandler.java].
{code}
@Override
protected List getBasicInstallTasks(InstallContext installContext) {
final List<Task> installTasks = new ArrayList<Task>();
// make sure we register the type before doing anything else
installTasks.add(new RegisterNodeTypeTask("RssAggregator"));
installTasks.addAll(super.getBasicInstallTasks(installContext));
return installTasks;
}
{code}
> When you install a module that adds datatypes, you can not install content of
> that datatype
> -------------------------------------------------------------------------------------------
>
> Key: MGNLDATA-107
> URL: http://jira.magnolia-cms.com/browse/MGNLDATA-107
> Project: Magnolia Data Module
> Issue Type: Bug
> Affects Versions: 1.4.2
> Reporter: Ernst Bunders
> Assignee: Philipp Bärfuss
>
> When you add some data (node) types during the installation of a module by
> bootstrapping /config/modules/data/config/types/xx and you want to bootstrap
> some nodes of that type as well, you get an exception, becouse the types are
> not yet registered in the jcr.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------