Denis, I believe you have asked this question before. But I suggest that you first have a good look at your design. Is it really necessary to put your style sheets in binaries for instance? You are free to put them in binaries but as you have noticed from earlier replies it is not a standard way to do these things.
To get back to your question. Since you get a binary stream from the repository the .content is not appropriate. Add an extra repository filter to your web.xml with a filter mapping on /live/binaries and configure it with the preview settings. Regards, Mike Meijnhard > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Denis Balog > Sent: woensdag 14 mei 2008 9:56 > To: Hippo CMS development public mailinglist > Subject: Re: [HippoCMS-dev] fetchDocument from live Binaries > > Thanks Ard, > > I need to fetch a binary and i want to fetch it from preview > repository > > But can't do that whit this > =============================================== > > <c:set var="href" value="/binaries/templates/test.vm"/> > <c:set var="template" > value="${repository.fetchDocument[href].content}" /> > > =============================================== > > when I'm int preview mode it works > BUT > When i'm in live mode (i don't need binaary from live > repository , i didn't put $mode in href) it doesn't work > maybe fetchDocument add live or preview in href that means > when i'm in preview mode it adds preview and it's ok but when > i'm in live it add live and that is the problem > > How do you fetch binaries in frontend from preview repository > when you are in live mode? > > > Thanks in advance, > > Denis Balog > > HintTech > > . > > > > > > On Wed, May 14, 2008 at 9:24 AM, Ard Schrijvers > <[EMAIL PROTECTED]> wrote: > > Hello Denis, > > > > Our cms/repository does not publish binaries (and there is no > > workflow on them (by default)). Therefor, binaries are > always taken > > from the preview, even if you are in the 'live' frontend. > > > > Normally, if in the frontend we need to fetch a binary, we > just use > > the preview repository href. I know some customers are > using workflow > > on binaries, so if you really need it, it should be > possible. If so, > > you might get some pointers on this list. I never used workflow on > > binaries though, so can't help you with the details, but > others might know. > > > > Regards Ard > > > > > > > > > > > > Hi all, > > > > > > We are working on Susa project and client need > funcionality > to > > fetch some template from repository > > > I made it to work with > > preview is OK > > but when i try to fetch in live mode > i'm getting > > exception > > I know there is no live and preview repository so i > > didn't > add any mode to href > > As I sad in preview > mode it works > > OK but in live it doesn't > > Just simple code > > > > =============================================== > > > > > > <c:set var="href" value="/binaries/templates/test.vm"/> > > > <c:set var="template" > > > value="${repository.fetchDocument[href].content}" /> > > > > =============================================== > > > > > > > > > > > > Is this possible to work with live OR to say client templates > > > must be in filesystem as jsp files > > Thanks in advance, > > > > Denis Balog > > HintTech > > > ******************************************** > > > Hippocms-dev: Hippo CMS development public mailinglist > > > ******************************************** > > Hippocms-dev: Hippo CMS development public mailinglist > > > ******************************************** > Hippocms-dev: Hippo CMS development public mailinglist > ******************************************** Hippocms-dev: Hippo CMS development public mailinglist
