-
Posts
11,213 -
Joined
-
Last visited
-
Days Won
373
Everything posted by adrian
-
@Soma - here's a PR to fix this - thanks! https://github.com/somatonic/PageListImageLabel/pull/4
-
It would be possible (and probably a good idea) to add this functionality to Migrator, but it's beyond what I have time for at the moment I'm afraid.
-
Oh yes, I should mention that I did my testing with 3.0.55, but it should still work in 2.x Thanks for helping to narrow down what might be causing that homepage change. I think it will be a matter of doing chunks of posts (maybe 20 at a time, or something like that) and then narrowing down from there. There must be something weird
-
Glad that worked for you @jmartsch On another note, the new Selector Queries section in the DebugMode panel now includes a "Time" column so you can see how long each of your selectors is taking. Note that #7 is an intentionally relatively slow query to make a point for this screenshot: Keep in mind that caching may get involved here once you reload a page. Clearing the session (eg logging out and in again) will show you the speed on first load for a user. Also, just added a "Logout" icon/button to the PW Info panel - nice shortcut if you want to logout from the front-end of your site.
-
Hi @MilenKo - thanks for the XML file - it was very helpful. I have committed a new version of Migrator to Github that fixes the duplicate comments issue and also now properly sets the approved status of comments. Note that I didn't test your complete file (because it would take quite a long time I expect). I cut it down to 5 posts, but with those everything is now working as expected. I didn't see the issue with the homepage being renamed, but maybe there is one post in there that is doing something strange. Could you please test with a limited set to make sure everything is working at your end. And then try with all and let me know about the homepage issue. If you could narrow it down to a particular post then I should be able to fix. It's probably a good idea to start with a completely fresh PW install (after all your previous attempts, something might be messed up by now) - you can even let Migrator install the comments module and set up the field etc. Thanks, Adrian
-
PageField – return all pages under 'Home', including children
adrian replied to a-ok's topic in General Support
-
Small update that: 1) lets you add: protected $noBackup = true; to your action class to prevent backups (either automatic or from showing the option to backup). This is handy if your action doesn't do any DB writing in which case a backup isn't relevant. 2) lets you populate: $this->output = 'Content for output'; to your executeAction() method. Whatever content is in this will be returned before $this->successMessage and won't be formatted with the green background. This is useful if your action queries and displays info. Hope you guys find these useful. PS - still waiting on the first PR for a user contributed action
-
@MilenKo - sure, send it through - I'll try to test later today.
-
@jmartsch - I think the issue you are having is likely permission access to the debug bar. When I use it in bootstrapped mode, I can use bd() calls as normal. Just make sure you are logged into the backend before loading the bootstrapped page. Does that work for you? PS - I don't have to do any manual loading of the Tracy core when I do this.
-
@MilenKo - I don't know why this is proving so problematic for you. I haven't ever imported a WP blog into the PW homepage - always into /blog/, but it has always worked perfectly and I have never had to create any fields ahead of time, including the comment fields. The pending status is a known issue. I had been waiting on the response to this: https://github.com/ryancramerdesign/ProcessWire/issues/1034, which ended up here: https://github.com/processwire/processwire-issues/issues/88 - it looks like it can be solved now.
-
@DL7 I haven't used this module, but I see that it's not autoload in templates so try this before you save the page via the API: $modules->get("PublishToTwitter");
-
Hi @Soma - not sure if you're still supporting this module, but there is a conflict with the new expandable Pages > Tree menu. With this module installed, the page title appears blank. Please let me know if you have any trouble reproducing.
-
Float field type: a way to convert commas into dots?
adrian replied to Christophe's topic in Multi-Language Support
That's out of my hands - will have to get @martijn-geerts himself to fix that. -
Float field type: a way to convert commas into dots?
adrian replied to Christophe's topic in Multi-Language Support
I assume you are talking about the PW modules directory? I have just deleted the "martijn" account which had no modules. -
Hi @wbertl - firstly, welcome to the forums! Please upgrade to the latest version which should fix the issue for you.
-
@gmclelland - latest version includes node_modules and sass-cache as default directories to exclude. On an unrelated note, I have also added a new "Selector Queries" section to the PW Debug panel. This shows you all the selector calls made during the current page load. This post also includes a Console Panel snippet idea. If you need to look up a page, template or field ID, this snippet will return the name, title, label, edit and view links, etc. Just enter the ID and the type and run. I have saved it as "Info from ID", but you can choose whatever name you want. Code included in a spoiler below.
-
@MilenKo - if you fix that error and posts are still not being imported fully, PM me your XML file (if you can) and I'll take a look - it should work fine.
-
Ok, that sounds reasonable Scanning will only happen if you have the ToDo panel enabled - disabling the panel would do the same as what you are suggesting, unless I am not fully understanding ?
-
But that's what the "Ignore Directories" option is for. Are you suggesting that I should hard code in those bower, sass, node_modules etc, so you don't need to manually add them?
-
@gmclelland - yes, by default it is just the files inside /site/templates/ and all it's subfolders, but it can also include /site/modules/ if you've checked that option. Yes, it is a very good idea to add sass, bower, etc files to the Ignore Directories. What feature exactly do you want to turn off?
-
Put this in your site/ready.php file: $this->addHookAfter('Session::loginSuccess', null, function($event) { if($this->wire('user')->hasRole("target-role")) $this->wire('session')->redirect("other-url"); });
-
Page Table data on a multilingual website (frontend)?
adrian replied to Christophe's topic in Multi-Language Support
A little OT, but the Language Switcher in AdminOnSterdoids is awesome for working with the the multi-language capabilities of BCE because it let you switch languages from a dropdown on the top menu. -
@GKrabach - does the frontend of the site work correctly? Homepage and others? Maybe have a read through this: https://processwire.com/docs/tutorials/troubleshooting-guide/page2
-
Page Table data on a multilingual website (frontend)?
adrian replied to Christophe's topic in Multi-Language Support
What about the "Active" column in BCE's edit mode - you should be able to activate the current language (selected in your profile) for all pages at once with this. Another option is the "Page Active Languages Batcher" in the AdminActions module, which lets you enable or disable active status of multiple languages on multiple pages at once.