Page 1 of 1

news article #anchor

Posted: Sat Mar 04, 2006 6:54 pm
by amygdela
Hello,

I want to add a #article anchor after the link to my full story of the news item, so it will be

http://example.com/index.php?module=New ... 30#article


How can this be performed? THanks for any help.

Jasper

Re: news article #anchor

Posted: Sat Mar 04, 2006 10:39 pm
by Ted
I assume this will work with 0.11.2, but it's not tested.  It does work fine with the latest svn version, so it's at least worth exploring.

Open up the News admin.  Go to the summary template tab.

Replace:

Code: Select all

{$entry->titlelink}
With:

Code: Select all

<a href="{$entry->link}#article">{$entry->title}</a>
Give it a try and see.

Re: news article #anchor

Posted: Sun Mar 05, 2006 8:25 am
by amygdela
I'm using 0.12-BETA2 :)

I'll test it tonight, gotta make it to work in 20 mins... Thanks again wishy!

//EDIT

Ofcourse this works :) Never knew I could just use HTML around the tags.... This really makes life a lot easier for me!