IncludeWithEdit-Talk

Summary: Talk page for IncludeWithEdit.
Maintainer: KAL
Users: (View? / Edit)

This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.

Comments

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/>'");

-Radu


Problem with #from anchor

When a page is included with #from#end like:

       (:included somepage#somepart#partend:) 

than the section edit link does not function and the URI looks like this:

       somepage#somepart%23partend?action=edit

(it opens the included page but not the edit version of the page)

-Paddelboot, 04-2006


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>'");

Bm?


Suggestion

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

Src.Page edit

Heading

Blabla

edit

NextHeading

Blabla

Lets take a look at the links. The first edit points to

 Src.Page?action=edit&s=1&auto=y&from=Src.Page

But if I include, let's say Inc.Page

 (:include Src.Page#FirstAnchor:)

i get sth like this

Inc.Page

edit

Heading

Blabla

Lets take a look at the links. The edit points relatively to

 Inc.Page?action=edit&s=1&auto=y&from=Inc.Page

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.

Talk page for the IncludeWithEdit recipe (users?).