news article #anchor

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
amygdela

news article #anchor

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: news article #anchor

Post 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.
amygdela

Re: news article #anchor

Post 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!
Last edited by amygdela on Sun Mar 05, 2006 9:08 pm, edited 1 time in total.
Locked

Return to “CMSMS Core”