List Info

Thread: Linking To Headings




Linking To Headings
country flaguser name
United States
2007-10-22 18:13:10

The WikiFormatting doesn't seem to explain how to link to
headings. Do
you have any idea how to link to a heading? I know how to
link to a
page: I don't know how to link to a heading (== MyHeading
==).


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Trac Users" group.
To post to this group, send email to trac-usersgooglegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Linking To Headings
user name
2007-10-22 18:44:13
ResumeWriter <angela.akridgegmail.com> writes:

> The WikiFormatting doesn't seem to explain how to link
to headings. Do
> you have any idea how to link to a heading? I know how
to link to a
> page: I don't know how to link to a heading (==
MyHeading ==).

It is explained but not all that explicitly.  See the
following pages
in the default wiki pages.

  WikiPageNames
  WikiFormatting#using-explicit-id-in-heading

So, it's just a # followed by the heading, stripped of all
spaces.  If
you hover near the end of a heading (in the preview or final
page),
the link should be shown by your browser somewhere.

Hope this helps,
-- 
Olaf Meeuwissen             FLOSS Engineer -- EPSON AVASYS
Corporation
FSF Associate Member #1962           sign up at http://member.fsf.org/
GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97  976A 16C7 F27D
6BE3 7D90
Penguin's lib!       -- I hack, therefore I am --           
   LPIC-2

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Trac Users" group.
To post to this group, send email to trac-usersgooglegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Linking To Headings
user name
2007-10-23 07:47:55
> So, it's just a # followed by the heading, stripped of
all spaces.  If
> you hover near the end of a heading (in the preview or
final page),
> the link should be shown by your browser somewhere.

Use the Ref() macro: it generates the anchor name using the
same rules
(and code) as the Wiki engine.

http://trac-hacks
.org/wiki/RefMacro

HTH,
Manu

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Trac Users" group.
To post to this group, send email to trac-usersgooglegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )