Tags:
create new tag
view all tags

Question

Hello!

Is there a way to put text into a frame (like in a sidebar of an article) so that it does not look like a table cell? I did not find anything like this in the manual...

Thanks a lot

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- DanielOderbolz - 21 Apr 2008

Answer

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.

What I have done to address this is to define a SIDEBAR variable in TWikiPreferences topic like this:

  • Set sidebar style:
      * Set STARTSIDEBAR = <div style="position:relative;float:right;width:30%;background-color:white;border:2px dotted %WEBBGCOLOR%;padding:1em;margin:0.5em;display:inline;">
      * Set STOPSIDEBAR = </div>

Of course, you can style it to your liking by modifying the css. The reason for the white background is so that the background color given to h2 and h3 headings in PatternSkin and NatSkin don't cut across your sidebar.

I've inserted the SIDEBAR tag at the very beginning of this topic to demonstrate how it works.

-- LynnwoodBrown - 21 Apr 2008

Hey, this is cool! BTW: How hard is it to create a tag like %COMMENT{type="supportquery"}% (one with a parameter I mean?)

-- DanielOderbolz - 22 Apr 2008

Custom variables don't support parameters. However you can do similar solution with VarINCLUDE which do accept parameters.

-- LynnwoodBrown - 22 Apr 2008

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2008-04-22 - LynnwoodBrown
 
  • 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.