Vejledning
inputformater:- Filtered HTML:
- Web- og e-mail-adresser omdannes automatisk til links.
Tilladte HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
Sitet tillader brugen af HTML. Det kan virke overskueligt at lære alt om HTML, men det kan være praktisk at kende de mest brugte HTML "tags". Denne tabel giver eksempler på de tags der kan bruges på sitet.
Se W3C's HTML specifikation for yderligere information eller brug din foretrukne søgemaskine til at finde sites der forklarer brugen af HTML.
Beskrivelse af mærke Du indtaster Du får Ankre bruges til at lave links til andre sider. <a href="http://mathi.dk">mathi.dk</a>mathi.dk Fremhævet <em>Fremhævet</em>Fremhævet Stærk <strong>Stærk</strong>Stærk Citeret <cite>Citeret</cite>Citeret Kode bruges til at vise kildekode <code>Kode</code>KodeUordnet liste - brug <li> for at starte et punkt på listen <ul> <li>Første punkt</li> <li>Andet punkt</li> </ul>- Første punkt
- Andet punkt
Ordnet liste - brug <li> for at starte et punkt på listen <ol> <li>Første punkt</li> <li>Andet punkt</li> </ol>- Første punkt
- Andet punkt
Definitionslister svarer til de andre HTML lister. <dl> startet definitionslisten, <dt> starter et ord og <dd> starter beskrivelsen af ordet. <dl> <dt>Første ord</dt> <dd>Første definition</dd> <dt>Andet ord</dt> <dd>Anden definition</dd> </dl>- Første ord
- Første definition
- Andet ord
- Anden definition
De fleste tegn kan indtastes direkte uden problemer.
Hvis du alligevel støder på problemer kan du prøve at bruge HTML tegnkoder. Brug f.eks. & for at vise et ampersand & tegn. Se desuden den komplette liste af tegnkoder. De mest brugte tegn er:
Tegn Du indtaster Du får Ampersand && Større end >> Mindre end << Citationstegn "" - Linjer og afsnit genkendes automatisk. Linjeskift-tagget <br/> samt afsnits-taggene <p> og </p> indsættes automatisk. Hvis afsnit ikke genkendes skal du blot indsætte et par tomme linjer.
- Full HTML:
- Web- og e-mail-adresser omdannes automatisk til links.
- Linjer og afsnit genkendes automatisk. Linjeskift-tagget <br/> samt afsnits-taggene <p> og </p> indsættes automatisk. Hvis afsnit ikke genkendes skal du blot indsætte et par tomme linjer.
-
SWF Tools Filter
The basic syntax for embedding a flash file (.swf), flash movie (.flv) or audio file (.mp3) is:
[swf file="filename.swf"]If you would like to override SWF Tools and flash player default settings, you can specify additional parameters. For example:
[swf file="song.mp3" flashvars="backcolor=#AABBCC&&forecolor=#11AA11"]If you would like to output a list of files then the format is:
SWF Tools Filter will accept following:[swf files="image1.jpg&&image2.jpg&&..."]- params : You can specify values for parameters to be passed to Flash
to control the appearance of the output. Typical values are
bgcolor and wmode. Example:
params="wmode=true&&bgcolor="#00FF00"Alternatively you can supply each parameter individually without usingparams. Examplewmode="true" bgcolor="#00FF00" - flashvars : You can specify values for output as flashvars, which
become available to the Flash movie that is playing. This is often done
to control a media player. Refer to the documentation of the flash player
you are using to know what flashvar options are available.
Example:
flashvars="autostart=true&&volume=80" - methods : Optional information about how to display the file. The most
common usage is to specify a particular media player and
thus override the default specified on the settings page.
Example:
methods="player=onepixelout_mp3"
WARNING: with params, flashvars and othervars, pass multiple values separated by &&.
- params : You can specify values for parameters to be passed to Flash
to control the appearance of the output. Typical values are
bgcolor and wmode. Example:
-
The Views module allows administrators to create dynamic lists of content for display in pages or blocks. It is possible to insert those lists into existing node bodies and blocks, but such inclusion requires that PHP filtering be turned on. The Insert View module allows any user to insert view listings using tag syntax, without the need for PHP execution permissions. The Insert View tag syntax for embedding a view is relatively simple:
[view:my_view]
is replaced by the content listing corresponding to the named view. In this case it is my_view.
[view:my_view=my_display]
invokes the my_view view using the my_display view display ID. If the display slot is left empty, the view's "default" display is used.
[view:my_view=my_display=1,2,3]
uses the my_display view display, and passes a comma delimited list of arguments (in this case 1, 2, and 3) to the view.
Here's an example you could use with the default view named "tracker" which uses the page display and takes a user ID as an argument:
[view:tracker=page=1]
In short this tag says, "Insert the view named tracker, use the "page" display, and supply the argument 1."
Sometimes you want to pass an argument without specifying a display ID. You can do that by leaving the display ID slot empty, like so:
[view:my_view==1]
How to find a display ID: On the edit page for the view in question, you'll find a list of displays at the left side of the control area. "Defaults" will be at the top of that list. Hover your mouse pointer over the name of the display you want to use. A URL will appear in the status bar of your browser. This is usually at the bottom of the window, in the chrome. Everything after #views-tab- is the display ID. For example in http://localhost/admin/build/views/edit/tracker?destination=node%2F51#views-tab-page the display ID would be "page".
It's possible to show video content in the lightbox. In this case the "rel" attribute should be set to
lightvideo. It's possible to group videos and to control the size of the lightbox by setting the "width" and "height" properties. The properties can be configured likelightvideo[group|width:300px; height: 200px;][caption]. The properties should all be of the format "property: value;" - note the closing semi-colon. If no properties are set, then the default width and height of 400px will be used. See below for more detailed examples.Basic example:
<a href="http://video.google.com/videoplay?docid=1811233136844420765" rel="lightvideo">Google video example - default size</a>Controlling lightbox size example:
<a href="http://video.google.com/videoplay?docid=1811233136844420765" rel="lightvideo[group|width:400px; height:300px;][caption]">Google video example - custom size</a>Supported video formats include asx, wmv, mov and swf. A number of online video providers are also supported, including YouTube and Google Video. For a full list of the current supported video providers please see the documentation on drupal.org.