[opencms-dev] Inserting linked content using OpenCMS 5.x

Thomas Maerz thomasmaerz at gmx.de
Wed Dec 1 20:40:06 CET 2004


"Gavin, Ben" <BGavin at SkylineTechnologies.com> writes:

> I need to reference one of the flash animations on the index page of the
> site.  I have inserted the appropriate path within the OpenCMS
> hierarchy, but that path is not being resolved properly due to the fact
> that the OpenCMS system doesn't reside at the "root" of the server.  I
> also can't seem to find a way to tell the OpenCMS system to dynamically
> derive the URL from the content location within OpenCMS [which I can do
> from, say, the JSP page templates].  Am I going to be forced to use JSP
> to do this properly, or is there some way to "notify" the OpenCMS system
> that my content needs to be parsed/updated to include the correct
> OpenCMS pathing information?

Maybe this helps:

| <%
| CmsJspActionElement cms = new CmsJspActionElement( pageContext, request, response );
| cmsObject = cms.getCmsObject();
| String uri = cms.getRequestContext().getUri(); 
| 
| 
| String pathToFlash = cms.link( "/system/gallerie/path/go/flash" );
| %>
| 
| <param name="movie" VALUE="<%= pathToFlash %>">

And take a look at CmsJspActionElement#link


Regards,
Thomas




More information about the opencms-dev mailing list