Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Inspired by the code found <a href="http://mo.notono.us/2009/01/moss-add-incoming-links-to-wiki-page.html" rel="nofollow noreferrer">here</a>, <a href="http://blog.vegaitsourcing.rs/2008/09/adding-new-wiki-page-link.html" rel="nofollow noreferrer">here</a> and <a href="http://www.endusersharepoint.com/?p=1341" rel="nofollow noreferrer">here</a>, I created this file in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\CONTROLTEMPLATES\WikiMiniConsole.ascx</p> <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="false" %&gt; &lt;%@Assembly Name="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt; &lt;%@Register TagPrefix="SharePoint" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" namespace="Microsoft.SharePoint.WebControls"%&gt; &lt;%@Register TagPrefix="SPHttpUtility" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" namespace="Microsoft.SharePoint.Utilities"%&gt; &lt;%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/ToolBar.ascx" %&gt; &lt;%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/ToolBarButton.ascx" %&gt; &lt;SharePoint:RenderingTemplate ID="WikiMiniConsole" runat="server"&gt; &lt;Template&gt; &lt;div style="position:relative;top:0;left:0;"&gt; &lt;div class="ms-wikieditouter"&gt; &lt;table id="miniconsole" cellspacing="0" cellpadding="0" border="0" width="100%"&gt;&lt;tr&gt;&lt;td&gt; &lt;table class="ms-wikieditsecond" cellspacing="0" cellpadding="0" border="0" width="100%"&gt;&lt;tr&gt;&lt;td&gt; &lt;table class="ms-wikieditthird" cellspacing="0" cellpadding="0" border="0" width="100%"&gt;&lt;tr&gt;&lt;td&gt; &lt;!-- this is for the orange cast inside the menu --&gt; &lt;table class="ms-wikieditorange" cellspacing="0" cellpadding="0" border="0" width="100%"&gt; &lt;tr&gt; &lt;td class="ms-wikieditorangeinnera" style=";width:100%;"&gt;&amp;nbsp;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;&lt;td&gt; &lt;wssuc:ToolBar CssClass="ms-wikitoolbar" runat="server"&gt; &lt;Template_Buttons&gt; &lt;SharePoint:WikiEditItemButton Text= "&lt;%$Resources:wss,siteactions_wikieditpage%&gt;" runat="server"/&gt; &lt;SharePoint:WikiPageHistoryButton Text= "&lt;%$Resources:wss,siteactions_viewpagehistory%&gt;" ButtonID="WikiPageHistory" runat="server"/&gt; &lt;SharePoint:WikiIncomingLinksButton Text= "Incoming Links" ButtonID="WikiIncomingLinks" runat="server"/&gt; &lt;/Template_Buttons&gt; &lt;/wssuc:ToolBar&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"&gt; &lt;/script&gt; &lt;script type="text/javascript"&gt; $(function() { var toc = "&lt;div id='toc' style='background:#EBF3FF;" +"border:1px solid #6F9DD9;display:none;" +"position:absolute;top:127;right:11;width:250px;" +"text-align:left;'&gt;&lt;/div&gt;"; $("td.ms-bodyareaframe:first").append(toc); //get the url for the incoming links page u = $("a[id$=WikiIncomingLinks_LinkText]")[0].href; //get the target container and load it with the incoming links //filtered to show the links list only $("#toc").load(u + " .ms-propertysheet"); $("#toc").wrapInner("&lt;ul style='padding:2px;margin:0;list-style-type:none;'&gt;&lt;/ul&gt;"); $("#toc a").wrap("&lt;li style='padding:0;margin:0;'&gt;&lt;/li&gt;"); $("#toc li").prepend("&lt;img style='margin-right:5px;' alt='' src='/_layouts/images/square.gif'/&gt;"); $("#incominglinks").click(function(){ $("#toc").toggle(); }); // override the target of our hyperlink to bring up the menu $("#ctl00_PlaceHolderMiniConsole_ctl00_ctl00_ctl00_RptControls_WikiIncomingLinks_LinkText").attr("href", "#") $("#ctl00_PlaceHolderMiniConsole_ctl00_ctl00_ctl00_RptControls_WikiIncomingLinks_LinkText").click(function(){ $("#toc").toggle(); }); }); &lt;/script&gt; &lt;/div&gt;&lt;/div&gt; &lt;/Template&gt; &lt;/SharePoint:RenderingTemplate&gt; </code></pre> <p>After resetting IIS, the change is applied to all wiki pages on your site.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload