Kind times, Dirk!

Thank you for your explanation. However, I have problem even so.

Add jspwiki.interWikiRef.Portal = https://mydomain.is to jspwiki-custom.properties In Header.jsp link specified: href="<wiki:Link page='Portal' format='url' />"

In result link is http://172.28.3.166:8080/current/Wiki.jsp?page=Portal
Expected https://mydomain.is

What am I doing wrong?


On 2021/05/05 11:00:01, Dirk Frederickx <d...@gmail.com> wrote:
> Yes, you can use interwiki links also in your template code.>
>
> jspwiki.properties :>
> jspwiki.interWikiRef.Mayonaise = https://jspwiki.ru.Mayonaise?page=%s>
>
> In wiki-markup:>
> This is a link to the Mayonaise home-page : [Mayonaise:HomePage]>
>
> In a template you could do this>
> <wiki:Link>Mayonaise:HomePage</wiki:Link>>
>
> or>
>
> <a class="mayonaise-link" href="<wiki:Link page='Mayonaise:HomePage'>
> format='url' />">Link to M</a>>
>
>
>
> dirk>
>
> On Wed, May 5, 2021 at 9:42 AM Alex Rydzewski <ar...@elyland.net>>
> wrote:>
>
> > Hello, Dirk!>
> >>
> > Do I can use that variable in template code?>
> >>
> >>
> > On 2021/05/05 06:23:14, Dirk Frederickx <d....@gmail.com> wrote:>
> > > Hi Alex>>
> > >>
> > > Tx for the additional information.>>
> > >>
> > > You may want to read about>>
> > > https://jspwiki-wiki.apache.org/Wiki.jsp?page=InterWiki>>
> > > which can facilitate establishing links between different wiki sites.>>
> > >>
> > >>
> > > dirk>>
> > >>
> > >>
> > >>
> > > On Tue, May 4, 2021 at 10:56 PM Олександр Ридзевський <>>
> > > rydzewski...@gmail.com> wrote:>>
> > >>
> > > > 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>>
> > > >>>
> > > >>>
> > >>
> >>
> > -->
> > З найкращими побажаннями, Олександр Ридзевський |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.

Reply via email to