RenderPublication
Render the publish fragment for the home page of publishable webs

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

Documentation

TODO

Parameters
  • theWeb - the web that is being published. Default: BASEWEB
  • theRoot - the home page of the published topics Default: BASEWEB.BASETOPIC
  • theOutfile - match the outfile parameter of PublishPlugin. Default: .

Implementation

%STARTINCLUDE% 
%INCLUDE{ "%TOPIC%"
          section="publication"
          myWeb="%theWeb{ default="%BASEWEB%" }%"
          myRoot="%theRoot{ default="%BASETOPIC%" }%"
          myLcWeb="%CALCULATE{ "$LOWER($SUBSTITUTE(%theWeb{ default="%BASEWEB%" }%,Web,,))" }%"
          myAnDotCh="%QUERY{ "{DefaultUrlHost}" }%"
          myPublishDomain="%thePublishDomain{ default="http://www.%myLcWeb%.ch/" }%"
          myPublishDir="%EXTRACT{ 
                          text="%QUERY{ "{Plugins}{PublishPlugin}{Dir}" }%" 
                          pattern="(/pub.*)$" 
                          format="$1"
                       }%"
         myOutfile="%theOutfile{ default="." }%"
}% 
%STOPINCLUDE%

publication

%STARTSECTION{ "publication" }%
#LaPublication
Publication
   * séquence des opérations
      1. %myWeb%.PublishWeb, fonction Publier
      1. vérifier le résultat dans la [[%myAnDotCh%/%myPublishDir%/%myOutfile%/%myWeb%/%myWeb%/%myRoot%.html][sortie temporaire]]
      1. si OK, [[%myAnDotCh%/cgi-bin/%myLcWeb%][installer cette copie]] sur %myPublishDomain%
   * %myWeb%.WebPublishLeftBar, %myWeb%.WebPublishMainTopBar, %myWeb%.WebPublishBottomBar
   * [[%SCRIPTURL{"view"}%/%myWeb%/%BASETOPIC%?cover=publish2][voir]]
   * [[https://search.alphanet.ch/cgi-bin/awstats/awstats.pl?config=%myLcWeb%][statistiques]] de %myPublishDomain% (même login/pw que pour ce wiki) 
%ENDSECTION{ "publication" }%

Test

%DBCALL{"RenderPublication"}%

Publication

%DBCALL{ "RenderPublication" theWeb="WebESVR" theRoot="AccueilESVR" }%

Publication

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