-
Posts
868 -
Joined
-
Last visited
-
Days Won
1
Everything posted by DaveP
-
Change Default Admin Page Loaded / Hide Pages Tree
DaveP replied to geekpete's topic in Getting Started
Dunno if it's still valid (long time ago), but this thread might be relevant -
According to their Twitter feed it's back up. (Oooh, looks like we can embed tweets.) <edit>Although it's still 503 at the moment...</edit>
-
Just recently set it up on my VPS - not particularly tricky but there's a potential gotcha in that Apache mpm prefork (whatever the heck that is) doesn't support http/2 so you need a different kind of prefork. https://http2.pro/doc/Apache got me through it. BTW if you have that kind of control over the server, mod_PageSpeed can help by at least serving webp instead of jpeg to supporting browsers. (There's much more to it as well, but the jpeg to webp thing is out of the box.)
-
-
This doesn't appear to be the usual .htaccess-related kind of thing Visiting shows that the 404 is PW's 404 page and clicking internal links tries to load the appropriate page (browser URL field changes) but it is still 404. Completely groundless wild guess - could it be a multi-language related problem?
-
Welcome NoWords! Short answer to a long question - Yes, almost certainly. Bit longer answer - Most (if not all) of your needs could be accomplished by creating a ProcessModule. This will require some programming, which you may or may not be comfortable with. See This will allow all the control over member budgets etc that you need. In PW a user page is just a page so any custom fields can be added to a user just as they would any other page. Depending on your requirements around 'events', there are various calendar modules available but without knowing a bit more about that side of things, the built in date support might be all you need. Have a look at @bernhard's tutorial above, and come back to us with any more questions you might have.
-
/site/assets/files/1234/photo.jpg style image urls. /site/assets/pwpc/pwpc-(longmd5typehash).css tells us ProCache is being used. /site/assets/aiom/css_(longmd5typehash).css is the same, but for AllInOneMinify. 1 alone is a pretty good indication. 2 or 3 in all honesty are probably definitive. 1 + 2|3 and you can be 99.999% certain. Anyone got any other tells?
-
From https://icongr.am/simple/processwire.svg
-
There's some discussion of this and related issues here but it doesn't look promising...
-
Image variations not always being generated
DaveP replied to cosmicsafari's topic in General Support
ImageSizerEngineIMagick is much more forgiving on large images than the default GD resizing engine, if you can make it available on your hosting. (And faster and all round better IMHO.)- 6 replies
-
- 3
-
- images
- variations
-
(and 2 more)
Tagged with:
-
Still a bit of dummy content at http://mbr-mining.com/news/jl/ (complete with a nice picture of MV Teal on Windermere )
-
Hmmm, there's nothing obvious. What happens if you echo $selector?
-
Is this any help (from a working site) <?php namespace ProcessWire; if(!$input->urlSegment1) throw new Wire404Exception(); $tag = $sanitizer->name($input->urlSegment1); $tagtitle = $pages->get("template=tag,name=$tag")->title; if(!$tagtitle) throw new Wire404Exception(); In your example this would be from /tag/ template, which is set to use urlSegments.
-
Very much a guess, but it looks like you are trying to manipulate a page that doesn't really exist yet. Have a look at the basic steps here and see if your flow matches, or perhaps you have missed a $page->save() somewhere.
-
New Template Family Setting: Single Child
DaveP replied to wheelmaker24's topic in Wishlist & Roadmap
Don't disagree with 'one' being an option, but what about rather than 1, having an integer? You might want exactly 3 children for a particular requirement. -
-
Starting point - https://processwire.com/api/modules/multi-site-support/
-
It's the folder that /site/ and /wire/ live in; the one where index.php and .htaccess are (in a standard install).
-
Further to my earlier reply, in case this might help someone, what I often do is have a 'Fieldset in Tab' on the Home page for sitewide settings something like this... Then, before output, a little bit of code like this $home = $pages->get('/'); allows me to do echo $home->site_title; // or echo $home->images_common->first()->url; (The observant amongst you will have spotted an alarming lack of naming consistency in the code above, but heyho, this is a real example from a real site, warts and all.)
-
[SOLVED] Weird problem with copy of production site
DaveP replied to Krlos's topic in General Support
I googled 'cpanel compress tool' and didn't find anything specific. Do you mean you 'zipped' (or otherwise archived) the files? Macs have some odd habits with file extensions - if they were zipped, are you sure you unzipped them after download? -
You would be better having your default image attached to an actual page, like your 'home' page, or a hidden 'settings' page, then all the usual PW image methods will work. As you have discovered, they don't work the way you are trying. There might be a module that could help, but if it is just the one image, that might be overkill.
-
Firstly apologies for the convoluted thread title. This was an idea I had a while ago and was brought to mind by @dragan's recent post. Going back to a project, I took some time to find where various bits of code were lurking - 'standard' files like init.php, ready.php, finished.php (are there any others?), 'non-template' files in /site/templates/ ('_whatever.php' type stuff) or something/somewhere else (folder inside /site/templates/ for example). Anyhow, the idea was for a process module (custom admin page) to check these built-in locations and configurable for others, with a docblock parser, that would report what files were in use and what functions they contain. Is there anything like this already? <edit class='saveReading'>Yep, Tracy (as is so often the case) has it covered</edit> If not, is there any merit in such a tool being created (shouldn't be that hard)?
-
Module idea: index + search file-contents
DaveP replied to dragan's topic in Module/Plugin Development
What about a new field type? Derived from FieldtypeFile but more like FieldtypeMapMarker i.e. a combination type field with all the features of FieldtypeFile but with an added 'index' or 'contents' subfield (is that a thing?). Let's call it FieldtypeIndexedFile. You would certainly need a module, and a way to extend it with different file type parsers (Excel, PDF etc etc). Should be doable, but way beyond my abilities to even attempt. (Just watch someone have one working in about an hour from now.)- 7 replies
-
- 1
-
- file-search
- uploads
-
(and 2 more)
Tagged with:
-
FWIW it's Atom for me. Has got much better recently and seems much less of a resource hog than Netbeans et al. Also has a uiKit autocomplete plugin.