Hi Robert!
Without STK it's a little more tricky, the STK (regardless of whether you use
the templates or not) provides many useful functions...
Personally, I really like to use:
* freemarker for the templates
* the inline-templating module to load the templates from JCR, and be able to
publish templates from author->public
* storing images and PDFs in DMS, to keep a separation between binary and
normal content
To link to an image, use it's DMS path, appended by the image file-name,
something like: ${contextPath}/dms/myfolder/myimage/myimage.png
In theory, you could put your CSS in the DMS too.
If you're using the magnolia community edition, you may want to take a look at
the openmind "simplemedia" module. This will make it easy to get links to
images, also with automatic thumbnails.
Regards from Vienna,
Richard
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]]
Im Auftrag von Magnolia Forums (on behalf of Robert Bowen)
Gesendet: Donnerstag, 14. Juli 2011 00:04
An: Magnolia User List
Betreff: [magnolia-user] Where to store and how to access css and images in page
Hello.
I am a Magnolia noob, but loving what I see so far. I had one quick question: I
am making my templates from scratch and would like to know where to store them
and how to access them in my templates.
I understand the images can be stored in the DMS (Documents) but then how do I
access them with an <img> tag in my template?
Same deal for css. 'Best practice' seems to be store them under STK Resources.
But I am not using STK and probably won't even have it installed on the
production server, so that doesn't sound like a good idea. Anyway, once I have
figured out where to store it, same question, how do I access it with a <style>
tag from my template?
Many thanks,
Bob
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=94a96b87-2558-467b-8615-4900c6ce9080
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------