Tags:
create new tag
view all tags

Question

I'm completely baffled by this one problem in my TWiki. I want the Form output to show on top of the text output on the saved file. In my TWiki, I have "hacked" the edit.tmpl so that the FORMFIELDS are on top. I've figured how to change cgi-bin/preview so the preview puts the FORM stuff on top. However, even when the preview looks right, with the Form at the top, the save file results in the reverse. Here's my web address:

http://www.ku.edu/cgiwrap/polsgrad/twiki/view/Biblio/WebHome

Here is a sample article where the form output is at the bottom:

http://www.ku.edu/cgiwrap/polsgrad/twiki/view/Biblio/PJTestArticle

I've been looking a lot in Store.pm and Meta.pm to try to find where to reverse something, but I'm baffled, as I said.

  • TWiki version:
  • Perl version: 5.6
  • Web server & version: TWiki20011201.tar.gz
  • Server OS: DEC (Compact) Unix
  • Web browser & version: Mozilla
  • Client OS: Linux

-- PaulJohnson - 19 Feb 2003

Answer

If I understand your wants correctly, you shouldn't need to edit any files other than the templates (most specifically edit, preview, and view). Basically what you want to do is create a new skin (see TWikiSkins for details).

For example: copy view.tmpl to view.myskin.tmpl .Edit view.myskin.tmpl and reverse the two lines containing =%TEXT%

= ,e.g.:
%TMPL:P{"standardheader"}%
</form>
%META{"form"}%
%TEXT%
%META{"attachments"}%
%TMPL:DEF{"topicaction"}%

To test add "?skin=myskin" to the url (http://www.ku.edu/cgiwrap/polsgrad/twiki/view/Biblio/WebHome?skin=myskin)

-- MattWilkie - 19 Feb 2003 _

Thanks very much. You are right. I was looking to hard in the Perl stuff, not hard enough at the template

-- PaulJohnson -20 Feb 2003

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2003-02-21 - PeterThoeny
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.