Re: [Tiki-devel] Indentation Plugin
Volker Wysk <post-hhF2Jplw28UoZk/[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
Am Mittwoch, den 19.05.2021, 14:46 +0200 schrieb luciash via TikiWiki-devel:
> Everything you put between {INDENT()}...{INDENT} is the body of your plugin.
So it should read:
'body' => tra('Explain what the plugin does with its body')
Bye
Volker
> luci
>
>
>
> On 19.05.2021 14:27, Volker Wysk wrote:
> > Am Mittwoch, den 19.05.2021, 14:16 +0200 schrieb Volker Wysk:
> > > Hi!
> > >
> > > I've followed Brendan's advice (in tikiwiki-users) and built an indentation
> > > plugin. This was easy - I've taken the PluginSup as a starting point.
> > > However, I couldn't find documentation for some of the output parameters in
> > > the wikiplugin_indent_info() function. I've commented them out and it
> > > appears to work fine:
> >
> > Um, I also don't know what that 'body' parameter does. The section in the
> > Hello World page says:
> >
> > 'body' => tra('Explain what the body of the plugin does')
> >
> > But I don't understand this comment. What's the "body of the plugin"?
> >
> >
> > Cheers,
> > Volker
> >
> > > <?php
> > > function wikiplugin_indent_info()
> > > {
> > > return [
> > > 'name' => tra('Indentation'),
> > > 'documentation' => 'PluginIndent',
> > > 'description' => tra('Indent a text block'),
> > > //'prefs' => [ 'wikiplugin_indent' ],
> > > 'body' => tra('text'),
> > > //'iconname' => 'superscript',
> > > //'introduced' => 2,
> > > //'filter' => 'wikicontent',
> > > //'tags' => [ 'basic' ],
> > > 'params' => [
> > > ],
> > > ];
> > > }
> > >
> > > function wikiplugin_indent($data, $params)
> > > {
> > > return "<ul><li style=\"list-style-type:none\">$data</li></ul>";
> > > }
> > >
> > >
> > > (I've removed the copyright notice for clarity. The file is also attached,
> > > with the copyright notice in place.)
> > >
> > > Now I'm wondering what those five unknown output parameters do. I think this
> > > plugin should be included in the next Tiki release. Therefore I want to do
> > > it right.
> > >
> > > I guess there must be documentation for them somewhere. I've found
> > > documentation here:
> > > http://dev.tiki.org/Hello+World#To_create_a_new_plugin . But it's
> > > incomplete. Have I missed something?
> > >
> > > Cheers,
> > > Volker
> > > _______________________________________________
> > > 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
>
> _______________________________________________
> 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
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmClDaQACgkQ+K4ydFOs HoXZCQ//Qt0iqyAJyUxBHKTglAe/jdNGpDjeF1OKcVM59+Zv/rF48Hx4TeN7Hta4 Hw58XXPoj1FoS2tMlbK+53a7MNkw2Ev7o+jofT0xTL7kw14u/a852dOXxegm8Abs DM+nTYXJ7v/l3IIN2dg4CyCQfEmX0Xp7h1B0EufO/RA72CwVjXYPWQ6fWO4PzKbe 3QMHQDEtTVyEYd1CdbcelcXN95QVdf3s1OW8lwAGyngjzL/TUM6BXS5fj/RYcjfb RAE8A7f66S+LjS00bAgpdVXXbYdBMXzjfPSHL1uS3+gDI5NFHgOpbG4sUhHXUxtN N2ocm0lYr2TVECAWvL6Tir+da5tF0oTe4yM4bebSm4YcLR3eKFav0+q2u6fh/O8T mkqOya8GzcjWEKnGIMGyYGau/o+mxAKdI5P5UIGpzd3RBF4rwou3GZk/DxzfGsBu KhzVgq5R3UnLnESyS2mrL1qVzaEgpC6mEeMOqJ7aJJQrO7XwUJi7D62XtoF+Cll0 QM5zRtSCdWmPBMNMekTs+HHyEbrEnSouQL1L0hhry1JQ8LaTTnV0yd3tAqiNGiZE r7aNXwXK9D4NO2hZs4ZCNuVTXO6FZfiNlmQ8zclYL0ubV5SJHjwrHP1r0cjnZ/Ya x9S5c61NU5lczF3SsbtgBsSB2yxMlisPCGCjYLNY2LF075ilO04= =nijF -----END PGP SIGNATURE-----