So the question comes up in the Windows Live Writer forum, can you establish bookmarks [HTML] in a blog to link to specific parts of a blog with Windows Live Writer?
The answer is NO- not natively, but you can do it other ways.
But if you know a little HTML code, you can do it. Or if you’ve a HTML WYSIWYG editor it’s not real hard.
You can do this with Kompozer; a free HTML WYSIWYG editor you can download. Very easy to use and portable. Great for quick HTML edits.
If you’re looking to something special/specific with the layout of your site/blog, you can make an attempt establish/compose a blog, edit it with an outside HTML editor to have more HTML control. I suggest trying Kompozer [it’s free and open source]
Here’s my example…
I’m going to provide a example of how this works.
I’ve a table of contents in HTML code in this post.
<p ALIGN="LEFT"><a href="#Why_do_we_use_it_">Why_do_we_use_it_</a></p>
<p ALIGN="LEFT"><a href="#Where_does_it_come_from">Where_does_it_come_from</a></p>
<p ALIGN="LEFT"><a href="#Where_can_I_get_some">Where_can_I_get_some</a></p>
I also have some links in the post as well to link to [jump to]; here’s my examples:
<a name="Why_do_we_use_it_">Why do we use it?</a>
<a name="Where_does_it_come_from">Where does it come from?</a>
<a name="Where_can_I_get_some">Where can I get some?</a>
So these links are in this post and here’s the active example below:
So what happens, you click on a link and it takes you to a point somewhere in the same page of that post; it’s actually pretty neat. Especially if you do instructional posts.
AND you can press the back space button and you’re still on the same page; just back where you were.
This behavior can be affected by the CSS in the site/blog, but for my example [and from Kompozer link settings, I offer this:
Observe the options for the target, you can make some changes there.
Again, this may not work on all blogs, but you can try it, and/or then adjust your CSS accordingly.
Not content completely with this solution I kept looking around, but then settled on this as an alternative.
You can use a nice little tool called Dynamic Templates.
I really suggest you go to the website and watch the videos to get the real idea of the plug-in. It can help/do many things.
I decided to use it, to work to my advantage.
I loaded/opened the plug-in and created this template. It’s crude, but it’s better than the option above.
Establish the new template and insert the code as follows.
<strong>Link:</strong><a href="#<%= anchortag %>">...<%= _selection %></a> <br><strong><a name="<%= anchortag %>"><%= _selection %></a></strong>
This takes the text you highlight, creates a bookmark and then creates an active link to place else where like a TOC listing.
This works much better.
It’d really be helpful if Microsoft would provide a plug-in to be able to easily establish the bookmarks/anchors and then be able to link to them intelligently.
If you’d like, you can leave feedback for the Windows Live Writer team for suggestions/improvements:
For everyone else…I hope this helps…
Until next time,