Kind times, Dirk!

I have one host with tomcat. In that tomcat I run several context (several copy of) with jspwiki. Each instanse of jspwiki has own data but use the one common template (modified haddock). In the template header placed some image clicking by which need for me so that direct to another external http site. Each of the jspwiki instance has its own link. For example. jspwiki.ru must contain link to blablabla.ru, jspwiki.en contain link to blbl.en, and so on...


On 2021/05/01 16:45:43, Dirk Frederickx <d...@gmail.com> wrote:
> Hi Alex,> >
> >
> >
> I probably don't fully understand your use-case.> >
> It seems you need to use WikiVariables in your template JSP ...> >
> >
> Assume you would have following pages; containing the 'condiment' Wiki> >
> Variable:> >
> >
> PAGE_1> >
> [{SET condiment='mayonaise'}]> >
> >
> PAGE_2> >
> [{SET condiment='pickles'}]> >
> >
> PAGE_3> >
> [{SET condiment='pickles'}]> >
> >
> >
> Now you could modify the HEADER.JSP by adding a page link which will change> >
> depending on the value of this variable.> >
> You can use the Variable TLD to read-out any wiki variable in your JSP's,> >
> like so:> >
> >
> HEADER.JSP> >
> >
> <div class="header">> >
> ..> >
> <div class="pagename"> .... </div>> >
> >
> <div class="special-link">> >
> <wiki:Link><wiki:Variable var="condiment" default="Pickles" /> Home> >
> Page</wiki:Link>> >
> </div>> >
> </div>> >
> >
> >
> So, when visiting PAGE_1; the header will have a link to "Mayonaise Home> >
> Page".> >
> When visiting PAGE_2 or PAGE_3; the header will have a link to "Pickles> >
> Home Page".> >
> When visiting other pages without the "condiment" variable, the link will> >
> point to "Pickles Home Page".> >
> >
> Hope this is helpful,> >
> >
> Grtz,> >
> dirk> >
> >
> >
> On Thu, Apr 29, 2021 at 10:35 AM Alex Rydzewski <ar...@elyland.net>> >
> wrote:> >
> >
> > Bit more description. "Several context" mean tomcat context - several> >
> > jspwiki.> >
> >> >
> > On 2021/04/29 08:27:56, Alex Rydzewski <a....@elyland.net> wrote:> >
> > > Thanks for your attentions, Dirk!>> >
> > >> >
> > > I have modified template which used by several context with own data. >> >
> > > Header.jsp contain logo click by which must open another internet> >
> > page, >> >
> > > but the page different for each context.>> >
> > > I hope use variable that I could set for each context separately (like >> > > > > the CopyrightNotice.txt, for example), which will be contain external >> >
> > > page link, and use that variable in Header.jsp.>> >
> > >> >
> > >> >
> > > On 2021/04/28 19:10:11, Dirk Frederickx <d....@gmail.com> wrote:>> >
> > > > Hi,> >>> >
> > > > >>> >
> > > > Can you describe a bit more in detail what you are trying to> >
> > achieve?> >>> >
> > > > >>> >
> > > > >>> >
> > > > dirk> >>> >
> > > > >>> >
> > > > On Wed, Apr 28, 2021 at 5:21 PM Alex Rydzewski <ar...@elyland.net>>> >
> > >>> >
> > > > wrote:> >>> >
> > > > >>> >
> > > > > Good day!> >>> >
> > > > >> >>> >
> > > > > I did read the explanation> >>> >
> > > > > https://jspwiki-wiki.apache.org/Wiki.jsp?page=WikiVariable and do >> >
> > > not> >>> >
> > > > > uderstand, how create custom variable for context.> >>> >
> > > > > I needed variable, which will be contain link to another page >> >
> > > different> >>> >
> > > > > for each context which placed in the wiki Header.> >>> >
> > > > >> >>> >
> > > > > Tell me please, how I can make that.> >>> >
> > > > >> >>> >
> > > > > Thanks in advance.> >>> >
> > > > >> >>> >
> > > > > --> >>> >
> > > > > З найкращими побажаннями, Олександр Ридзевський |With best> >
> > regards, >> >
> > > Mr.> >>> >
> > > > > Alexander Rydzewski, |С наилучшими пожеланиями, Александр >> >
> > > Рыдзевский> >>> >
> > > > > Системний та мережевий інженер, Elyland ltd. |System and Network> >>> > > > > > > Engineer at Elyland ltd. |Системный и сетевой инженер, Elyland> >
> > ltd.> >>> >
> > > > >> >>> >
> > > > >> >>> >
> > > >>> >
> > >> >
> > > -- >> >
> > > З найкращими побажаннями, Олександр Ридзевський |With best regards,> > > > Mr. Alexander Rydzewski, |С наилучшими пожеланиями, Александр Рыдзевский>> >
> > > Системний та мережевий інженер, Elyland ltd. |System and Network> >
> > Engineer at Elyland ltd. |Системный и сетевой инженер, Elyland ltd.>> >
> > >> >
> > >> >
> >> >
> > --> >
> > З найкращими побажаннями, Олександр Ридзевський |With best regards, Mr.> > > > Alexander Rydzewski, |С наилучшими пожеланиями, Александр Рыдзевский> >
> > Системний та мережевий інженер, Elyland ltd. |System and Network> >
> > Engineer at Elyland ltd. |Системный и сетевой инженер, Elyland ltd.> >
> >> >
> >> >
>

--
З найкращими побажаннями,       |With best regards,
Олександр Ридзевський           |Alexander Rydzewski

Reply via email to