By anubhav on
Please explain the logic or functions , modules that will call when say for example by entering the URL http://drupal.org/node/28645#comment.
I understand how the links are created but, not able to figure it out the logic ,functions and modules that will be invoked or called when the URL is entered.
Comments
comment logic
I have searched forums and documentation still hasn't found the answer.
When entered the URL "http://drupal.org/node/28645#comment" its showing the first comment but I am not able to figure out which functions in node and comment module gets invoked
Please take sometime and answer my question
#comment,#new..How it jump to first comment or new comment?
when clicked on for ex: story node, node_show function in the node module is invoked and render the story and comments incase if there are any comments for the story node.so far so good but, still not be able to find how
and where the logic or function that parse arguments like #new,#comment will be parsed and jump to the first comment or the new comment in case "#comment" and "#new" is in URL
Please help
Jump to the first or new comment
Its very basic , now i understand how its jumping to the first comment after reading the folllowing. I am posting the info so that it will help someone
There is of course a way to link to a specific part of a document. Using a standard hyperlink, of course, but with a small addition. Found in the HREF attribute, the name is tacked onto the end of the URL of the document in which it appears. To do this, just enter document's URL, and then add a hash-sign (#) and the name to the end of the URL. For example, assuming that the document's URL is "http://www.site.edu/food.html" the pointer to the named anchor pt.3 would be:
http://www.site.edu/food.html#pt.3
A hyperlink which has the above URL in its HREF attribute will take the reader straight to the text contained within the anchor ... within the file "food.html." (Incidentally, if the browser loads a file but can't find the named anchor which has been specified, it simply goes to the top of the file, just as it would have if there hadn't been a name in the URL at all.)
Now, you may be confused about why a hash-sign (#) is in the URL. That hash-sign is how the browser knows that it's looking for a name, and how it keeps the named anchor separate from the document's filename. Therefore, if you are writing a hyperlink which points to a named anchor found within the same document, you only need to have the hash-sign followed by the name of the anchor. For example, a hyperlink to Part 3 which is found within the file "food.html" would have this markup:
Part 3