DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:varlinks

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
Last revisionBoth sides next revision
plugin:varlinks [2016-07-24 17:19] – [Syntax] Erandelaxplugin:varlinks [2016-07-25 11:40] Erandelax
Line 6: Line 6:
 email      : erandelax@gmail.com email      : erandelax@gmail.com
 type       : syntax type       : syntax
-lastupdate : 2016-07-24+lastupdate : 2016-07-25
 compatible : 2016-06-26a "Elenor of Tsort" compatible : 2016-06-26a "Elenor of Tsort"
 depends    :  depends    : 
Line 18: Line 18:
 ---- ----
  
-:!: **Warning!** Newbie creation. Working. Limited. Non-stable.+:!: **Warning!** Working, but non-stable and still in development!
  
 ===== Installation ===== ===== Installation =====
  
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.+Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[Plugins]] on how to install plugins manually.
  
 ===== Examples/Usage ===== ===== Examples/Usage =====
Line 32: Line 32:
   [<private:@USER@:$USER$:message|Hey, write me!>]   [<private:@USER@:$USER$:message|Hey, write me!>]
  
-User ''Two'' reads it few moments later, he clicks a mentioned link, which leads him to ''privat:One:Two:Message'', just like if it was [[private:One:Two|Hey, write me!]]:+User ''Two'' reads it few moments later, he clicks a mentioned link, which leads him to ''private:One:Two:Message'', just like if it was [[private:One:Two|Hey, write me!]]:
  
   [[private:One:Two:message|Hey, write me!]]   [[private:One:Two:message|Hey, write me!]]
Line 40: Line 40:
 ===== Syntax ===== ===== Syntax =====
  
-  [<link|title&params>]+Actually, it is a bit wider already... but this is the only part I've tested yet: 
   [<link|title>]   [<link|title>]
-  [<link&params>] 
   [<link>]   [<link>]
  
 Here ''%%title%%'' is text title of the link (can be absent as well). I am a very newbie, so currently I'm just trying to understand how to detect which type of content is in title (any help?:)... So for now it can feed **text titles only**. Here ''%%title%%'' is text title of the link (can be absent as well). I am a very newbie, so currently I'm just trying to understand how to detect which type of content is in title (any help?:)... So for now it can feed **text titles only**.
  
-''%%params%%'' can be ''%%nocache%%'' (may be there should some more params later) in order to enforce wiki **not to cache** the page with this link.+<del>''%%params%%'' can be ''%%nocache%%'' (may be there should some more params later) in order to enforce wiki **not to cache** the page with this link.</del>
  
 And, finally, ''%%link%%'' is an internal page link or external link (type detection is still... much rude). The main feature of the plugin is that ''%%link%%'' may contain variables from the table below (yeah, cut from [[:plugin:var]]). And, finally, ''%%link%%'' is an internal page link or external link (type detection is still... much rude). The main feature of the plugin is that ''%%link%%'' may contain variables from the table below (yeah, cut from [[:plugin:var]]).
Line 55: Line 55:
 ''%%$variables$%%'' are set during page view, so if you write ''%%$USER$%%'', that means there will be **viewing** user ID in the link when the page is read. ''%%$variables$%%'' are set during page view, so if you write ''%%$USER$%%'', that means there will be **viewing** user ID in the link when the page is read.
  
-Also, you can set non-standard ''%%$%%''-variables like ''%%$hello$%%'' to the link. By default, it will be replaced with its text part (''hello'' for ''%%$hello$%%''), but if you feed your page with POST/GET ''hello=someValue'', there will be ''someValue'' in the link instead.+Also, you can set non-standard ''%%$variables$%%'' like ''%%$hello$%%'' to the link. By default, it will be replaced with its text part (''hello'' for ''%%$hello$%%''), but if you feed your page with POST/GET ''hello=someValue'', there will be ''someValue'' in the link instead.
  
 :!: **Warning!** Disabling cache is slowing down the page load. And for now I've not balanced yet all the situations when it is really needed, so... Yeah, it loves disabling your page caching) :!: **Warning!** Disabling cache is slowing down the page load. And for now I've not balanced yet all the situations when it is really needed, so... Yeah, it loves disabling your page caching)
Line 76: Line 76:
   * Images in ''%%title%%'' field support   * Images in ''%%title%%'' field support
   * More ''%%[[links]]%%''-like syntax   * More ''%%[[links]]%%''-like syntax
 +  * Link inline conditions for links altering
   * Code washing   * Code washing
   * Cache disabler balancing   * Cache disabler balancing

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