Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
PrettyLink Extension
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Udo Borkowski  
View profile  
 More options Sep 6 2006, 4:01 pm
From: Udo Borkowski <Udo.Borkow...@gmx.de>
Date: Wed, 06 Sep 2006 22:01:24 +0200
Local: Wed, Sep 6 2006 4:01 pm
Subject: PrettyLink Extension

Hi,

may I suggest a small extension to the PrettyLink:

Currently we may have links like
        [[label text|tiddler or externalRef]]

I suggest to allow a third (optional) parameter that defines an external
link, in case a tiddler given at second place does not exists (or has no
shadow).

Example:

[[Documentation|ForEachTiddlerDocumentation|http://tiddlywiki.abego-software.de/#ForEachTiddlerDocumentation]]

Some motivation:

when writing a plugin you try to keep the size of the plugin as small as
possible. Therefore it is a frequently used approach to put
documentation, examples etc. into separate tiddlers that are then
referenced from the plugin tiddler (e.g. in a "Documentation" field in
the header). So a user may decide to get just the plugin without
documentation to keep his TW small.

To give him a chance to still read the documentation one often creates a
shadow tiddler with the same name as the (e.g.) documentation tiddler
that then refers to the documentation on the web:

    ForEachTiddlerDocumentation
    --------------------
    Find the complete documentation
    [[here|http://tiddlywiki.abego-software.de/#ForEachTiddlerDocumentation]].

This approach work fine but has some drawbacks:
1) the plugin must be loaded to initialize the shadow tiddler with the
reference to the documentation.
2) A shadow tiddler must be created for every such "tiddler with
external backup"
3) To access the external reference the user is first navigate to the
shadow tiddler and then he again has to click a link to get the actual
documentation.

With the suggested extension these problems are gone.

Here the required code change (in Formatter.js, "prettyLink")

            else if(lookaheadMatch[3]) // Pretty bracketted link
                {
                var link = lookaheadMatch[4];
*                var i = link.indexOf("|");
                if (i)
                    {
                    var s = link.substr(0,i);
                    link = (store.getTiddler(s) ||
store.isShadowTiddler(s)) ? s : link.substr(i+1);
                    }
*                e = config.formatterHelpers.isExternalLink(link) ?
createExternalLink(w.output,link) : createTiddlyLink(w.output,link,false);
                }
            createTiddlyText(e,text);

Of cause the usage of this kind of link is not restricted to
documentation tiddlers, but also for things like copyright, licence etc.

Udo

----------
Udo Borkowski
http://www.abego-software.de


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Saq Imtiaz  
View profile  
 More options Sep 6 2006, 4:19 pm
From: "Saq Imtiaz" <lew...@gmail.com>
Date: Wed, 6 Sep 2006 22:19:25 +0200
Local: Wed, Sep 6 2006 4:19 pm
Subject: Re: PrettyLink Extension

On 9/6/06, Udo Borkowski <Udo.Borkow...@gmx.de> wrote:

I do this quite often myself, and this change would make life a little bit
easier. So unless there is some negative consequence that I cant forsee, its
got my vote!
Cheers,
Saq

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Baird  
View profile  
 More options Sep 6 2006, 7:42 pm
From: "Daniel Baird" <danielba...@gmail.com>
Date: Thu, 7 Sep 2006 09:42:03 +1000
Local: Wed, Sep 6 2006 7:42 pm
Subject: Re: PrettyLink Extension
On 9/7/06, Udo Borkowski <Udo.Borkow...@gmx.de> wrote:

>  Hi,

>  may I suggest a small extension to the PrettyLink:
> [[Documentation|ForEachTiddlerDocumentation|http://tiddlywiki.abego-software.de/#ForEachTiddlerDocumentation]]

Nice!  +1 from me.

--
Daniel Baird
http://tiddlyspot.com (free, effortless TiddlyWiki hosting)
http://danielbaird.com (TiddlyW;nks! :: Whiteboard Koala :: Blog ::
Things That Suck)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy Ruston  
View profile  
 More options Sep 7 2006, 10:46 am
From: "Jeremy Ruston" <jeremy.rus...@gmail.com>
Date: Thu, 7 Sep 2006 15:46:02 +0100
Local: Thurs, Sep 7 2006 10:46 am
Subject: Re: Re: PrettyLink Extension
Yeah, great idea, I'll whip it into 2.1

Cheers

Jeremy

On 9/7/06, Daniel Baird <danielba...@gmail.com> wrote:

--
Jeremy Ruston
mailto:jer...@osmosoft.com
http://www.tiddlywiki.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Shulman  
View profile  
 More options Sep 7 2006, 11:00 am
From: "Eric Shulman" <elsdes...@gmail.com>
Date: Thu, 07 Sep 2006 08:00:46 -0700
Local: Thurs, Sep 7 2006 11:00 am
Subject: Re: PrettyLink Extension
The current usage for externally linked *images* is:
   [img[tip|imagefile][external link]]

For consistency, how about this syntax for externally-linked pretty
links
   [[text|tiddler][external link]]

-e


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Budden  
View profile  
 More options Sep 7 2006, 2:32 pm
From: "Martin Budden" <mjbud...@gmail.com>
Date: Thu, 07 Sep 2006 11:32:01 -0700
Local: Thurs, Sep 7 2006 2:32 pm
Subject: Re: PrettyLink Extension
I agree with the motivation behind the idea, but not the syntax. My
concerns are around interwiki syntax compatibility: adding the optional
third parameter will make TiddlyWiki different from *all* other wikis
in this area. I believe the same goal could be achieved with a  syntax
that keeps us as compatible with other wikis as we are now.

So rather than rush this into 2.1, let's defer it to 2.2 and give
ourselves time to come up with a more interwiki compatible syntax.

Martin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Budden  
View profile  
 More options Sep 7 2006, 2:34 pm
From: "Martin Budden" <mjbud...@gmail.com>
Date: Thu, 07 Sep 2006 11:34:15 -0700
Local: Thurs, Sep 7 2006 2:34 pm
Subject: Re: PrettyLink Extension
I think this is better syntax than Udo's proposal, but again I say
let's not rush things. Let's defer to 2.2 and give ourselves time to
think and come to agreement.

Martin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Udo Borkowski  
View profile  
 More options Sep 24 2006, 10:38 am
From: Udo Borkowski <Udo.Borkow...@gmx.de>
Date: Sun, 24 Sep 2006 16:38:34 +0200
Local: Sun, Sep 24 2006 10:38 am
Subject: Re: PrettyLink Extension
I added a ticket (http://trac.tiddlywiki.org/tiddlywiki/ticket/182) for
this issue.

Udo

----------
Udo Borkowski
http://www.abego-software.de


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »