-
Posts
11,102 -
Joined
-
Last visited
-
Days Won
365
Everything posted by adrian
-
Hi everyone, One thing that I am guilty of (and I am not the only one ) when sharing links to a line (or lines) of code in a Github repo, is sharing a link to the latest version of the file, rather than a link to a specific blob that won't ever change. In fact there are lots of places in the PW documentation/blog that now have outdated links because of this. I have known about this shortcut for a while, but keep forgetting it, so hopefully this will engrain it a little better for me. After you click a line to share (or multiple lines by clicking the first line and then shift+clicking the last line), simply hit the "y" key and the link in the browser address bar will change to one for the current blob, which will always remain correct. Here's some more info if you are interested: https://blog.mariusschulz.com/2015/07/25/sharing-line-highlights-in-github-files If you see me (or anyone else) sharing non-permanent links, please remind them of this
- 2 replies
-
- 11
-
-
Simply click the "Like this" button next to the post.
-
Use template for main page and children page?
adrian replied to OpenBayou's topic in Getting Started
The usual approach would be an "advertisements" (plural) template for the parent page and an "advertisement" (singular) for the child pages - that will give you the most flexibility in controlling the Family settings so that all child pages must be of that advertisement template when created. There are other approaches, but this will be the simplest/most flexible while you are learning the ropes! -
I haven't used the Wordpress hana plugin, but maybe this is what you are looking for: http://wpmarketing.org/forum/forum/wp-plugin-hana-code-insert
-
I think you're in the wrong place - this is the support forum for ProcessWire, not Wordpress! ProcessWire also has a hanna code plugin - I think that is your confusion, but since you are here, maybe you should stay
-
No - just go to your PW Access > Roles menu and assign the relevant hanna permissions to the appropriate roles. I just re-read your question and see that you actually only want the codes editable by the administrator role. By this do you mean the PW superuser role? By default, only the superuser should be able to view/edit hanna codes.
-
-
Just to say that I agree that @BitPoet's approach makes much more sense than switching templates.
-
Just pinging @Mike Rockett who develops the Jumplinks module which is a much more feature-rich version of the Redirects module. I know he is working on a new version of JL - perhaps multi-language will make it in?
-
Yep, you can do that, just not in init.php. You need to do it in ready.php because the page is not available yet in init.php
-
Sorry I forgot about this part of your message. I have just added support for this, along with the ability to import page fields with multiple values (by title). Note that you can adjust the separator for multiple pages (eg authors in your example, although I think you may not make use of the multiple option). Please let me know how this goes for you - it hasn't been well tested and there is quite a bit going to support all this.
-
Thanks for all those ideas @bernhard and @szabesz - You can already hide the debug bar by clicking the "x" at the far right of the bar, so I think that covers the "hide once" requirement. As for sticky - you need a way to restore, which is what the toggle button does, so I think I'll go for the toggled off by default on phone sized screens. I like the history idea and I wonder if an additional "Save Snippet" button could complement this such that snippets are automatically saved to history each time that first comment line is changed (maybe the last 5), and saved more permanently to a snippets library if you click the save button? Anyway, these are on my list and hopefully I can get to them shortly. Thanks again for the input!
-
@Juergen - what about installing @Pierre-Luc's AutoDetect language switcher module: http://modules.processwire.com/modules/autodetect-language/ If that is set up to redirect to the /en/ version of the page, then the translated version of the login message etc should be displayed.
-
Hi @bernhard, Sorry for the delay here - been hectic catching up with everything after getting back. I haven't played around too much yet, but I don't think it's going to be possible to have multiple console windows without hacking the Tracy core. If you want a quick preview of how it might work, change this line: https://github.com/adrianbj/TracyDebugger/blob/930b738e988239ac71fd76c23d565ba7dc091eeb/tracy-master/src/Tracy/assets/Bar/bar.js#L137 to: var win = window.open('', Date.now(), 'left=' + offset.left + ',top=' + offset.top It's just a quick hack to give each new window a different name. I am sure there will be side-effects though, so don't get too used to it Perhaps the better solution would be to implement my idea of adding a snippet manager to the console so that you could save and load (from a dropdown or similar) lots of different code snippets. You could run one, then easily load another one. I just need to figure out a nice interface for this so it's easy to find the snippet you are looking for when there are lots of saved snippets. I am happy to do something along these lines, but I am not sure I would want to lose the option for having the debug bar if I need it. Perhaps it could be toggled disabled be default (so it just shows that red power button like it does when you use the Tracy Toggler panel button or the Disable Tracy button in the Panel Selector. Do you think that would work for your needs?
-
Hi @mel47 - sorry for the delay on this. I have just committed a fix - could you please take a look and let me know if you have any other problems? I also fixed an issue with multiple values when you want a line break (\r) as the separator. I am converting \r to chr(13) and \n to chr(10). I know that \r works on Mac Excel, but from reading around I think you need \n for Windows, but you guys can test that out.
-
Edit submitted entry in Sites Powered by ProcessWire
adrian replied to AndZyk's topic in General Support
@AndZyk - I can edit for you - just let me know what changes you need. -
Firstly, I am still not completely au fait with all the elements of multi-language, so happy for feedback on this. Currently it doesn't check the browser language - it checks the user language, so if you send a person a link to something like: mysite.com/en/ then you should see the english version of the message - I am assuming your default language is not english in this example, but you get the idea. Do you think there needs to be improvements here? I haven't done much reading/experience on this, but I though that automatic language detection was not recommended, but please correct me if I am wrong and let me know the best way to do that and I'll incorporate.
-
@arjen - check out the User Switcher in Tracy or ALIF - both of these do what you are looking for. Btw, not dissing what Pete has done here - his is the most secure option, but I think the other two manage the security implications.
-
Done! Please let me know if you have any problems and also be sure to "Like" @Can's post over here: https://processwire.com/talk/topic/5825-multi-language-support-for-module-config-fields/?do=findComment&comment=131595 because he showed me how to add ML module config settings.
-
Multi-language support for module config fields
adrian replied to mach's topic in Multi-Language Support
That's because I stole the relevant bits from your code -
Multi-language support for module config fields
adrian replied to mach's topic in Multi-Language Support
Thanks @Can - just looked through your module and have it working for my module already. Thanks so much for pointing me to this! -
Multi-language support for module config fields
adrian replied to mach's topic in Multi-Language Support
Just came across the need for this, so thought I'd submit a feature request: https://github.com/processwire/processwire-requests/issues/46 -
Sorry I missed this post, but I am hoping by now you have realized that this is an issue with your wireMail setup and not this module. Just an oversight on my part - thanks for the heads up and the solution - much appreciated. It is fixed now!
-
[solved] Can i Switch to 3.0.39 Dev branch easily ?
adrian replied to EyeDentify's topic in Getting Started
I completely agree with @szabesz here - the PW Upgrades modules is great! I used to be all about updates via git, but this module makes it so easy. And, if you have Tracy installed you can instantly switch between any of the versions of PW that you ever installed via the upgrades module: http://processwire.com/blog/posts/introducing-tracy-debugger/#processwire-version-panel - great if you are not sure if a problem is due to a specific PW version or not.