Last modified: 2011-08-23 21:40:54 UTC
Let's assume I have two pages. A page "1" with sections: A, B, C; and a page "2" with sections: D, E, F. The tag <pages from="1" fromsection="B" to="2" tosecton="E" /> will show sections B and E. But it should show the text _between_ <section start="B"/> and <section end="E"/> - sections B, C, D, E. In the source code I have found the extension is using {{#lst}} (the documentation says nothing about that), which allow multiple sections transclusion. <pages from="1" fromsection="B|C" to="2" tosecton="D|E" /> Above example will do what I want, but it seems hackish - it is neither intuitive nor documented.
Created attachment 7349 [details] A patch fixing fromsection I have created a patch, which changes the code of pr_renderPages function a bit. The patch should fix an issue with 'fromsection'. Fixing 'tosection' depends on bug #23407.
Created attachment 8945 [details] Updated version that applies to r93993 I have created an updated patch, that fixes fromsection and tosection behaviour.
Applied in r95338 with minor change ( != should be !== )