Jonathan Dart Posted June 16, 2014 Author Share Posted June 16, 2014 I added a toolbar to profile the performance of partials/layouts. Check out the attached screenshot to see what it looks like when the toolbar is open, by default it collapses to just display the totals. 2 Link to comment Share on other sites More sharing options...
Neeks Posted August 18, 2014 Share Posted August 18, 2014 noticed on my build of PW 2.4.9 spex white screens if you delete the styles sheet and JS lines in the _init file. Link to comment Share on other sites More sharing options...
Soma Posted August 19, 2014 Share Posted August 19, 2014 Not sure where this should be addressed, but Spex uses the $config->styles $config->scripts to collect those assets. But to work with AIOM it needs to be relative to /templates/ folder . But if I want custom modules that for examples adds it's own css to the $config->styles->add() and the path to that will be in the module folder /site/modules/MyModule/MyModule.css it doesn't work. Also from time to time third party modules don't happend to have a check if on backend or frontend, and the populate the $config->scripts even on front-end, which results in an error in AIOM. Wouldn't it be better to have a custom $config->siteScripts $config->siteStyles filearray (same as PW backend) to populate assets? This would be to avoid conflicts. Link to comment Share on other sites More sharing options...
horst Posted August 19, 2014 Share Posted August 19, 2014 +1 for $config->siteScripts and $config->siteStyles with absolute pathes / urls Link to comment Share on other sites More sharing options...
Gazley Posted August 28, 2014 Share Posted August 28, 2014 Hi there, I've just started to use Spex and am trying to retrofit it to a basic site. In the <head> section of _base.php, I have the following line: <?php echo $spex->addStyle($config->urls->templates . 'css/app.css'); ?> However, the style is not added into the <header>. I've no idea why and would appreciate any thoughts. Any ideas/help would be much appreciated. Thanks! Link to comment Share on other sites More sharing options...
Soma Posted August 28, 2014 Share Posted August 28, 2014 Maybe does the example site help that comes with it https://github.com/jdart/Spex/blob/master/example-site/_init.php#L30 The path for the file is relative to /templates/... but you got the absolute path. And you need something like this line to output the styles: here using AIOM (AllInOneMinify) module https://github.com/jdart/Spex/blob/master/example-site/layouts/_base.php#L16 1 Link to comment Share on other sites More sharing options...
Gazley Posted August 28, 2014 Share Posted August 28, 2014 Hey Soma! I changed the path to relative and added the AIOM line and bingo, the styles were applied! Many thanks for your insightful and timely help - I really appreciate it! Cheers. Link to comment Share on other sites More sharing options...
kongondo Posted August 28, 2014 Share Posted August 28, 2014 @Gazley - I'll delete the other thread then.... Link to comment Share on other sites More sharing options...
Soma Posted October 6, 2014 Share Posted October 6, 2014 Is this module still maintained cause there's some requests and issues. Kinda sad to not get a response. Link to comment Share on other sites More sharing options...
Gazley Posted October 6, 2014 Share Posted October 6, 2014 I hope it is still being maintained, it's a really awesome module that make things very easy. 1 Link to comment Share on other sites More sharing options...
horst Posted October 6, 2014 Share Posted October 6, 2014 Is this module still maintained cause there's some requests and issues. Kinda sad to not get a response. Maybe you can post them on GitHub? There are actually no open issues. Link to comment Share on other sites More sharing options...
dreerr Posted October 7, 2014 Share Posted October 7, 2014 Any Info when support for 2.5 is coming? Just tried to update but no luck… i will not write any dumb post, i will not write any dumb post, i will not write any dumb post 1 Link to comment Share on other sites More sharing options...
Gazley Posted October 7, 2014 Share Posted October 7, 2014 Hey, I'm using 2.5.3 with Spex, no problem. Link to comment Share on other sites More sharing options...
dreerr Posted June 29, 2015 Share Posted June 29, 2015 Anyone having troubles with Spex 0.9.9 and Processwire 2.6.10 like addressed here https://processwire.com/talk/topic/8444-modules-crashing-processwire-sites-and-having-other-problems/ Link to comment Share on other sites More sharing options...
cstevensjr Posted June 29, 2015 Share Posted June 29, 2015 Anyone having troubles with Spex 0.9.9 and Processwire 2.6.10 like addressed here https://processwire.com/talk/topic/8444-modules-crashing-processwire-sites-and-having-other-problems/ That was ProcessWire 2.5.10 mentioned in that post. We are now at ProcessWire 2.6.1 Make sure you are running PHP version 5.3.8 or higher. Also make sure that all of your modules are compatible with the ProcessWire version. Link to comment Share on other sites More sharing options...
dreerr Posted June 29, 2015 Share Posted June 29, 2015 Oh yes, wrong version, still with 2.6.1 no luck here, still getting Compile Error: require(): Failed opening required '/customers/c/c/1/traumawien.at/httpd.www/site/templates/layouts/default.php' (include_path='.:/usr/share/php') (line 186 of /customers/c/c/1/traumawien.at/httpd.www/site/modules/Spex/Spex.module) running on PHP 5.6 only with JqueryDataTables, ModulesManager, ProcessBatcher, TextformatterHannaCode, LoginPersist, MarkupSitemapXML, ProcessRedirects, TextformatterVideoEmbed, InputfieldChosenSelect, ProcessWireUpgrade installed. Any idea? Link to comment Share on other sites More sharing options...
horst Posted June 29, 2015 Share Posted June 29, 2015 Does you have the folder and file mentioned in the error: site/templates/layouts/default.php? means: does it exist? AFAIK does SPEX want/need to copy some files during installation to site/templates/layouts/ and in regard of the filesystem settings this may have failed without notice. But the default files it uses are _base.php and one-column.php, but not default.php. So, with the template / page you are loading you must have set $spex->setLayout('default'); Does that help? Link to comment Share on other sites More sharing options...
dreerr Posted June 30, 2015 Share Posted June 30, 2015 Thanks for your help Horst, the problem was that an _init.php file already existed so the layout was nowhere set and the default name for it is of course not one-column, but default.php Working like a charm now! 1 Link to comment Share on other sites More sharing options...
SteveB Posted February 25, 2016 Share Posted February 25, 2016 Do I have to abandon Spex if I go to Processwire 3? It does not seem to work. Not for me right now anyway. See this other post. Link to comment Share on other sites More sharing options...
horst Posted March 25, 2016 Share Posted March 25, 2016 Do I have to abandon Spex if I go to Processwire 3? It does not seem to work. Not for me right now anyway. See this other post. For all followers: A single line (250) needs to be changed to work with PW 3+. $include_fuel ? wire('all')->getArray() : array(), ( see this post: https://processwire.com/talk/topic/12298-update-273-to-308-processwiregetarray-does-not-exist/#entry114410 ) 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now