> Is there a way to link to a heading/location (a la an html anchor)
> from within a tiddler?
> case where this would be useful:
> 1) for a page with multiple sections in a single tiddler, it would be
> nice to send a link to the section in context, eg 
> http://abc.com/tiddly.html#Tiddler#Monkey
> 2) referring to a section from within a large tiddler, eg "See section
> [[1.a.ii|#Monkey cheetah]]"

Standard TW 'section' syntax uses 'heading' format to define the start/
end of each section:
   !NameOfSection
   ...content
   !end NameOfSection
The core <<tiddler>> macro supports transclusion of sections, like
this:
   <<tiddler SomeTiddler##SomeSection>>
but the core *link* syntax doesn't support linking to a section, i.e.:
   [[SomeTiddler##SomeSection]]

However, if you install
   http://www.TiddlyTools.com/#CoreTweaks##784
then you *can* use the above link syntax... the tweak automatically
strips the section reference off the link, lets the core handle the
'display tiddler' logic normally, and then scrolls directly to the
indicated ##SectionName once the tiddler has been displayed.

This extended link reference syntax can also be used in other places,
such as permalinks/permaviews.  Note that, for ease of linking, you
only need to specify as much of the section name as needed to uniquely
identify it within the tiddler.  Thus, "##784" is sufficient in the
link shown above, and I don't have to use the ridiculously unwieldy
reference to the full heading text, i.e.:

"##784%20allow%20tiddler%20sections%20in%20TiddlyLinks%20to%20be%20used
%20as%20anchor%20points%20for%20intra-tiddler%20scrolling."

So:
* permalinks to sections?  CHECK
* TiddlyLinks to sections?  CHECK
* transcluding sections? CHECK (in the core)

QED.

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