Question about links and @

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Question about links and @

Mariano Martinez Peck
Hi folks. I know that in Swiki or pier you can declare in somewhere of a page something like @something  and then, in another page you can do a link to that page@something  and this will put a link to that page and with focus where you put the @.

Now, most of the time I do this, I put the @something in a title (using ! or !! or !!!). So, the question is, what do you think in automatically generate this ?

Suppose I have this page called home:


xxxx

@This is a particular title
!This is a particular title
this is ....


And then, I have to do (from other page) this:    *home@This is a particular title*

So, what I wonder is if it is possible to automatically do this for the titles. So, if you use ! or !! or !!! you don't have to add the @This is a particular title  

what do you think ? is it easy to do?  and disadvantage I am not seeing?

Thanks!!

mariano

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Question about links and @

Lukas Renggli
> Now, most of the time I do this, I put the @something in a title (using ! or
> !! or !!!). So, the question is, what do you think in automatically generate
> this ?

I don't know for SWiki, but Pier already does this since the
beginning. However the identifier is not human readably but a hash
value of the title string. This is used to create automatic page
indexes like

   +value:toc+

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Question about links and @

Mariano Martinez Peck


On Mon, Oct 19, 2009 at 4:35 AM, Lukas Renggli <[hidden email]> wrote:
> Now, most of the time I do this, I put the @something in a title (using ! or
> !! or !!!). So, the question is, what do you think in automatically generate
> this ?

I don't know for SWiki, but Pier already does this since the
beginning. However the identifier is not human readably but a hash
value of the title string. This is used to create automatic page
indexes like

  +value:toc+


Yes, I imagined that value:toc should do something like that. However, it is not useful for what I want. Because what I want to put after the @  is the name of the title, not a hash value.

Any idea if this is possible?

Best,

Mariano
 
Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki


_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Question about links and @

Lukas Renggli
> Any idea if this is possible?

Sure it is possible, the same way Pier puts the automatic hash value there.

You could easily patch Pier to link to the specified sections. However
the link names have to follow a specific syntax (given in the HTML
standard) and the name has to be unique too.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki