Hi Denis,
Not sure if fit would serve your needs, but as it is a string, have you
tried making it into a request by using something like:
<c:set var="template ">
<jsp:include page="/binaries/templates/test.vm "/>
</c:set>
In which case you can use RequestURLMatcher to deal with the
live/preview switch?
Regards,
Ewald
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:hippocms-dev-
> [EMAIL PROTECTED] On Behalf Of Denis Balog
> Sent: Wednesday, May 14, 2008 11:01 AM
> To: Hippo CMS development public mailinglist
> Subject: Re: [HippoCMS-dev] fetchDocument from live Binaries
>
> Hi Mike
>
> We didn't have this functionality before
>
> before i fetched CSS files from repository
>
> This time i need to fetch some document from binary repostiry but in
> JSP frontend
>
> As I wrote in mail i try it with fetchDocument and I explain what is
> going on
>
> That document,i nned to fetch, is just some sort of template (i fetch
> it as string ) which than i parse and show in jsp frontend
>
> That is what client need, that is not my decision , i just got
> functional design to implement.
>
>
> It will not work the way we made for e-overheid for css from live and
> web.xml beacuse there is no new page (css or image) request for that
> document , i need it IN frontend ,
>
>
> <c:set var="href" value="/binaries/templates/test.vm"/>
> <c:set var="template"
value="${repository.fetchDocument[href].content}"
> />
>
> this works when im in preview mode, but does't when i'm in live mode
>
> Is there any other function to fetch from binaries in frontend
>
> I need to get content of some document (as string) in variable
> template from binaries (i know there is only preview, thats clear, i
> didn;t addd live or preview to href)
>
> Thanks in advance,
>
> Denis Balog
>
> HintTech
>
>
>
>
>
>
>
>
>
>
>
>
> On Wed, May 14, 2008 at 10:47 AM, Mike Meijnhard
> <[EMAIL PROTECTED]> wrote:
> > 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
> >
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
********************************************
Hippocms-dev: Hippo CMS development public mailinglist