Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

javascript and css directory

$
0
0
Hi All,

I try to create a link for a javascript-file
in a sub-directory of my compomenent.

So I defined the links with @ofbizUrl or
@ofbizContentUrl, but they don't give the
results I did would expect.

<@ofbizUrl></@ofbizUrl>

and

<@ofbizUrl fullPath=true></@ofbizUrl>

give mycomponent/control/

(a /control sub-directory does not exist
in the component)

and

<@ofbizContentUrl></@ofbizContentUrl>
<@ofbizContentUrl fullPath=true></@ofbizContentUrl>

both return an empty string.

In a forum post I found a hint, that
dataTemplateTypeId="FTL" should be defined in the
components entity definitions to use
ofbizurl in freemarker files.
But I could not find further documentation on that,
and also in the application-folders it is not
defined for each application.

Do you know a way to get the base-dir
of the component as string,
so that I could define the correct link
in the freemarker-file?

Many Thanks,
Ralf

Viewing all articles
Browse latest Browse all 5648

Trending Articles