Closed dwp-forge closed 9 years ago
Some time ago I started working on this[1]. The basic idea is to add some semantics
into the note definition, and use that meta-info to render both the notes and the references.
It does require some rework but the changes are not too drastic. The first part has
been already released, and you can define the notes in the reference database[2] using
"fields". As for the reference rendering, it's still work in progress.
Unfortunately, currently I don't have time to work on hobby projects, and I don't expect
that situation will change the coming months. I hope I will be able to get back to
this in Autumn.
[1] http://code.google.com/p/dwp-forge/source/browse/#svn%2Fbranches%2Frefnotes-structured_references
[2] http://www.dokuwiki.org/plugin:refnotes:refdb
Original issue reported on code.google.com by dwp-forge
on 2011-05-04 08:15:46
Thank you for getting back to me.
I'd like to take a small stab at this. I have one question you might be able to help
me with
In the function that I modified, renderTitle on line 858 in syntax/references.php
private function renderTitle($field) {
$text = $field['title'] . '.';
$text = '[[' . $field['note-name'] . '|' . $text . ']]';
return $text;
}
I have access to information about the object I am rendering, in the $field object.
As far as I understand, the in-text citation markers are rendered in helper.php, renderNotes
on line 193. Is there a way for me to access the object I am rendering in this context
as well? If it is, I think I can cobble something together, if not, and it requires
a bit rewrite, I guess it's kind of hopeless.
Thanks!
Original issue reported on code.google.com by shaklev
on 2011-05-04 15:19:52
Sorry, but it has been almost a year since I touched that code, and I don't remember
the details anymore.
The place you hacked is part of the reference database parser/renderer. This thing
is a separate component, which is rather disconnected from the "main" parser/renderer
(the one that works on pages that use references/notes). I believe that even in the
development branch the main parser/renderer treats the notes as raw text blocks. There
was only some preliminary work to support the fields, but there is still lots to do.
Original issue reported on code.google.com by dwp-forge
on 2011-05-04 16:13:18
Implemented in r461.
Original issue reported on code.google.com by dwp-forge
on 2012-05-13 11:15:14
I realize this dates back by a few years - yet this tweek is exactly what would round
up this amazing plugin for me!
I'm aiming to inserting a like to the note page in between the backlink and the actual
reference in the bottom of the page - but after digging through code for ages, i can't
get it do work the way i want it to... is there any chance you can give me a hand?
dennis.kueppers [at] gmail.com
Original issue reported on code.google.com by dennis.kueppers
on 2015-02-16 19:22:14
Sorry, from your description I cannot figure out what are you trying to do. Do you have
an example of something similar somewhere on the Net?
Original issue reported on code.google.com by dwp-forge
on 2015-02-16 21:27:55
Original issue reported on code.google.com by
shaklev
on 2011-04-30 01:02:44