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, 15:29 +0200 schrieb luciash:
> Good idea! Feel free to edit and improve the wiki page on dev.tiki.org!

Okay, done.

> 
> Thanks,
> 
> luci
> 
> 
> On 19.05.2021 15:07, Volker Wysk wrote:
> > 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+K4ydFOsHoUFAmClFwkACgkQ+K4ydFOs
HoXW0hAAp2BIxWUEeCLNpzajAf9fpIgeHtymSegQAWt+s+ywAKiIJrhOOfMdv9zM
27RCt+/X+Km1V/WUUJQhWc32XsvYVqzYE6qr8zUk0+mlFa2wcW64Eo6ll6OMMaLv
Tk1RL7mZ30jHwPLpkrtdVlBvxVYVHuqn1Ul/MC3UiqfwyBmO2KIAsD5XzCJi0spT
K97n50eLyx6vPBU5fPUT169nzYQ/bX127x9OiijHega8fd09+HJl9eAmct4+ajKj
Iex44aK60Bi8748q4x3s6XXLcrXhdMuBZkgizURBBq8jy+/5p0MlYYQjqzHXVXNj
gfyt2EWJwu1UbrfVKQAv6u5NRijSFQ3cKKLPd2hMuAzPkp7IMWXGuyyMRVeE9/su
0qfz/hBW7vTfjEbsDcJ91JpS2oMnIPVVabCbjPtQwDLjsHqvpM/USD5bhKcuwKBk
Etv5ngAJJWuNbI5UWWcqTd+4aMiCwkfnyOJ/6X6jCF5WTUwHM7yHLKCF7AULpo+N
5PJQlQTsgyrfHciNRuSAwJM9BPY3wTChJrDPMePYmMNdnIN2u1+3mkE7JsJgOsSo
yjqN0CmS5huBiFLB59DCcMYlG4zQ+z4F+jR/ls4HsFQlUUbMqKnpWFPtXh1GThTL
6cXIRseUUnE5m/iPgwdck5z0yyTE5BnsBbcvmyLgGbe9CYvch6o=
=Dt2e
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.