# Message Boards

GROUPS:
 Szabolcs Horvát 6 Votes This is a cross-post from StackExchange. The Details section of documentation pages often contains ">>" links to the examples below. Is there a quick and easy way to add these links using the Workbench documentation tools when creating my own documentation? Usually, there is a button for these things in the Documentation Tools palette. However, I cannot find one for these links.
6 months ago
6 Replies
 Larry Adelston 3 Votes I don't use Workbench. But you can add such links manually: copy an existing link button from a documentation page like ref/Sum. paste the button into the cell in which it is to appear. unformat the target cell by placing your cursor in that cell and choosing the menu command Cell > Show Expression. Copy the rhs value of the option CellID. That value should be a long-ish integer. Again, choose Cell > Show Expression to reformat the cell. place your cursor in the cell that contains the hyperlink that was pasted in step 2. unformat that cell via the same menu command as in step 3. In the cell expression there will be a ButtonBox with the option BaseStyle->"ExampleLink". So the expression will look something like: ButtonBox["[NonBreakingSpace][RightGuillemet]", BaseStyle->"ExampleLink", ButtonData->270825173] select the rhs of ButtonData and paste the CellID value you copied. And reformat the cell via Cell > Show Expression.
6 months ago
 Thank you for the response. Can I fully trust that CellIDs will never change between the documentation source notebooks and the built documentation pages?I looked at a few examples, and it does seem that at least with the current version of DocumentationBuild, they are preserved.
6 months ago
 Larry Adelston 1 Vote That would be my expectation. But I'm not very familiar with Workbench. Can you do a test build to verify CellID preservation?
 Stefan Ragnarsson 4 Votes I asked one of our doc developers, and this was their response (slightly edited): Looks like the docs tools in WB don't support it. This code will make a small palette that does mostly the same thing as what we have in our internal tools. CreatePalette[Button["Create Link", Module[{cell = SelectedCells[InputNotebook[]][[1]], cellid}, cellid = "CellID" /. DeveloperCellInformation[cell]; CopyToClipboard[ Cell[TextData[ ButtonBox[ToString@cellid, BaseStyle -> "ExampleLink", ButtonData -> cellid]]]]]]]  Select the cell you want to link to, click the button in the palette. That copies to the clipboard a link to that cell. Simply paste that link in your notes (yes, it should look like a series of numbers; those numbers are the CellID` of the cell you're linking to). Of course, anyone using this should test it in their own applications to make sure that it works how they want before going nuts with it.