1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is it possible to add local referencies (<a name="...", <a ref="#...")?

Discussion in 'XenForo Questions and Support' started by vkams, Jul 23, 2012.

  1. vkams

    vkams Active Member

    I'd like to supply referencies and give table of content in large article. But how should I format the post? Its url looks like http://forum/topic.id/#post-id , so # is already used.
     
  2. digitalpoint

    digitalpoint Well-Known Member

    Well assuming you have ID parameters in your article (you just need to add an ID parameter to any HTML attribute... for example, id="yourJumpToPoint"), you can just reference that ID instead of the #post-id. They are unique to the page, not the post, so you wouldn't need to reference the #post-id.

    This is of course assuming you are editing directly via HTML.

    More info here: http://en.wikipedia.org/wiki/Fragment_identifier
     
  3. vkams

    vkams Active Member

    This is rather difficult for most of users. Maybe one can add special bbcode or, better, improve the forum engine? I know this feature is not a problem in IPB for many years.
     
  4. vkams

    vkams Active Member

    I've tried to add 2 bbcodes (via BB Code Manager):
    HTML:
    1. goto tag
    Example: [goto=prim]look reference[/goto]
    Opening replacement: <a href="#%s">
    Closing replacement: </a>
     
    2. lable tag
    Example: [lable=name]reference text[/lable]
    Opening replacement: <a name="%s">
    Closing replacement: </a>
    It doesn't work. :( What is the right one?
     

Share This Page