Tags:
create new tag
view all tags

SID-01894: How to put EDITPREFERENCES into verbatim

Status: Answered Answered TWiki version: 6.0.0 Perl version:
Category: CategoryRendering Server OS: Last update: 11 years ago

(view code in raw mode)

In entering Bugs:Item7647 I wanted to show the line of code that should be working but isn't.

I finally ended up using a screenshot:
SID-01894_screenshot.png

I tried
SID-01894ScreenShot-2.png

which results in

<form method="post" action="https://twiki.org/cgi-bin/viewauth/Support/SID-01894#EditPreferences" enctype="multipart/form-data" name="editpreferences"><input name="prefsaction" type="hidden" value="edit" /><input type="submit" name="edit" value="Edit Group Settings" class="twikiButton" /></form>

I tried
SID-01894ScreenShot-3.png

which results in

%<nop>EDITPREFERENCES{ "%<nop>%SYSTEMWEB%.TWikiPreferencesForm" editbutton="Edit Group Settings" }%

I tried
SID-01894ScreenShot-4.png

which results in

!<form method="post" action="https://twiki.org/cgi-bin/viewauth/Support/SID-01894#EditPreferences" enctype="multipart/form-data" name="editpreferences"><input name="prefsaction" type="hidden" value="edit" /><input type="submit" name="edit" value="Edit Group Settings" class="twikiButton" /></form>

Note: I did not, initially, try
SID-01894ScreenShot-5.png

%EDITPREFERENCES{ "%SYSTEMWEB%.TWikiPreferencesForm" editbutton="Edit Group Settings" }%
which is the only one that works.

But how can I get this result with verbatim? And if not... shouldn't that be possible to do?

-- Vicki Brown - 2014-03-24

Discussion and Answer

I checked, the plugin uses the beforeCommonTagsHandler() which, unlike the commonTagsHandler() is not aware of verbatim. Not exactly sure why it is done so early in the rendering pipeline, could be to catch variables in a pristine state.

This item could be handled as a bug, well, low prio bug.

-- Peter Thoeny - 2014-03-24

Bug filed: Bugs:Item7471

-- Vicki Brown - 2014-03-26

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title How to put EDITPREFERENCES into verbatim
SupportCategory CategoryRendering
TWiki version 6.0.0
Server OS

Web server

Perl version

Browser & version

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng SID-01894ScreenShot-2.png r1 manage 16.7 K 2014-03-24 - 22:00 VickiBrown screenshot
PNGpng SID-01894ScreenShot-3.png r1 manage 18.5 K 2014-03-24 - 22:00 VickiBrown screenshot
PNGpng SID-01894ScreenShot-4.png r1 manage 16.8 K 2014-03-24 - 22:00 VickiBrown screenshot
PNGpng SID-01894ScreenShot-5.png r1 manage 17.2 K 2014-03-24 - 22:00 VickiBrown screenshot
PNGpng SID-01894_screenshot.png r1 manage 12.9 K 2014-03-24 - 21:51 VickiBrown screenshot of code
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2014-03-26 - VickiBrown
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.