Recent Changes - Search:



How do I prevent pmwiki from automatically changing text into a link. e.g. I want this to appear as text, not a link:

See my the second yellow section on this page for an example:

You can wrap the address in the "escape" characters [@link@] or [=link=]:

How can I open an external link in the SAME window (adding %target=_self% doesn't work)?

You shouldn't need to add anything, normally external links open in the same window. If not, check if you don't have set a custom $UrlLinkFmt variable (which shouldn't contain target='_blank').

  • Interesting. I have an external link set up in the sidebar and when I go to the wiki and click it behaves as you say but after I edit the side bar (don't change anything or even save just click cancel) it then adds the external link icon to the link and opens it in a new window! Refreshing doesn't revert it. The only way to 'reset' it is to enter wiki from the link on another page. Very odd but not overly inconvenient. Weird that the external link icon disappears too. I've done no link variables.
  • Ok now it is really annoying as the behaviour changes not just when editing the sidebar but when entering edit on any page.

Make sure you close the %target=_blank% [[link]] with %% every time, or else all subsequent links in the same paragraph will open in new windows. Also, a skin or a recipe may modify the $UrlLinkFmt variable to force a target=_blank attribute. --Petko April 14, 2009, at 10:36 PM

How can I make a link back to site where I came from (like the button in the browser)?

How do I give a link a Tool Tip? eg [[Links"tool tip"]] or [[Links | here"tool tip"]]

See PITS:00657 and Cookbook:LinkTitles.

How do I use an InputSelection menue as a Link selection. Where do I include the Link-url in the code line?

Hi stan, what are you looking for exactly? Can you give an example. Is Forms or Menus not giving the answer yet? -- SchreyP June 05, 2010, at 05:23 AM

trying ... but want to use inside of a

[[http://somewhere_I_Want_opened_in_a_new_window | Somewhere]] [[%target=_blank% http://somewhere_I_Want_opened_in_a_new_window %%| Somewhere]] Above does not work I know I could just code my own a href's but would rather stick with wonderful wiki codes Ward Christensen

Hi Ward, try %target=_blank% or %newwin% outside the double square brackets, like %newwin% [[http://somewhere_I_Want_opened_in_a_new_window | Somewhere]]%%.
It could be that in Firefox it opens in a new tab, if "Open new windows in a new tab instead" is checked in Menu Tools > Options... under the tab "Tabs" -- SchreyP September 30, 2010, at 03:52 PM

Links with custom parameters?

With include-other-pages, it is possible to specify custom parameters, which can alter the content shown in the included page. Is it possible to do this with links? For example, to have a page which is a template, and the data drawn from page-text-variables elsewhere, based on the parameters specified? -- DougM27 January 13, 2011, at 10:38 AM

I don't know if your template can contain a URL parameter (you'd have to test), but you should at least be able to have your include directive contain one. (This requires Cookbook:HttpVariables.) For example: (:include MyFile MyParm={$?MyParm}:) RandyB February 26, 2011, at 10:55 AM

How do I enter links with round brackets


Use "%28" for "(" and "%29" for ")" Or use Cookbook:FixURL

How do I enter links with double quotes?

 Links with double quotes at the end can be mistaken for image tool tips

Replace double quotes (") with "%22"

All of the links on my pages have the external link icons (i.e. a little square with an arrow point to the upper right, see here for example: behind them? How do I get rid of them?

This happens because for some reason the links are considered external. This often happens when using the static page generator which converts some pages to html links. The simplest way to fix this is to edit local/config.php and place this text in there:

## This changes external links to not have the small link icon in them:
# This is the default:
#$UrlLinkFmt = "<a class='urllink' href='\$LinkUrl' title='\$LinkAlt' rel='nofollow'>\$LinkText</a>";
$UrlLinkFmt = "<a class='plainlinks' href='\$LinkUrl' title='\$LinkAlt' rel='nofollow'>\$LinkText</a>";

This only happens in some skins (monobook?). --Petko June 24, 2012, at 05:02 PM

This is a talk page for improving PmWiki.Links.

Edit - History - Print - Recent Changes - Search
Page last modified on November 11, 2012, at 02:41 AM