Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2010-07-09 09:21:23

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,440
Website GitHub

Re: [request] Auto-numbering / auto-adjusting link citations

Destry wrote:

In this new light of not including anchor links, however, maybe a better way to go is to put the inline numbers at the end of the sentence in which the reference is made

The great thing about Steve’s solution is that the position of the links is up to you: if you want them at the end, put the citation markup at the end.

Thinking about it more, maybe it’s better to have an option to turn the inline reference link on or off as desired per website, and with ability to style it as an designer might want (e.g., larger font, glyph, or what have you).

I thought about this too and batted some ideas around with Steve. How about a compromise? What if the little superscript number wasn’t necessarily rendered as a superscript number but just a number in square brackets with a class assigned to the whole thing. Designers could then superscript it, make it smaller or turn the darn things off in CSS?

Last edited by Bloke (2010-07-09 09:23:10)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#17 2010-07-09 09:32:28

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: [request] Auto-numbering / auto-adjusting link citations

Sounds perfect, guys!

Offline

#18 2010-07-09 09:48:37

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,440
Website GitHub

Re: [request] Auto-numbering / auto-adjusting link citations

btw, Destry, Wikipedia adds the caret in the references to backlink to the place where it was referenced (and some of them aren’t linked for some reason).

I think it has value to jump back to where something was quoted, although I admit the fact the carets are full size is a bit odd to look at in this Textile version.

Perhaps again the backlink caret links could be given a class so you can format them or shut them off as desired?

EDIT: the other thing it does which is quite nice is that when you click a reference in the main body, the reference itself is highlighted in the list so you can more easily spot it; the background is altered slightly. Nice touch but I dunno how it’s done — javascript I guess. Outside the scope of the citation system in Textile, but with good enough hooks in the markup would be open to customisation for those who are inclined.

Last edited by Bloke (2010-07-09 09:54:25)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#19 2010-07-09 16:57:37

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [request] Auto-numbering / auto-adjusting link citations

maniqui wrote:

May it be the right time to share with you those crazy ideas living in the back of my head about an utopian new version of Textile?

Hi Julián. Why not start a new thread about that? Stef & I are working on some other changes so it might well be an opportune moment to start talking about your dreams.

Destry

As Stef mentioned, the backlink carets are similar to how wikipedia does theirs and could be totally removed from the output if not needed by a simple style rule. I quite like your idea of showing the reference number in the body of the article but not having it as a hyperlink. That’s much more like paper publications.

If we were to have an option to control the link generation from the body text to the correct entry in the list of references what do you imagine that might look like? Would it be some form of declaration at the start of the article, or a slight change to the format to allow textile to know which one to generate?

All

Any other comments on any of this?


Steve

Offline

#20 2011-03-08 18:55:54

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: [request] Auto-numbering / auto-adjusting link citations

I don’t understand why, but notifications from this forum are hit or miss for me.

It would appear I lost the opportunity to give this cool thing a fly. Steve’s “gist” links all don’t work. Anyone happen to safe-keep it somewhere? Bloke?

Offline

#21 2011-03-08 19:20:21

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [request] Auto-numbering / auto-adjusting link citations

Destry,

the gists are dead because the code has already been adopted into textile 2.2. Try auto-numbered notes for a live demo.


Steve

Offline

#22 2011-03-08 20:39:21

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: [request] Auto-numbering / auto-adjusting link citations

Thank you, Steve! And textile 2.2 is now supported in 4.0.3? #lazyweb

Offline

Board footer

Powered by FluxBB