I want to be able to reference an image installed in the tomcat server public instance by using a relative URL.
My problem is that the code snippet is being installed into a paragraph via a standard text/image dialog that is part of the samples shipped with Magnolia. How do I get the current page's context via this code snippet so that I can then create the relative reference, if I can't reference the page properties from within the code snippet inserted in the paragraph? I'm using Magnolia 2.1.3. Here is the code I want to insert into the paragraph: <div class="caseStudy"> <h1>Case Study</h1> <img title="Case Study: Jet Apprenticeships & Traineeships" alt="Case Study: Jet Apprenticeships & Traineeships" src="<relative url goes here>/docroot/quickstart/imgs/cs_jet_home.jpg"/> <h2><a href="browse~casestudy.html">Jet Apprenticeships & Traineeships</a></h2> Australia's No.1 Search Engine for Apprenticeships & Traineeships<br/> <br/> </div> The caseStudy CSS class wraps the image in a coloured box, so I just can't use the normal image load associated with the text/image dialog. Cheers, Paul Pogonoski IMPORTANT NOTICE: This e-mail and any attachment to it is intended only to be read or used by the named addressee. It is confidential and may contain legally privileged information. No confidentiality or privilege is waived or lost by any mistaken transmission to you. If you receive this e-mail in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Japara Solutions is not responsible for any unauthorised alterations to this e-mail or attachment to it. **************************************************************************** **************************************************************************** **************************************************************************** ** CAUTION: Electronic mail sent through the Internet is not secure and could be intercepted by a third party. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your systems administrator. ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
