Anchor tag method?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
irish
Forum Members
Forum Members
Posts: 101
Joined: Tue Jun 03, 2008 2:31 pm

Anchor tag method?

Post by irish »

Is there a way to create an anchor tag to the current page. e.g. I have a list of links at the top of the page, each one anchors to a summary of articles on that same page.

I was hoping I could use something like: $this->CreateLink(...) but I can't get it to do it. Is there another method that I don't know about that creates anchor links? or what is the best way of doing this?

thanks, 
irish
Forum Members
Forum Members
Posts: 101
Joined: Tue Jun 03, 2008 2:31 pm

Re: Anchor tag method?

Post by irish »

any ideas, anybody?  Or will I have to hack it?
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am
Location: London, England

Re: Anchor tag method?

Post by stopsatgreen »

Sorry, if I've misunderstood, but can't you just use the anchor tag?

Code: Select all

{anchor anchor='youridname'}
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: Anchor tag method?

Post by kermit »

i've not used it before, but there's also a 'table of contents' udt in the wiki (to autogenerate that list at the top of your page).
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
Post Reply

Return to “Developers Discussion”