Mei Ying's Tech Blog
SharePoint 2007, Microsoft Content Management Server (MCMS), ASP.NET, C# and random thoughts
Wednesday, December 29, 2004
Monday, December 27, 2004
Of Earthquakes and Tsunamis
You must have heard by now about the earthquake that created tsunamis that devastated coastal cities in Asia.
Singapore is blessed by its geographical location. The only effects felt here were slight tremors - and only by a handful of people.
But oh, the carnage in the region!
The first news that trickled in said that tidal waves have hit the beaches of Penang. Next, we heard that Sri Lanka has declared a state of disaster. Later on, a news ticker at the bottom of the TV screen said that many on Phi Phi island are feared dead.
As the death toll rises, our hearts go out to the families who have lost their loved ones.
The day after Christmas... who would have thought...
Sunday, December 19, 2004
Chapter Download - Publishing with Authoring Connector
A sample chapter from our upcoming book Building Websites with Microsoft Content Management Server (Packt Publishing, ISBN 1-904811-16-7) is available for download.
The chapter offers 30 pages of goodies on Authoring Connector and shows how you can publish content directly from Word to MCMS.
The book ships in January 2005. Pre-order it now and shave 30% off the listed price.
Tuesday, December 07, 2004
Using Web Author to Insert Internal Bookmarks
Internal bookmarks let you jump to specific sections of a page. They are typically used when you need to:
Let's see how bookmarks are managed from the HTML Placeholder Control using MCMS' Web Author. Take for example, the case where you need to implement a "Back To Top" link.
Defining the Bookmark
First, we will define the bookmark (sometimes called the internal anchor point). In our example, that will be the top of the page. Somewhere at top of the page, we will specify the the spot that the visitor is brought to when he clicks on the "Back To Top" link. To specify this area in Web Author, simply highlight a space at the top of the page and click on the Insert HyperLink button on the Authoring Toolbar.
Web Author requires you to select something (even if its just a space) before the Insert HyperLink dialog appears. Otherwise, you will get a "There is no selected text or object for hyperlinking" alert.
In the Web Page dialog, enter the name of the bookmark in the Define As Internal Anchor Point section. Here, we name the bookmark "Top".
Inserting the "Back To Top" Hyperlink
Next, enter the words "Back To Top" somewhere at the bottom of the page. Highlight the text and click on the Insert Hyperlink button of the Authoring toolbar again.
This time, in the Hyperlink Address field, enter "#" followed by the name of the bookmark defined earlier. e.g. #Top
To point to a bookmark that sits on another page, simply enter the URL of the page, followed by the bookmark. e.g. http://www.mysite.com/myOtherPage.htm#Top
And you're done!
Linking to Bookmarks on Framed Pages
Most of the time, this technique will work. It may not work when hyperlinking to a bookmark on another page that is framed. The hyperlink will lead the visitor to the framed page, but not to the specific bookmark. That's because the information about the bookmark does not propagate to the child pages within the frameset.
1. look at the URL of the browser's address bar
2. detect if it contains a link to a bookmark
3. if there is a bookmark, it jumps to it.
function CheckForBookmarks()This workaround ensures that bookmarks work even for framed pages where outerscript files are applied.