Finding a topic's GUID from its rendered page in the Dynamic Documentation web app

Topic URLs in the Dynamic Documentation web app use numerical identifiers instead of GUIDs. Technical Writers can set up a tool in their browser to be able to identify the source GUID for content published to theDynamic Documentation web app.

Before you begin

You need to know what a bookmarklet is, and know how to set up bookmarklets in the browser you wish to use. Here are some links for more information on setting up a bookmarklets in different browsers:
  • Chrome:
  • Internet Explorer:
  • Firefox:

About this task

A bookmarklet is a browser bookmark that contains a snippet of code to do something useful.

The GUID is the unique identifier for the source content in the Content Manager repository. On the other hand, when rendered in the Web App, a topic's URL contains numerical identifiers, not GUIDs.

This task shows you how to set up a bookmarklet as tool to allow Technical Writers, to identify the GUID of a topic you are viewing in the Dynamic Documentation web app.

Procedure

  1. Open the browser in which you normally view topics in the Dynamic Documentation web app
  2. Use the following javascript code to set up a bookmarklet in your browser:
    javascript:(function(UI,B,e,a,r,d,C,O,R,E){try{if(UI.SdlDitaDeliveryRootPath!=undefined){R=UI.document}else{throw""}}catch(ex){alert("Not a SDL Delivery Web APP!");return}alert("Topic ID: "+R.querySelector(".page-content > h1.topictitle1").id.split("__")[0])})(window.top);
  3. In the same browser, navigate to an instance of the Dynamic Documentation web app, and view a topic.
  4. Click on the bookmarklet.
    A pop-up provides you with the GUID for this topic, that allows you to identify the source content for the rendered topic.

What to do next

After finding the GUID for a topic you are viewing in the Dynamic Documentation web app, then you know the unique identifier to find this topic in the Content Manager repository. This allows you to find and/or edit the source content for a topic you viewed in the web app.