Chapter Numbering feature request

One feature that would be nice would be an option to turn on the numbering for the chapters in the Dita maps manager. This would be especially useful for managing translated content since I generally can't read the chapter titles. Each time I have to count them from the top to find the one I am looking for. Bonus points if a second option to skip counting chapters marked as toc="no"! (Please excuse my poor photoshop skills) http://i.imgur.com/YKku1tP.png AVIS : Ce courrier et ses pieces jointes sont destines a leur seul destinataire et peuvent contenir des informations confidentielles appartenant a bioMerieux. Si vous n'etes pas destinataire, vous etes informe que toute lecture, divulgation, ou reproduction de ce message et des pieces jointes est strictement interdite. Si vous avez recu ce message par erreur merci d'en prevenir l'expediteur et de le detruire, ainsi que ses pieces jointes. NOTICE: This message and attachments are intended only for the use of their addressee and may contain confidential information belonging to bioMerieux. If you are not the intended recipient, you are hereby notified that any reading, dissemination, distribution, or copying of this message, or any attachment, is strictly prohibited. If you have received this message in error, please notify the original sender immediately and delete this message, along with any attachments.

Hi Matt, The DITA Maps Manager is quite restrictive in the shown content which needs to be quite terse because the view usually has a small width. We will consider this as an improvement request. But when a DITA Map is opened in the main editing area in the Author mode its displayed is controlled by CSS so I have a workaround for you. If you open this CSS: OXYGEN_INSTALL_DIR\eXml\frameworks\dita\css_classed\bookmap_ext.css It has a selector something like:
*[class~="bookmap/chapter"]:before{ content: url("../img/chapter.png") oxy_capitalize(oxy_local-name()) " [" oxy_attributes() " ]"; }
which you could replace with:
*[class~="bookmap/chapter"]:before{ content: url("../img/chapter.png") oxy_capitalize(oxy_local-name()) " " counter(chapter) " [" oxy_attributes() " ]" !important; }
*[class~="bookmap/chapter"][toc="no"]:before{ content: url("../img/chapter.png") oxy_capitalize(oxy_local-name()) " [" oxy_attributes() " ]" !important; }
/*EXM-28843 Add a count number for each chapter.*/ *[class~="bookmap/chapter"]{ counter-increment:chapter; } *[class~="bookmap/chapter"][toc="no"]{ counter-increment:none; }
*[class~="map/map"]{ counter-reset:chapter; }
After this, if the bookmap is opened in the main editing area in the Author visual editing mode you will have the chapter count present (with chapters excluded from the TOC skipped). Clicking a chapter will open the corresponding document. I will also make these changes in the CSS which comes with an Oxygen installation because it seems like a nice small improvement. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 11/8/2013 11:47 PM, KAATMAN Matthew wrote:
One feature that would be nice would be an option to turn on the numbering for the chapters in the Dita maps manager.
This would be especially useful for managing translated content since I generally can't read the chapter titles. Each time I have to count them from the top to find the one I am looking for.
Bonus points if a second option to skip counting chapters marked as toc="no"!
(Please excuse my poor photoshop skills) http://i.imgur.com/YKku1tP.png
AVIS : Ce courrier et ses pieces jointes sont destines a leur seul destinataire et peuvent contenir des informations confidentielles appartenant a bioMerieux. Si vous n'etes pas destinataire, vous etes informe que toute lecture, divulgation, ou reproduction de ce message et des pieces jointes est strictement interdite. Si vous avez recu ce message par erreur merci d'en prevenir l'expediteur et de le detruire, ainsi que ses pieces jointes. NOTICE: This message and attachments are intended only for the use of their addressee and may contain confidential information belonging to bioMerieux. If you are not the intended recipient, you are hereby notified that any reading, dissemination, distribution, or copying of this message, or any attachment, is strictly prohibited. If you have received this message in error, please notify the original sender immediately and delete this message, along with any attachments.
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
KAATMAN Matthew
-
Oxygen XML Editor Support