-
Posts
526 -
Joined
-
Last visited
Everything posted by Gazley
-
Module: Spex: An asset and template management module
Gazley replied to Jonathan Dart's topic in Modules/Plugins
Hey, I'm using 2.5.3 with Spex, no problem. -
Best Place in PW to have custom spl_autoload_register
Gazley replied to Gazley's topic in General Support
>Should be safe from core upgrades too. That's the thing - making certain changes aren't overwritten. Thanks for your help - I now have a couple of options! Cheers. -
Best Place in PW to have custom spl_autoload_register
Gazley replied to Gazley's topic in General Support
Hi @netcarver, No, I haven't but that sounds like a great (and now you say it, very obvious) place to start I've not really used hooks - would you specify that in the page template that ultimately calls the framework or just create some kind of basic autoload module and shove it in there? Thanks for your quick response! Cheers. -
Hi there, From within PW, I call another framework that writes an object to a session variable. The problem is that PW starts the session before the other framework is called. As a result, when the called framework tries to use the session variable, the class on which the session variable is based was not loaded when PW started the session. As a result, the session variable is set to __PHP_Incomplete_Class. I'd like to specify my own spl_autoload_register in PW so that I can handle this situation but I'm not sure where the best place is to do this. Any advice much appreciated. Thanks.
-
Module: Spex: An asset and template management module
Gazley replied to Jonathan Dart's topic in Modules/Plugins
I hope it is still being maintained, it's a really awesome module that make things very easy. -
I use Xdebug and PHP storm. Debugging is very easy using these tools and of course, you still have the regular PHP output capabilities as well. Despite what has been said in this thread, I find being able to step through code incredibly useful so I would always use a real debugger over and above temporary logging. Using var_dump and so on means adding code and then having to remove it when you're done. Just adding a breakpoint is an easy way to work and nothing to change later, unless of course, you find your bug! Hope this helps.
-
Module: Spex: An asset and template management module
Gazley replied to Jonathan Dart's topic in Modules/Plugins
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. -
Module: Spex: An asset and template management module
Gazley replied to Jonathan Dart's topic in Modules/Plugins
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! -
Hi Netcarver, Just to let you know, your suggestion worked but I had to comment out the line in all three of the .module files in order to get each of them to install. Thank you very much for the module and your help with getting it installed Cheers.
-
Thanks Nico - I'll take a look
-
Hi there I tried to install Netcarver's Textile module but after installation, the install option(s) in the modules page remained disabled. I uninstalled and reinstalled using the version from Github but had the same issues. I'm using PW 2.4 and PHP 5.5. Any ideas? Cheers.
-
Hi there, Is there another editor for working with purely markup in a textarea? I tried Ace but there were bugs and it hasn't been touched for quite some time. I want to use Markdown or Textile but Tiny creates spurious issues that make it difficult to work with. Cheers.
-
Thanks diogo! Hanna code might be just what I'm looking for
-
Hi there, If I take something like the home page, in the typical PW Home page template, there is a single Body field. However, using something like Bootstrap or Foundation, if I want to add some structured Grid markup to say, add a single row with three columns with an image in each column, going into the HTML mode and adding markup is less than ideal. I've created some PW sites with quite complex templates just to have more flexibility and structure in the generated page. However, this has meant creating quite specific code to interpret and render a page based on a complex template. It all feels somewhat wrong. What do PW Pros do when they want to provide flexible page layouts that can ideally be changed in the page editor? In this case, the user is competent with HTML and the CSS framework. Is there a recommended approach to doing this without having uber-complex templates and very template-specific code? Thanks.
-
Thanks horst - I appreciate the heads-up with this.
-
Hi there, The ProFields Table Field looks really good. Can anyone tell me whether it's possible to have an Image field as a column? I watched the video and couldn't see Image in the list of fields that can be used in a Table row. Thanks.
-
Hi there, Using an Image field, PW stores the images in 'site/assets/files'. For a photography site, all of the "public" images should be crawled and available in search results. However, if the photographer publishes a "private gallery" for his/her customers to view their images for selection after a photo-shoot, these too would be stored in an Image field, just like the rest of the public facing images. I can't see a way using Robots.txt to exclude these folders from being crawled because I don't know what folders they are in ahead of time. There is nothing I know of in PW to compartmentalise one set of images from another so that they may or may not be specified in Robots.txt. The private "My Gallery" routine on the site in question dynamically creates the gallery pages only after the customer logs in to the site via SSL. If you're not logged in, you get a "page not found" and routed to the site map. Any thoughts or suggestions around this concern? Thanks.
-
Include & Bootstrap Processwire - How To Access Admin pages
Gazley replied to Gazley's topic in General Support
Hi Pete, Thanks for your comments. I don't think a subfolder name would be a problem for "back-end" pages but there again, I could just rewrite the URLs anyway. Cheers! -
Include & Bootstrap Processwire - How To Access Admin pages
Gazley posted a topic in General Support
Hi there, I would like to access the ProcessWire API from another PHP application at runtime and this is quite straightforward. However, I wonder if there is any guidance about URL re-writing and the general requirements for accessing the ProcessWire Admin/User pages for the loading of content which will not be done through the application consuming the ProcessWire API. Thanks. -
Thanks for clarifying, Ryan!
-
This request was aborted because it appears to be forged
Gazley replied to Gazley's topic in General Support
Hi SiNNut, Yep, it's an Ubuntu server. Thanks very much for the link -
This request was aborted because it appears to be forged
Gazley replied to Gazley's topic in General Support
Hey Guys, Thanks for the great tips and advice around this. I came across this: https://processwire.com/talk/topic/1563-this-request-was-aborted-because-it-appears-to-be-forged/?p=46616 I checked out the disk size and sure enough, it was out of space! I resized the drive and the problem immediately went away. We've just enabled secure login so that users can view their own galleries and the session cache was choc full of expired sessions. I assumed that PHP would remove the sessions once they expired but clearly, this isn't the case. Is there any particular guidance around the removal of session files? Anyway, problem solved - thanks again! -
This request was aborted because it appears to be forged
Gazley replied to Gazley's topic in General Support
Hi WillyC Thanks for the heads-up. I've tried logging on myself from a different browser, different machine and I get the same issue on any login that I try? I'll keep working on the beard too Cheers. -
Hi there, I've just received notification that a user trying to login to a site is getting the above message. I've viewed a number of threads in the forum about this error message but I can't seem to see a comparison. The logins to the site have always been OK and I have made no changes recently. Logins were working fine and suddenly, overnight, this error is being raised. I can't access the site right now because I'm away from my dev box. I just thought I'd ask if anyone has a view on what kind of things might have changed on the server for it to start raising this error? Many thanks.
-
Autload module not discovered by wire('ModuleName')
Gazley replied to Gazley's topic in General Support
Thanks Guys. I appreciate your clarification around the concept of "autoload"