Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
$URL_PREFIX configuration
prof_brazen_guff
Can anyone tell me where $URL_PREFIX is configured? I need to modify its value if possible as it's causing problems when displaying DCR records.
I can supply additional info if required for the answer to my query.
Thanks in advance for your help
Find more posts tagged with
Comments
tec_iwov
this is not configured but calculated based on the context of execution. This should not be used for internal file references only for web resources such as images, javascript and CSS. If your trying to pull a dcr into your component you shsould be using DCR datum or possibly and external.
prof_brazen_guff
Thanks for the response. We are currently unable to display full DCR records due to $URL_PREFIX assuming that there is no branch identifier in the primary URL when there is.
I'm unclear as to how I can sort this out, so any advice would be gratefully received.
Thanks in advance!
tec_iwov
As i said you cannot use $URL_PREFIX to resolve DCR records. Please use externals or the DCR Datam. if you could elaborate your use case then some one may be able to post a solution for you. Also you need to post what version of Livesite you are using since there are possibly different solutions per version.
prof_brazen_guff
Thanks again.
LiveSite 2.2.1.
We have components which dynamically retrieve DCR data (title/primary URL etc) in a list. The full records are displayed in a generic display.page via a mapping in iw.cfg. This works fine for our central site, but as soon as an extra '/name/' appears in the primary URL, the links break.
Hope this makes sense, I'm struggling to make sense of it myself!
tec_iwov
i'm still not sure what you actually trying to do.
what are you using to get the list of DCR's?
the DCR information should be stored using the work area relative path
ie. templatedata\internet\book\data\book.dcr
then using
com.interwoven.livesite.file.FileDalIfc (you can get an instance from the User)
FileDalIfc.read(new File(FileDalIfc.getRoot(). <DCR relative path>))
or you can use the DCR property to do all this for you. if you need multiple DCR's in your component you can have the DCR property be a replicant.
this will give you the ability to order them as well. The DCR property will inject its content into the content xml.