It worked out well for something I needed on one of my sites. Here's a link with the system implemented: http://www.pathstoknowledge.com/pmwiki/pmwiki.php?n=Perennis.SpiritWiki KeithCampbell
How about this (it implies changing border-top to border-bottom in the included style):
Markup('included','>if',"/\\(:included\\s+(.+?):\\)/e", "PRR().'[+$1+] [[$1?action=edit|[--EDIT--]]]<br>'". ".IncludeText(\$pagename,'include $1').". "'<p class=\\\'included\\\'>[[$1?action=edit|[--EDIT $1--]]]</p>". "<br/>'");
Problem with #from anchor
When a page is included with #from#end like:
than the section edit link does not function and the URI looks like this:
(it opens the included page but not the edit version of the page)
The code for having the button below the included text didn't quite work correctly. This is how I solved the problem.
Markup('included','>if',"/\\(:included\\s+(.+?):\\)/e", "PRR().IncludeText(\$pagename,'include $1').". "'<br/><p class=\\\'included\\\'><span class=\\\'button\\\'>". "[[$1?action=edit|[-EDIT-]]]</span></p>'");
Why don't put together SectionEdit and the idea of direct include to perform sth like this.
In the Src.Page you have sth. like this
[[#FirstAnchor]] !! Heading BlaBla [[#SecondAnchor]] !!Next Heading Blabla
If I look at it with (:autosection:) I get sth. like this
Lets take a look at the links. The first edit points to
But if I include, let's say Inc.Page
i get sth like this
Lets take a look at the links. The edit points relatively to
Wouldn't it be very very nice, to keep that edit links absolute, it would make more sense. But I think this depends to SectionEdit too.