if you are a human please do not click here
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Username :
Password :
Home
Help
Calendar
Register
Login
XMetaL Community Forums
»
General
»
DITA and XMetaL Discussion
»
TopLeaf: Adding margin icon to Note Label
Pages:
1
« previous
next »
Print
Author
Topic: TopLeaf: Adding margin icon to Note Label (Read 277 times)
palmer@dst
Member
Posts: 35
TopLeaf: Adding margin icon to Note Label
«
on:
July 07, 2011, 09:57:11 AM »
I want to add a graphic in the margin next to Notes. I created a %NoteIcon customer marker, and set the Custom pre-content to <href="note.gif"/> and the Image tab to Look In: {partition-folder} and Assign filename from href. I copied the graphic file into the C:\ProgramData\TopLeaf\DITAmap\Template directory. Then in the %NoteLabel custom marker I added <NoteIcon/> to the pre-content, but the image isn't appearing when I re-compose.
Any thoughts? Thanks for your help again!
Robert
«
Last Edit: July 07, 2011, 03:15:44 PM by Derek Read
»
Logged
rpalmer
DST Systems, Inc.
Derek Read
Program Manager (XMetaL)
Administrator
Member
Posts: 1546
Re: TopLeaf: Adding margin icon to Note Label
«
Reply #1 on:
July 07, 2011, 01:05:21 PM »
I think the first place you should start looking to troubleshoot this type of thing is in the TopLeaf log file. You can view the log by selecting (in TopLeaf): View > Composition Log, or by pressing Ctrl+J.
Search for "note" or "gif", etc, to try to figure out what TopLeaf is having trouble with. The "Troubleshooting" section in the TopLeaf Mapping Guide contains information on how to read the log.
Logged
palmer@dst
Member
Posts: 35
Re: TopLeaf: Adding margin icon to Note Label
«
Reply #2 on:
July 07, 2011, 01:13:35 PM »
I checked the log prior to posting, but it doesn't indicate why the image doesn't appear. I wasn't sure if my sytanx in the pre-content boxes and in the custom markers was correct or not.
Robert
Logged
rpalmer
DST Systems, Inc.
Derek Read
Program Manager (XMetaL)
Administrator
Member
Posts: 1546
Re: TopLeaf: Adding margin icon to Note Label
«
Reply #3 on:
July 07, 2011, 03:00:04 PM »
If I try settings similar to what you have I see error messages in the log file.
I believe settings similar to those in the screenshots I am attaching are sufficient and in my testing should get you close to what you need. With these settings I see the output pictured in "topleaf_preview.png".
Note that where I have "blah" on the Image tab for the %NoteIcon you must actually enter something (otherwise TopLeaf will complain) although the value does not seem to matter as we are not actually tying to a real attribute (in the content) in this case (the image file name is hard coded).
topleaf_preview.png
(12.18 KB, 519x284 - viewed 49 times.)
topleaf_settings.png
(102.54 KB, 689x1437 - viewed 46 times.)
«
Last Edit: July 07, 2011, 03:44:17 PM by Derek Read
»
Logged
palmer@dst
Member
Posts: 35
Re: TopLeaf: Adding margin icon to Note Label
«
Reply #4 on:
July 08, 2011, 10:43:01 AM »
Excellent - even simpler than my approach.
Much appreciated! Thank you.
Logged
rpalmer
DST Systems, Inc.
Pages:
1
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Forum Information
=> General XMetaL Discussion
=> DITA and XMetaL Discussion
=> XMetaL Tips and Tricks
=> XMetaL Announcements and Events
Loading...