> I don't think I understand how this can be used to duplicate the HTML
> anchor syntax.  It talks about a transcluded tiddler, does it require
> more than one tiddler to work? Could you give an actual working
> example?

In addition to enhancing the <<tiddler>> macro, CoreTweaks #784
extends the handling for the TiddlyLink and PrettyTiddlyLink syntax.
Just write your link as usual, and simply append the desired
"##sectionname" following the TiddlerName.  If you omit the
TiddlerName (i.e., enter *only* "##sectionname"), it will be treated
as a link to a section within the current tiddler.

   ##sectionname OR
   [[##sectionname]]
      looks like: ##sectionname
      links to: section within current tiddler
   [[display text|##sectionname]]
      looks like: display text
      links to: section within current tiddler
   SomeTiddler##sectionname OR
   [[SomeTiddler##sectionname]]
      looks like: SomeTiddler##sectionname
      links to: section within named tiddler
   [[display text|SomeTiddler##sectionname]]
      looks like: display text
      links to: section within named tiddler

As always, defining a section name within a tiddler uses the "!"
heading format, like this:
   !sectionname
and the section content continues until the next "!" heading format is
found (or the end of the tiddler is reached).  Note: you can use any
heading format (H1="!" through H5="!!!!!")

If you use a 'section link' that refers to a non-existent section, the
"##sectionname" suffix is ignored and the normal TW link handling
behavior occurs (i.e., the page scrolls to the top of the linked
tiddler).

Note: the tweak also extends the core's internal story.displayTiddler
() function, so *ANY* core- or plugin-defined code that displays a
tiddler can use the extended 'section link' syntax... "for
free" (i.e., without needing any code changes).  For example, here's a
permalink that opens TiddlyTools' CoreTweaks *and* scrolls directly to
the heading for the 784 tweak:

http://www.TiddlyTools.com/#CoreTweaks##784

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to