Discussion:
[magnolia-user] Storing documents directly to file system?
Petr Kadlec (via Magnolia Forums)
2012-04-21 17:00:39 UTC
Permalink
Hi,

I'm evaluating Magnolia to see if it's suitable for my university web, which I'm supposed to be rebuilding with a new cms. So far I love Magnolia the most, I just have some questions regarding storage of documents.

Is it possible to store Documents (pdfs, images, videos) directly to file system in their format?

I want this, so that it's also possible to access them via ftp or something, and also because I think it's the best way - system doesnt have to make temp file on demand, can be much faster especially with big files and/or large number of files.

I installed MAgnolia with MySQL and I did set "externalBLOBs" to "true", but with this option files are stored splitted into chunks, which is not exactly what I wanted.

Cheers
Petr
--
Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=a80ef85b-eecc-4951-8209-dca5b8eed41b


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-***@magnolia-cms.com>
----------------------------------------------------------------
Markus Waidhofer (via Magnolia Forums)
2012-04-23 04:42:28 UTC
Permalink
Hi,

in your Magnolia webapplication (on the file system), there is a folder docroot (if not, you can create one). You can put any files you want in there and you can use them anywhere you want on your webpage.

For example, if you put the file someImage.jpeg in the docroot folder, it can be read by localhost:8080/magnoliaAuthor/docroot/someImage.jpeg.

But, I do not know if you can use the activation mechanism for this folder somehow.
--
Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=a80ef85b-eecc-4951-8209-dca5b8eed41b


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-***@magnolia-cms.com>
----------------------------------------------------------------
Jan Haderka
2012-04-23 09:29:14 UTC
Permalink
If you decide to store files in JCR, no matter how you configure persistence you will only see JCR data structures in filesystem.


As Markus said, you can keep files in FS, actually you can keep your files anywhere in the webapp and just configure bypass in cms subchain ( config:/server/filters/cms/bypasses ) to expose the folder in file system.

To activate such content, you can use packager.

Other option would be to have network folder mapped for such files and share this between instances so you don't need to activate those files.

Either way, I would recommend to create special data type to keep meta data about your files inside of Magnolia and to allow users to nicely select them like any other asset.


HTH,
Jan
Post by Markus Waidhofer (via Magnolia Forums)
Hi,
in your Magnolia webapplication (on the file system), there is a folder docroot (if not, you can create one). You can put any files you want in there and you can use them anywhere you want on your webpage.
For example, if you put the file someImage.jpeg in the docroot folder, it can be read by localhost:8080/magnoliaAuthor/docroot/someImage.jpeg.
But, I do not know if you can use the activation mechanism for this folder somehow.
--
Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=a80ef85b-eecc-4951-8209-dca5b8eed41b
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
----------------------------------------------------------------
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-***@magnolia-cms.com>
----------------------------------------------------------------

Jozef Chocholacek (via Magnolia Forums)
2012-04-23 09:13:14 UTC
Permalink
Hi,

you can try to use Magnolia with [url=http://www.jboss.org/modeshape/]Modeshape[/url] - see [url=http://svn.magnolia.info/svn/community/modules/modeshape-support/]the ModeShape support[/url]. You can configure an additional mgnl repository (besides the default website, dms, data, ...) for the documents you want to store on the filesystem. Even the activation should work, but I haven't tested it yet (my goal is slightly different).

Anyway, there are still some performance problems using ModeShape as the only JCR provider, and if you want to use both Jackrabbit and ModeShape, you have to use ModeShape over JNDI. But it works.


Contact me at jchochol AT redhat.com if you're interested in more details.

J.Ch.
--
Jozef Chocholacek
JBoss Community Website Team
www.jboss.org
--
Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=a80ef85b-eecc-4951-8209-dca5b8eed41b


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-***@magnolia-cms.com>
----------------------------------------------------------------
Loading...