-
Posts
11,107 -
Joined
-
Last visited
-
Days Won
365
Everything posted by adrian
-
This morning's commits add to the color scheme: Red: The current page is using a different template. Orange: The current page is using it's default template file, but there are other pages on the site that are using a different template file (obviously via the Sticky option). Use "Reset All" to clear this when you're done testing. Green: All pages on the site are using their default template files. This is now documented on the blog post.
-
Or just trust the color of the template path icon in the Tracy Debug bar: Red: You have selected a different template file. Green: You're using the default template file.
-
Tracy to the rescue: https://processwire.com/blog/posts/introducing-tracy-debugger/#template-path-panel or you could place something like this in your site/ready.php file: if($user ......) { $page->template->filename = '_dev-' . $page->template->filename; } else { }
-
Yeah, good idea - I have made those changes locally - they should be committed later today. I think that was/is my thought. I am not sure where or how else you would want to run them. My idea was to just have a way to store common debug snippets and also perhaps admin/db cleanup, manipulation, batch operation type snippets. Maybe you have some better / different ideas to share?
-
Glad it helps - if you want some extended reading, here is the post that spawned my module: Lots of interesting reading on those file/image hooks.
-
Actually it does, but you need to send as an array: $footer = $ftvar->render(array('partial' => 'true')); Then you can get these using the $options variable: $options['partial'];
-
You could use this module: http://modules.processwire.com/modules/process-custom-upload-names/ Or if it looks too heavy for your needs, grab some code from it: Admin InputfieldFile::fileAdded - https://github.com/adrianbj/CustomUploadNames/blob/master/ProcessCustomUploadNames.module#L97 Frontend API calls Pagefile::install - https://github.com/adrianbj/CustomUploadNames/blob/master/ProcessCustomUploadNames.module#L101
-
Hey @netcarver - do you mean as a way to install/switch PW version, or for switching branches of your website code (ie site folder) ? I have actually been thinking about the latter - I think it could be very cool, but I wonder how standard different devs are in their approach to versioning their site folder, vs the website root. How are they using gitignore? There are some topics around this, some of which you have contributed to: https://processwire.com/talk/topic/2885-what-filesfolders-should-be-added-to-gitignore-for-regular-development/ https://processwire.com/talk/topic/8505-pw-and-git/ https://processwire.com/talk/topic/5417-using-git-with-a-cms-for-version-control-and-deployment-on-multiple-machines/ Do you have any specific ideas?
-
Hi @psy- thanks for creating your module. Could you also please edit the Github link to go to: https://github.com/clipmagic/MarkupJsonLDSchema/ instead of linking directly to the zip. That way we can read more about and can more easily choose how we might want to get/install it. Thanks!
-
@Ivan Gretsky - you can click the tick mark next to the name of your activity stream, or even next to "Unread Content" on this page: https://processwire.com/talk/discover/unread/ - that will create a shortcut to this page: The tick goes green and results in the "Unread Content" link at the top right of the page. This works for any of your custom Activity Streams.
-
Thanks @Macrura - I have gone with your suggestion and packaged the three required ACE files. I thought about using CDNJS instead, but if it's down, things would break and I'd need to add the textarea fallback anyway. This way just seems simpler. Thanks for your thoughts on the snippets manager - I think it could be quite useful - so expect that to be added sometime soon. The latest version just committed includes ACE editor, along with yet another new panel ProcessWire Version Switcher This new PW Version Panel lets you choose from any of the versions you have available and gives you the ability to switch versions instantly. The available versions come from Ryan's ProcessWire Upgrades module - so any version that you installed via it will be available. When you click change, it swaps the names of: wire/, .htaccess, and index.php - much easier than manually renaming. The icon is green when you are using the latest version that is available on your system, and orange for any other version. Please let me know if you have any problems with either of these additions. PS - It's probably obvious, but the switcher is not recommended for live sites, so don't blame me if a version change breaks your site!
-
@pwired - do the tooltips always appear below the user for you? It only happens for me if I have my browser viewport set to a really small height such that they can't fit above.
-
Looking for a little advice. I have just added ACE Editor to the Console panel (not committed yet): Questions: Do you think we need an option to revert to a standard textarea or is having ACE loaded the only option ok? This works without having either of the PW ACE modules installed so I am just packaging the ACE core, the PHP highlighter, and one theme (tomorrow_night). Is everyone ok with this, or would you prefer to have the ability to change themes? If I do this, then I will probably require InputfieldAceExtended to be installed to prevent a huge download included with this module. Any thoughts on whether adding a snippets manager to this panel would be useful? It would allow you to name and save code snippets which can be loaded dynamically from a select field. Any thoughts or suggestions? Thanks!
-
Hi @ceberlin - glad you are finding it convenient. Sorry there was a problem with your upload though. It shouldn't be a number of entries issue - I have imported thousands of entries without a problem (although field Table itself is slow to render with that many until Ryan adds pagination - hopefully soon). Any chance you could send me the file in it's original form so I can test and add some checks for illegal characters etc. Just to confirm - was the exported file exported using this module? Sounds like I might have an issue there. BTW - what version of PHP and PW are you running? There is already an overwrite option - you just need to enable it:
-
The Q&A style is probably going to go away for most boards - it certainly doesn't work for example in the Modules/Plugins board.
-
Thanks to some testing by @tpr the ToDo panel now supports the "loud" comment operator (/*!). If you don't know what this is, it lets you write comments that won't be lost when a scss file is compiled or a js file is minified, eg: /*! TODO that won't be lost when compiled/minified */ This should be very handy if you you have your source scss and js files above the /site/templates/ folder Also, @tpr mentioned the following which some of you might find useful:
-
Autojoined 'Options' field causes thousands of DB queries on a single page
adrian replied to wet's topic in API & Templates
This doesn't sound good - can you narrow down where it's coming from in Tracy - is it due to the PW Info Panel where it populates the "Fields List & Values" section? -
Maybe it's a cache issue since you can't get to the admin to do a Modules > Refresh, try emptying the "caches" database table. Sorry you said you already did that I think there is something though in the fact that all your other pages work, just not the homepage and the admin. If you still have no luck, if you PM me access details (FTP and PW login) I'd be happy to take a look for you. Unrelated, but you have a JS syntax error - take a look at the console. PS It seems unlikely, but have there been any changes made to the .htaccess file recently. Did you replace it when you upgraded to 2.7.2?
- 7 replies
-
- 1
-
-
- admin
- publishing
-
(and 3 more)
Tagged with:
-
Did you just delete the files, or did you properly uninstall it? If not, at this point it might be easiest to go to modules DB table in PHPMyAdmin and delete the row for that module. Then do a Modules > Refresh and see if that helps.
- 7 replies
-
- admin
- publishing
-
(and 3 more)
Tagged with:
-
Just to follow up, @tpr figured out why the js file wasn't being parsed for him - it's amazing what a single missing space can do His PR has been merged and I have also added support for latte {*TODO this*} style comments. If there are any other comment tag types that anyone needs supported, please let me know.
-
Any chance you can send me this js file? To clarify - are you saying it worked before my changes here: https://github.com/adrianbj/TracyDebugger/commit/8b3ac0823b72dec2caeb8c72ba4dd443a56ec70a Anyway, if you can send through, I am sure I can figure out why it's no longer working.
-
Yeah, that would be it - not sure how to best handle your situation. Currently I search through all files under /site/templates and all subdirectories. Maybe I could just add a config setting for defining additional alternate paths. Do you think one single text field for entering one additional path would be sufficient? It would search this and all it's subdirectories as well.
-
@tpr - thanks for your feedback as always. I have tweaked the spacing and layout of the icon. As for the comments that are not working for you - I am not sure why - all those were working for me here, except the Latte one which I have just fixed at my end and will commit a little later. Any chance you could send some scss, css, and js files that aren't working for you so I can test here?
-
1Kb = 8000 bits 1Kib = 8192 bits More info: http://superuser.com/questions/287498/what-is-the-difference-between-a-kibibyte-a-kilobit-and-a-kilobyte
-
Am I correct in assuming that this replaces Adam's version completely? If so, I think it might be good to contact the ACE folks and get them to change the link on this page: https://ace.c9.io/#nav=production