Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Well,
why not extending this mechanism to a more customizable and user definable way of linking?

I can imagine creating my own tags in the user settings, where I could be asked for a name for the tag and a link, with a placeholder (e.g. %s) in the appropriate position, that resolves the tag-link. Uhm, I don't know if you can understand me (I only hardly do), but probably an example will make that clear.

Say you got your own perl module review site located at http://www.myperlmodulereview.org, there you got the search script located in /cgi-bin/search.pl which takes the arguments in this way: module=HTML::Parser&order-by=date. Thus a correct URL would look like:

http://www.myperlmodulereview.org/cgi-bin/search.pl?module=CGI&order-b +y=date

Now you could define your own tag simply by assigning it a name (say "myreview") and the resolver which consists of the above URL except that 'CGI' would be replaced with %s, so that the dynamic content will be placed there:

Tag: myreview Resolves-to: http://www.myperlmodulereview.org/cgi-bin/search.pl?phras +e=%s&order-by=date
Then:
[myreview://CGI]
would then create the above link automagically.

Of course this would be private to each user but maybe one could then even implement a kind of importing mechanism, so that if footpad did another really useful tag I could adress it by using [footpad::newtag://linkto] or even globally import all of footpad's tags into my own 'namespace'.

... uhm .. do you get me?

Regards... Stefan
you begin bashing the string with a +42 regexp of confusion


In reply to Re: New Link Tags by stefan k
in thread New Link Tags by footpad

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others chanting in the Monastery: (7)
    As of 2014-09-17 16:28 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      How do you remember the number of days in each month?











      Results (91 votes), past polls