<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi everybody!<br>
    <br>
    I added the (:if link ... :) markup to my config.php:<br>
    <br>
    <i><font size="4"># add (:if link 'Group.Pagename':) conditional<br>
        $Conditions['link'] = 'IsTarget( $pagename, $condparm )';<br>
        function IsTarget( $pn, $arg ) {<br>
                $arg = ParseArgs($arg);<br>
                $pn2 = MakePageName($pn, $arg[''][0]);<br>
                $page = RetrieveAuthPage($pn, 'read', true);<br>
                if (in_array($pn2, (explode(',',@$page['targets']))))
        return true;<br>
        }<br>
        <br>
      </font></i><font size="4">It works great for determining if there
      is a link to SOMEWHERE on the given page. <br>
      <br>
      However: I need to discriminate if the link points to a certain
      anchor, and if so which one.<br>
      <br>
      At the moment the link <i><font size="5">[[mypage.test]] </font></i><font
        size="5"><font size="4">and <i><font size="5">[[mypage.test#part3]]</font></i><font
            size="5"><font size="4"> all lead to the same result. <br>
              <br>
              I'm searching for a behavior, where <i><font size="5">(:if
                  link mypage.test:)</font></i> is true for any link to
              mypage.test, while </font></font></font></font></font><font
      size="4"><font size="5"><font size="4"><font size="5"><font
              size="4"><font size="4"><font size="5"><font size="4"><font
                      size="5"><font size="4"><i><font size="5">(:if
                            link mypage.test#part3:)</font></i> is only
                        true if that specific anchor is addressed
                        somewhere on the page. <br>
                        <br>
                        Does anyone know of a way to extend the markup
                        given to accomplish that?<br>
                        <br>
                        thanks a lot in advance!<br>
                        Thomas<br>
                      </font></font></font></font></font></font></font></font></font></font>
  </body>
</html>