Navigation Menu

Skip to content

Commit

Permalink
Item9119: doc fix and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
cdot committed Apr 24, 2017
1 parent 920bd3c commit 232699b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/System/PublishPlugin.txt
Expand Up @@ -416,6 +416,7 @@ You can control what gets published from a topic using =%<nop>STARTPUBLISH%= and
* If =%<nop>STARTPUBLISH%= is the first control tag seen in the file, everything before it will be ignored.
* Everything between =%<nop>STOPPUBLISH%= and the next =%<nop>STARTPUBLISH%= (or the end of the topic) will be ignored.
* =%<nop>STARTPUBLISH%= and =%<nop>STOPPUBLISH%= will be visible in the viewed topic, so you can easily see what will be published from the topic.
* If you don't want to see the tags in normal view, then just define global preferences STARTPUBLISH and STOPPUBLISH using =Set=. Set them to the empty string. That won't stop them being interpreted by the plugin, but will make them invisible in normal view.

Another good trick is to set up a special "publishing" web. Create topics in the web that %INCLUDE the topics from *other* webs that you want to publish. You can use [[%SYSTEMWEB%.VarSTARTSECTION][STARTSECTION]] and [[%SYSTEMWEB%.VarENDSECTION][ENDSECTION]] to highlight what you want published. This way the "publishing" web gives you a view of exactly what will be in the published output, without the need for special publishing tags.

Expand Down
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/PublishPlugin/Config.spec
Expand Up @@ -12,7 +12,7 @@ $Foswiki::cfg{Plugins}{PublishPlugin}{Dir} = '$Foswiki::cfg{PubDir}/publish';
# published file can see the contents of the web. You may need to
# take precautions to prevent accidental leakage of confidential information
# by restricting access to this URL, for example in the Apache configuration.
$Foswiki::cfg{Plugins>{PublishPlugin}{URL} = '$Foswiki::cfg{DefaultUrlHost}$Foswiki::cfg{PubUrlPath}/publish';
$Foswiki::cfg{Plugins}{PublishPlugin}{URL} = '$Foswiki::cfg{DefaultUrlHost}$Foswiki::cfg{PubUrlPath}/publish';
# **COMMAND**
# Command-line for the PDF generator program.
# <ul><li>%FILES|F% will expand to the list of input files</li>
Expand Down

0 comments on commit 232699b

Please sign in to comment.