[Koha-bugs] [Bug 31339] Use Template::Toolkit WRAPPER for Koha Plugins

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 12 01:27:35 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31339

--- Comment #4 from David Cook <dcook at prosentient.com.au> ---
(In reply to Paul Derscheid from comment #3)
> I love this approach. 

Glad to hear it!

> I could look it up myself but can you pass props to wrappers?

You can! I was going to do a better example, but I was running out of time last
night hehe. 

If you look at
https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=30289&attachment=133074
you can see I'm passing in "bodyid", "breadcrumb_label", "columns", and
"include_navigation" to the wrapper. In that case, I'm just passing strings,
but you can pass variables too. 

You can define your jsinclude and cssinclude blocks in your individual pages
and they'll still be processed via the includes in the wrapper.

So it's quite flexible and very powerful.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list