RenderPublishedContentUrl
Render the URL for the locations of published content

%REVINFO{ " $date - $hour:$min " rev=" IF{ "%NATMAXREV%!=%CURREV%" then="%CURREV%" }: Syntax error in '%NATMAXREV%!=%CURREV%' at '%NATMAXREV%!=%CURREV%' " topic="Applications/Support.RenderPublishedContentUrl" }% | Version 1 |

Documentation

This function renders a compete URL pointing to the root of the tree for a published web in the wiki

Parameters
  • theTopic - the root topic for the published web. default: BASEWEB.BASETOPIC

Implementation

%STARTINCLUDE%%EXTRACT{ 
          text="%QUERY{ "{Plugins}{PublishPlugin}{Dir}" }%" 
          pattern="(/pub.*)$"
          format="%QUERY{ "{DefaultUrlHost}" }%$1/file/%theRoot{ default="%BASEWEB%.%BASETOPIC%.html" }%"
}%%STOPINCLUDE%

Test

https://wiki.alphanet.ch/pub/publish/file/Applications/Support.RenderPublishedContentUrl.html

Copyright

© 2015 Your Name

This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. For more details read the LICENSE.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback