[nycphp-talk] Dynamically Add Links to Text

Glenn Powell glenn310b at
Thu Aug 27 17:30:42 EDT 2009

continuation from last post... and another idea...

When you get the list of record ids, select enough of the text around  
the (target phrase to be "linkafied") to give it some context,
and, at the point of publication of a new article,  display those  
blurbs in a list with a pre checked checkbox for each one.

When the editor publishes a new article, they get a list of only what  
will be linked, with enough context to uncheck it if they
don't want it linked.

When they hit publish, either queue up the job, or just update and  
create the links then.

wouldn't work so well if there were 10,000 past articles to have links  
added to...

On Aug 27, 2009, at 4:26 PM, Randal Rust wrote:

> On Thu, Aug 27, 2009 at 4:16 PM, Andrew Muraco<amuraco at>  
> wrote:
>> Personally, i think a spider/bot is the best bet, maintain a list of
>> phrases/words that should point to links and add those in.
> I am leaning towards thinking that is the best option. The other way
> would be to simply provide the editor with a button they can click
> that automatically does the updates and then provides a list of
> articles that they need to review. If all is good, then they can
> approve and publish.
> -- 
> Randal Rust
> R.Squared Communications
> 614-370-0036
> _______________________________________________
> New York PHP User Group Community Talk Mailing List

More information about the talk mailing list