Article link

Feed 5 posts, 3 voices

Avatar
20 posts

Hi, does anyone know, if I have anchor in my article and I want to link it, how should I do it?
Right now Im linking to page

<?php echo $article->link('Leave a comment'); ?>

I would like to add in the end of url #comments.

Thank you.

 
Avatar
1493 posts

In part it depends which text filter you are using. The general principle is that with your comment code (in the comment-form snippet in your case) you would include something like:

<h4><a name="leave-comment">Comments?</a></h4>

and in your article you would put the <a href="#leave-comment">Leave a comment</a> code. With Markdown that would look like:

(Leave a comment)[#leave-comment]

but with Textile it would be

"Leave a comment":#leave-comment

I hope I have understood, and if so, that this helps!

 
Avatar
20 posts

To be frank with you, I didn’t. I read my post and I realized that I phrased my question poorly. But thanks to your post I found the solution really easily.
Like that:

<a href="<?php echo $article->url(); ?>#comments">Leave a comment</a>
 
Avatar
44 posts

Hello Dear,
my name is peace i saw your profile and i
found
pleasure
to write you as my my friend so that we can communicate to each
othere,please mail me through my email address
(peacelove_khalifa@yahoo.com )
that i will send you my pic for you to know who i am for the love and
pleasure i have develpoed in your lovely profile i awaits your lovely
reply
as soon as you get this mail.
peace
please please please contact this email directly
peacelove_khalifa@yahoo.com