How to include jQuery UI in 5.7?

Permalink
In 5.6 we used johnthefish's jQuery UI plugin to ensure that UI was included on the view of a page for viewers. It doesn't support 5.7 and I need to know what the best way to include jQuery UI is. Is there a proper way without hacking anything up?

TIA

WebSolutions
View Replies: View Best Answer
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
Hi WebSolutions,

Do you need jQuery UI for logged in users or normal viewing of the web page?

In 5.7, jQuery UI is an asset that is part of concrete5.

You can use your theme page_theme.php to require (or provide) it, so that it is loaded with your pages.

This video covers the topic of using assets.
https://www.concrete5.org/documentation/developers/5.7/designing-for...

Here is a list of concrete5 5.7 assets.
https://www.concrete5.org/documentation/developers/5.7/appendix/asse...

This is an example page_theme.php that is part of the Elemental theme.
concrete\themes\elemental\page_theme.php
WebSolutions replied on at Permalink Reply
WebSolutions
Excellent, thanks!
WebStudioEast replied on at Permalink Reply
$this->requireAsset('javascript', 'jquery');