I had a crazy thought. What if we got rid of weblinks and made them nothing more than regular documents...
...
Going with something like this would have a few advantages...
1. It shows the power and flexibility of templates and TVs and will hopefully get some people thinking outside the box as to what can be done
2. It would allow you to add TVs to a weblink (ie target)
3. It should simplify the core a bit by letting us handle all documents the same way
4. It would also make it much easier to do customizations like a return to site frame
What do you think? The idea probobly needs some refining but I think the concept of not hard-coding weblinks has merit.
I agree this might simplify processing in some cases and making some of the normal document properties available for use in weblinks might add power, but some other ideas regarding weblinks merit some consideration on the need to treat them as separate entities.
For instance, one of my major issues with weblinks is that when using them, the links on a page appear to be internal to the site rather than directly to the target URL. This can reduce a site’s ranking since links to popular sites and back can really play a crucial role in the SEO game, and changing these to be just like the other Documents might make it more difficult to address this issue. Or consider if we wanted to add additional options for links to set additional attributes (such as rel="external" or rel="category tag" or others). Or use a catalog of links to create other features, such as auto-linking specific words or phrases, link ranking, etc.
Please remember to log your ideas and suggestions inside the Bug tracker

[[redirectToContent]]
// This snippet gets the content value and redirects to the url found there
if(!isset($id)) {
$id = $modx->documentIdentifier; //current document
}
$doc = $modx->getDocument($id);
$url = $doc['content'];
$modx->sendRedirect($url);<html> <head> <title>Title Here</title> </head> <body onLoad="document.form1.submit();history.go(-1)"> [*content*] </body> </html>
<form name="form1" method="post" action="[~30~]" target="_blank"> </form>
<html> <head> <title>Title Here</title> </head> <body onLoad="document.form1.submit();history.go(-1)"> <form name="form1" method="post" action="[*content*]" target="_blank"> </form> </body> </html>