Re: [Tiki-devel] Plugin Include start and end hidden
Jonah Thomas <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <CABYjLObjFhn+ySWFgpJbmu8Ks6NYA4s+dsDgmf2pjMtCUPM4zg@mail.gmail.com> |
It occurs to me that you guys might be talking in a shorthand I don't
follow.
I'll say things at some length.
The difference in PluginInclude between V21.4 and V22 is surely
unacceptable.
It will break some sites.
What if a site has some pages that do things like
{include page='includes' start='{include page='first_include'}'}
They will have changes that look random. And the fix will be to edit random
pages in a way that may not be easy to automate correctly.
I can see that it's useful to have the new results, but they can't have the
old name.
If it's worth doing, give it names like 'last_unincluded" and
'first_beyond'.
Those are clunky names, they're just what came to mind.
On Mon, Oct 4, 2021 at 8:05 AM Jonny Bradley via TikiWiki-devel <
[email protected]> wrote:
> Hi Jonah
>
> I'm afraid i don't agree with your suggestion of changing the parameter
> descriptions, in my mind:
>
> Start: This is the line before the bit i want included
> This is the first line i want included, which comes AFTER the "start"
> line above
> Blah blah...
> And this line too which comes BEFORE the "stop" line below
> Stop: And this is the line after the included part
>
> So isn't what we have correct? (although in typing this i must admit i got
> lost a bit! :)
>
> jonny
>
>
>
>
> > On 4 Oct 2021, at 12:21, Jonah Thomas <[email protected]> wrote:
> >
> > On Mon, Oct 4, 2021 at 3:25 AM Bernard Sfez <[email protected]> wrote:
> >> OK ok ok ;-)
> >>
> >> I created a sample to demonstrate.
> >>
> >> Interesting to note, dear Jonny, that from Tiki23 to Tiki21 (or 19)
> there was a change of behaviour with the start and stop markers.
> >> Because on Tiki23 the Start and End markers are (properly) omitted from
> being displayed. (Which solve the problems if you use recent Tiki version)
> >>
> >> Tooltip says:
> >> When only a portion of the page should be included, full text of the
> line after which inclusion should start
> >
> > Include works that way for me on V21.4
> >
> > So the documentation should change. I'm not set up to do that myself
> yet.\
> > wikiplugin_include.php should change
> >
> > 'description' => tr('When only a portion of the page should be included,
> full text of the line after which inclusion should start'),
> > to
> > 'description' => tr('When only a portion of the page should be included,
> full text of the line before which inclusion should start'),
> >
> > and
> > 'description' => tr('When only a portion of the page should be included,
> full text of the line before which inclusion should end'),
> > to
> > 'description' => tr('When only a portion of the page should be included,
> full text of the line after which inclusion should end'),
> >
> > 'start' => [
> > 'required' => false,
> > 'name' => tr('Start'),
> > 'description' => tr('When only a portion of the page should be included,
> full text of the line before which
> > inclusion should start'),
> > 'since' => '1',
> > 'default' => '',
> > ],
> > 'stop' => [
> > 'required' => false,
> > 'name' => tr('Stop'),
> > 'description' => tr('When only a portion of the page should be included,
> full text of the line after which
> > inclusion should end'),
> > 'since' => '1',
> > 'default' => '',
> > ],
> >
> >
> >> And as we can see:
> http://bsfez-11581-7848.show2.tikiwiki.org/tiki-index.php?page=HomePage
> >> 1.1.1 using plain text is fine (the markers are hidden and the correct
> text is included)
> >>
> >> 1.1.2, 1.1.3 and 1.1.4 failed
> >>
> >> 1.1.5 using the hc tag (HTML Comment) are working too.
> >>
> >> So we have 2 good solutions with Tiki23 and a possible fallback for
> oldest version (not sure when)
> >>
> >> Bernard
> >>
> >> PS: Note that for some reason the numbering function failed for the
> first heading 1.1.1.
> >>
> >> --
> > Jonah Thomas
> >
> > We are limited, but the limits aren't where we think they are. We find
> them only by exceeding them.
> >
> >
> >
> > _______________________________________________
> > TikiWiki-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>
>
>
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>
--
Jonah Thomas
We are limited, but the limits aren't where we think they are. We find them
only by exceeding them.
_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel