I am looking for a link management strategy in articles. The body of the article is stored in the database and stretched during page assembly. What needs to be stored in a database for easy definition and link management?
Some purists believe that markup is NEVER stored in a database. Some people think that everything is in order. But for me, the concept of a link is almost inseparable from its html markup.
Is there a better, more concise way of presenting links in an article (in a database) than simply embedding anchor text?
One of the ideas I put in includes embedding enough markup for a semantic description of areas of interest, and in another table, compare these concepts with actual URLs. All meetings of a certain concept are wrapped in a link.
<p>Here is an example of a <span class="external-reference semantic-web">semantic</span> approach to link management.</p>
The table can then associate the article URL and the semantic website key class with a URL, such as http://en.wikipedia.org/wiki/Semantic_Web
<p>Here is an example of a <span class="external-reference semantic-web"> <a href="http://en.wikipedia.org/wiki/Semantic_Web">semantic</a></span> approach to link management.</p>
What I like about this approach is that all my URLs are in one place in the database. I could technically modify or delete links without touching the body of the article. I have very good class names for CSS.
I don't like having another table for support, but another step / step in the rendering time. This can slow down response time.
Are there other strategies for superior link management?
source share