Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Turning Characters in a Numbered List into Hyperlinks

Return to Member Forum

  • Author
    Posts
    • #14405911
      David
      Member

      Using the cool trick of replacing numbers with actual words in Numbered List (and being creative with Paragraph styles), I’ve managed to make the listing of new recipes in the TOC of a cook book pretty much parametric. Specifically: for every new recipe that is added to the book, the word NEW! appears in cyan in front of the listing in the TOC. such a time saver!

      It would be cool if the actual word NEW! could be part of that TOC linkage. As you’ll see from the screenshot (please access via the link below), everything highlighted in yellow is hyperlink; but the word NEW! is not. I can understand why it is not, but like I mentioned … it’d be cool if users could click on the word NEW! and be transported to the specific page in the document. If there is a way to accomplish this, hopefully it’s easier than having to crack open a folder and tinker with code, because I’m pretty much helpless when it comes to that kind of stuff.

      https://ws.onehub.com/files/jom3dafu

    • #14405913
      Peter Kahrel
      Participant

      You could add the word NEW! as a local override in the paragraph.

    • #14405923
      David
      Member

      Considering the fact of your credentials (in other words, you’re a seasoned professional), I’ve tried mightily to grasp your solution, but unfortunately I just don’t get it. Am I missing something? The whole idea is avoid typing NEW! all over again when I update the TOC (which of course wipes out local overrides). To solve this, I came up with a secondary TOC paragraph style using the Numbered List trick, typing in the word NEW! in place of the numeric set of characters populated there by default. This works perfectly, the only problem being that when exported to PDF, the NEW! is not part of the TOC page linkage — as I’d expect it wouldn’t be for a number or bullet character either. Creating a separate NEW! paragraph style inside the book based on “Recipe Title” (which is the nomenclature I’m using for all the others) isn’t an option, as it’s too clunky a solution, this because some pages, by necessity, have had to be broken from the overall consistency of the layout.

    • #14405942

      Hi David and Peter,

      Use Auto-num is a good and simple idea! …

      https://snipboard.io/5Ougam.jpg

      1/ Use Auto-num in the current para style “xxx” [“NEW! “], not in the TOC para style “xxx_TOC”, and in the TOC Settings don’t forget to choose “Include Full Paragraph” in the “Numbered Paragraphs dropllist.

      2/ If not useful, make the “xxx” para style auto-num not visible.

      3/ in the “xxx_TOC” para style, include 2 Grep Styles:

      a) NEW!(?!~j) + “Invisible” Char Style

      b) NEW!~j + “Blue” Char Style

      Now just go to the current text and add a “non-joiner” char at the beginning of each “NEW!” recipe! … And update the TOC! ;-)

      (^/) The Jedi

Viewing 3 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads