DokuWiki

It's better when it's simple

User Tools

Site Tools


config:target

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
config:target [2020-01-19 03:30] – [Configuration Setting: target] dkallen78config:target [2022-07-21 09:13] (current) Aleksandr
Line 1: Line 1:
 ====== Configuration Setting: target ====== ====== Configuration Setting: target ======
  
-This configures the HTML TARGET value used for different link types. The target value tells the web browser where to open the requested link. If a target is empty, then the link will open in the same window.+This configures the [[https://www.w3schools.com/tags/att_a_target.asp|HTML TARGET]] value used for different link types. The target value tells the web browser where to open the requested link. If a target is empty, then the link will open in the same window.
  
   * Type: Array   * Type: Array
-  * Default:  +  * Default: <no entry>\\ (That means all links are opened in the same browser window.)
-(All links are opened in the same browser window)+
  
 Possible keys for this array are: Possible keys for this array are:
  
   * ''wiki''   * ''wiki''
-  * ''interwiki'' for [[:interwiki]] links \\ **Note**: Interwiki having the same server will inherit the ''wiki'' configuration instead.+  * ''interwiki'' for [[:interwiki]] links\\ **Note**: Interwiki having the same server will inherit the ''wiki'' configuration instead.
   * ''extern''   * ''extern''
   * ''media'' for uploaded files.   * ''media'' for uploaded files.
   * ''windows'' for windows shares.   * ''windows'' for windows shares.
  
-Possible values for the target attribute :+Possible values for the target attribute:
  
   * ''_blank'' -- open the link in a new window.   * ''_blank'' -- open the link in a new window.
Line 21: Line 20:
   * ''_self'' or empty string -- open the link in the same window.   * ''_self'' or empty string -- open the link in the same window.
   * Other values such as ''_parent'' or ''_top'' or //framename// assume you are using a template with frames, in that situation, you should know what to put in this array.   * Other values such as ''_parent'' or ''_top'' or //framename// assume you are using a template with frames, in that situation, you should know what to put in this array.
- 
-Your local.php file should look something like this: 
- 
-<code>$conf['target']['extern'] = '_blank';</code> 
  
 ===== See also ===== ===== See also =====
config/target.1579401041.txt.gz · Last modified: 2020-01-19 03:30 by dkallen78

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki