foswiki: hide some topic info when editing in WYSWYG mode.
Posted
by Mica
on Server Fault
See other posts from Server Fault
or by Mica
Published on 2010-05-18T21:14:28Z
Indexed on
2010/05/18
21:20 UTC
Read the original article
Hit count: 399
foswiki
|topic-template
I have a FOSWiki installation with a bunch of Topic templates already defined. the problem is, when a user selects the topic, they are presented with a bunch of extra information that they should not edit, and should not even see really. Is there a way to hide this content in the WYSWYG editor?
Example: The topic template looks like this:
<!--
* Foswiki.GenPDFAddOn Settings
* Set GENPDFADDON_TITLE = <font size="7"><center>Foo</center></font>
* Set GENPDFADDON_HEADFOOTFONT = helvetica
* Set GENPDFADDON_FORMAT = pdf14
* Set GENPDFADDON_PERMISSIONS = print,no-copy
* Set GENPDFADDON_ORIENTATION = portrait
* Set GENPDFADDON_PAGESIZE = letter
* Set GENPDFADDON_TOCLEVELS = 0
* Set GENPDFADDON_HEADERSHIFT = 0
-->
<!-- PDFSTART -->
<!-- HEADER LEFT "Foo:Bar" -->
<!-- HEADER RIGHT "%BASETOPIC%" -->
<!-- HEADER CENTER " " -->
<!-- FOOTER RIGHT "Doc Rev %REVINFO{"r$rev - $date " web="%WEB%" topic="%BASETOPIC%"}%" -->
<!-- FOOTER LEFT "F-xxx Rev A" -->
<!-- FOOTER CENTER "Page $PAGE(1)" -->
Header 1
foo
etc. etc. etc
<!-- pdfstop -->
And when the user selects the topic template, they get all that in the WYSWYG editor. I would like to hide all that so when the user selects the topic template, they get
Header 1
foo
etc etc etc
Without any of the other mark-up.
© Server Fault or respective owner