Hi Denis,

a module only imports data (DMS, Data module, Website repository), if you
set the magnolia.bootstrap.samples property to true.

Of course, you also get all the sample content from the other modules
imported, so you might want to remove some of the ³demo² modules. I still
have additional content in then, which I do not want, and which I have to
delete manually.

Andreas



Von: Denis Demichev <[email protected]>
Antworten an: Magnolia User-List <[email protected]>
Datum: Wed, 30 Sep 2009 17:48:10 -0400
An: <[email protected]>
Betreff: [magnolia-user]  Custom Magnolia Module

Hello there! 

I want to ask for a help - spending last 2 days trying to package a
primitive custom module for magnolia 4.1 community edition.
I've read 
http://documentation.magnolia-cms.com/reference/custom-module.html and
trying to follow this how to:
1. Created following file structure:
META-INF 
mgnl-bootstrap 
mgnl-bootstrap-samples
mgnl-files 
2. Added module descriptor:
<module> 
  <name>abc-template</name>
  <displayName>Magnolia ABC Templating</displayName>
  <description></description>
  <class>com.abc.cms.ABCModule</class>
  <version>1.5</version>
  <dependencies> 
    <dependency> 
      <name>core</name>
      <version>4.1/*</version>
    </dependency> 
    <dependency> 
      <name>adminInterface</name>
      <version>4.1/*</version>
    </dependency> 
    <dependency> 
      <name>fckEditor</name>
      <version>4.1/*</version>
    </dependency> 
    <dependency> 
      <name>dms</name>
      <version>1.4/*</version>
    </dependency> 
  </dependencies> 
</module> 

3. Exported XML from magnolia and added those files to mgnl-boostrap folder:
config.modules.abc-template.xml
website.customhome.xml
These files contain custom tree branch for abc-template created in magnolia
author tool. 
I've tried to import them manually - it works.

4. created dummy com.abc.cms.ABCModule and placed it into module folder

5. Placed *.jsp template files to
mgnl-files\templates\ProofOfConcept\templates\custom.jsp

Now I'm trying to install this custom module to clean Magnolia 4.1
installation. 
Here's some problems I've encountered
1. My custom web page is not imported
2. My modules\abc-template is not imported - just have a stub with version
number which was in module descriptor
3. My files in mgnl-files folder are not copied to magnoliaAuthor/templates

So here's a question:
It looks like Magnolia is starting to import everything, and places some
information from descriptor to configuration tree, however due to some
exception or misconfiguration it fails to import actual data.
Does anyone hit this problem ever before? I'd really appreciate any help or
a hint. 

Thank you in advance

Regards,
Denis



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to