Reply
Aoutomatic crosslinking - is it possible?
Old 01-13-2008, 04:46 PM Aoutomatic crosslinking - is it possible?
sandbox's Avatar
Super Talker

Posts: 138
I'm looking to build a script in asp that automatically links to a page when any given word is added to my content (I guess I'm just lazy)

Lets say my site is about trees and I have loads of pages about trees - of course I have pages on oak, ash, elm etc now what I want to do is every time I upload a page with the word "ash" in an article a script make the word ash a live link to my ash page.

I'm thinking that a replace script would do this but would that work for double words and would it mess up words like splash etc.

or is there a better way to do this?
__________________
¦ geodesic domes ¦ bamboo t-shirts ¦
sandbox is offline
Reply With Quote
View Public Profile Visit sandbox's homepage!
 
When You Register, These Ads Go Away!
     
Old 01-13-2008, 05:03 PM Re: Aoutomatic crosslinking - is it possible?
chrishirst's Avatar
Super Moderator

Posts: 11,894
Location: Blackpool. UK
In amongst one of my libraries I have a function that did something very similar for a "glossary" set up. Used regular expressions to pick out complete words only, rather match the "ash" in "splash".

One day I will catalogue 10+ years of ASP programming
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-13-2008, 06:42 PM Re: Aoutomatic crosslinking - is it possible?
sandbox's Avatar
Super Talker

Posts: 138
Cheers Chris, So it is possible, the other thought I had was to do it with css?
__________________
¦ geodesic domes ¦ bamboo t-shirts ¦
sandbox is offline
Reply With Quote
View Public Profile Visit sandbox's homepage!
 
Old 01-14-2008, 12:24 AM Re: Aoutomatic crosslinking - is it possible?
chrishirst's Avatar
Super Moderator

Posts: 11,894
Location: Blackpool. UK
Can't be done with CSS at all, but it can be done with javascript as VibrantMedia do with the IntelliText ad system.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Aoutomatic crosslinking - is it possible?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13303 seconds with 13 queries