Skip to main content
Participant
January 16, 2025
Question

How do I make a clickable image in structured FM (DITA)

  • January 16, 2025
  • 2 replies
  • 234 views

I want to use clikable images in structured FM (DITA). In other words, I want to use an image as a clickable button. Click the image and you arrive at the target content. I can easily do this in other DITA authoring tools but can't figure it out in FM (I'm new). I'm familar enough with DITA to know I have to create a content ID and then create and xref to reference it. I can create xrefs in FM to the content IDs I want to link to. I just can't figure out the image part of it.

 

In other tools I can insert an image within an xref element, and voila, the image becomes clickable. I must be going about it the wrong way in FrameMaker.

    2 replies

    Matt-Tech Comm Tools
    Community Expert
    Community Expert
    January 21, 2025

    While it's not an ideal workflow, have you tried taking the valid DITA from an existing instance and pasting into Fm?

    This would at least let you see if FrameMaker can handle the code. From there, it may be easier to work it backwards in the Structure View.

     

    -Matt Sullivan, FrameMaker Course Creator, Author, Trainer, Consultant
    Community Expert
    January 16, 2025

    Hi,

    You can apply Hotspot Properties to images or part of images. This is explained in the online help here:

    https://help.adobe.com/en_US/framemaker/using/using-framemaker/FrameMaker-2022/user-guide/frm_graphics_gr-topic_graphics-hotspots.html

    Does this help?

    I do not know, whether there are any differences in DITA.

    Best regards, Winfried

    Participant
    January 16, 2025

    Thanks Winfried,

     

    Completely different in DITA. I'm trying to insert an image element into an xref element, as shown here. This is supported by DITA. I.e., an image is a valid element to put within an xref. But for some reason Framemaker isn't allowing me to do this. I've tried to do it from scratch and also tried to load valid DITA/XML files created in another tool. Either way, FrameMaker doesn't accept an image with an xref. It looks like it's moving the image outside of the xref element when I do it from scratch (which means I can't use the image as something clickable). And it seems to remove the image elements altogether if I try to open an existing file with images inside of xrefs.