Dienstag, 10. Februar 2009

WLW Plugin Insert Umbraco Links

For my blog(s) I am using Windows Live Writer and some Plugins like the Pre Code Snippet. Until now inserting links to other entries in my blog was circular. I had to open the umbraco backend, get the id of the node, goto WLW, add a link, insert {localLink:id}. Save.

With the API from WLW it is possible to implement Plugins for WLW. So I did and created my first WLW Plugin. After some small problems with the Windows Live Writer API and the binding context in a Winform I finished it. Now it is much more comfortable to insert Lokal Links.

Installation

First you have to download the files from my blog. (btw, another plugin idea: inserting media links from umbraco...)

In the downloaded zip-file there are two files included:

  • thoehler.com.wlw.InsertLinkFromUmbraco.dll - which is the dll you have to put in Plugins folder from your WLW installation.
  • th.InsertLinks_v1_Beta_1.zip - which is the package that installs the webservice in your umbraco installation.

Usage

After starting the WLW you get a new entry in the insert menu and in the insert box of your sidebar.

  InsertLink3 InsertLink4

InsertLink2Clicking on the new entry will launch the plugin dialogue. On the first usage the dialogue is empty and you have to edit the settings by clicking on the Settings button (you also can launch the settings dialogue via Extras/Options/Plugins). Here in this dialogue you can add new umbraco instances where you have installed the webservice. You can add several installations which you can easily switch in the Insert Link dialogue. Don't forget to save your settings. The settings are saved from WLW and retrieved back on start.

InsertLink1Now you can go back to the Insert Link dialogue where you select the umbraco instance from which you want to add a link and click down in the tree to your node you want to add. For performance issues I am only loading nodes from one level at once. So if you click on a node it automatically loads the given childnodes (if the node has childnodes). Now click insert Link, done...

Security

The user is is authenticated with the given username and password. The username is mapped to the umbraco user and the nodes that will be retrieved are related to the Start Content setting for the Umbraco User.

Please test this plugin and give me feedback.

Tags: Umbraco | WLW |
back to overview Comments: 3

Comments

  1. Gabriele wrote at Wed, 11 Mar 2009 11:39:12 GMTHi, i have a streming server that stream file in wmv. If i use your plugin i can now view my files on my umbraco pages?
  2. Thomas Höhler wrote at Wed, 11 Mar 2009 15:59:10 GMTYou can see all content items from umbraco and all media items stored in the media section in umbraco. If the wmv's are stored in the umbraco media lib you can see them. Thomas
  3. stc wrote at Mon, 24 May 2010 14:13:02 GMTHi, I was wondering if I could run my idea by you, and you hopefully being interested enough to comment if you find anything I will write impossible to do. I would like to be able to use WLW to author articles from scratch, meaning I would like not to let my website Users (Editors) use Umbraco's backend at all...First problem I had was to make WLW fill in article's property (beside the bodyText)...and that I solved making a custom (New) Event Handler which fills that from the transliterated (in case of non-English characters) nodeName property (which WLW fills automatically from the title space characters entered at the top). Now I would like to have a WLW plugin be able to assign (multiple) related media items to the article authored by it. I have realized there might be a way to this by using your plugin and have it used to insert links into the article textBody which I could clear by using an even more customized event hadler that would recognize all the links in the markup and have them assigned to the Ultimate Picker inherited property as they are cleared from the markup, one by one. Do you find this a good solution please, and if not, would you be kind enough to suggest another one please? TIA P.S. It might be just me (or my umbraco channel settings), but "Properties" (F2) don't work for me, WLW just disables the button in the "View" menu item.

Add a Comment







Archive


Subscribe Feed

Me on Twitter

09.09.10 18:28:  @umbraco happy birthday my friend

09.07.10 20:02:  Aaaaadler ;-)

09.07.10 20:01:  Einmal Bier holen = Tor verpasst => Der Weg in den Keller ist eindeutig zu lang...

09.04.10 06:04:  @Shazwazza Done ;-) #ucomponents #Umbraco

09.03.10 20:43:  @netaddicts LOL

About

It's me
This blog is written by Thomas Höhler. Living next to Frankfurt, Germany, I am trying to share my experiences about Umbraco [the most flexible CMS I know], my ClientTools for Umbraco, and some other more or less usefull stuff

XING

Latest Posts

Design & Masterpage by 69° media solutions