This question about Configuration, Topic Markup Language and applications: Answered

How to display DefaultUrlHost only?

Hi - I'd like to generate a sitemap for my wiki, which will simply end with a long list of URLs. I started that with a search that displays the results as http://mywebsite.com/Web/Topic. But, for several reasons, I want to avoid writing the websites domain as plain text. So I'd need a way to generate the website's name. Unfortunately, I only found non-satisfying solutions.

My last solution was writing %SCRIPTURL{"view" topic="web.Topic"}% Which seems to work, but then I'm struggling with including it in the FormattedSearch.

So even if you can assist me in getting the above solution to work, I'd still like to find a way to display my wiki's domain whithout the additional /bin/view. For instance, I'd like to have it displayed somewhere on the wiki.

-- Lieven - 02 Oct 2023

Try %DEFAULTURLHOST% ... expands to https://foswiki.org here.

For short urls see the ShorterUrlCookbook

-- MichaelDaum - 02 Oct 2023
 

QuestionForm edit

Subject Configuration, Topic Markup Language and applications
Extension
Version Foswiki 1.1.9
Status Answered
Related Topics
Topic revision: r2 - 02 Oct 2023, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy