-
Posts
10,902 -
Joined
-
Last visited
-
Days Won
349
Everything posted by adrian
-
I think you can probably do what you want by hooking into: ProcessPageListActions::getActions but unless you have a need to keep the Sektionen branch visible, I think the easiest option is to move it under the Admin branch where non-superusers won't have access to edit it.
- 20 replies
-
- 1
-
This module (http://modules.processwire.com/modules/process-page-delete/) is now obsolete, but it will show you how you can add your own page list action button. An easier option might be to make use of the RuntimeMarkup module (http://modules.processwire.com/modules/fieldtype-runtime-markup/) to add an email button to the page editor interface. Hope that helps to get you going.
-
Problem: saving repeater item from one page to another
adrian replied to theoretic's topic in General Support
Not certain, but I think you may need to iterate through each of the repeater items subfields, adding them to the new repeater item. Also, take a look at this: In a hurry, so not sure if you are perhaps following that correctly or not. -
Then I would suggest contacting the IT guy for more details. Perhaps it's a simple matter of unchecking SSL or TLS or changing the port. He should know what is required.
-
It's a simple matter of reading about the required SMTP settings for your mail server.
-
@JoshoB - I would recommend installing and configuring http://modules.processwire.com/modules/wire-mail-smtp/ so that all your emails will go out through SMTP, rather than PHP's mail() I have no problems here on multiple sites with the forgot password module, so guessing it is an issue with your outgoing emails. You could also install TracyDebugger and turn on the Mail panel which will intercept outgoing emails - this will let you know whether they are in fact being triggered for sending by PW which can help to narrow down where the problem might be.
-
@justb3a - what about using the "purify" sanitizer instead of "textarea". Not sure if it suits your needs, but thought I should mention it.
-
$pages->count('template=posts-content');
-
Prevent script interruption while importing files
adrian replied to manlio's topic in General Support
Or if it's a remote URL you might need something like this instead of file_exists. $file_headers = @get_headers($filename); if($file_headers[0] == 'HTTP/1.0 404 Not Found') { -
Do translatable strings are functional anywhere ?
adrian replied to Doc's topic in Multi-Language Support
I am not a big ML user, but I ended up with a Table field on the home page for sitewide translations. I use a 'name' field for the first column and a textAreaMultilanguage for the second column. This makes it really easy to add new strings and edit via the admin. I wrap the Table field in a fieldsetTab called "Sitewide Translations" to keep it separate from the main content. -
There are 6 10 38 episodes now, so I'll just link to the channel: https://www.youtube.com/channel/UCAC6bGszwXecqp1Nq2qn1Sg
-
A couple of comprehensive looking video tutorials in Polish by the folks at: https://xtras.pl/
-
@Nukro - what you are after is certainly possible, but I am not sure the best way to make it handle everyone's need and not break current functionality for existing users because at the moment the module doesn't consider anything other than the page ID being somewhere in the URL. This allow ultimate flexibility in the URL, but obviously prevents detection of URL segments. I guess it could be a module config option to consider everything after the ID as segments that should be parsed. Anyway, for now I have attached a version that should do what you want. Please test thoroughly and let me know how it goes. If it's working fine at your end, I'll probably make the urlSegment detection optional and release it. ProcessRedirectIds.module
-
Typically the way to do this is define $i=0; before the foreach loop and then at the end (just inside) do: $i++ This lets you check which iteration of the loop you are at, so if $i==0 then "continue;" Hope that helps - it's not a full code example, but hopefully it will help you to understand what is required.
- 9 replies
-
- 3
-
- onepage
- navigation
-
(and 1 more)
Tagged with:
-
Sounds like you must have something incorrect because I know that technique has been used by many people. Maybe if you explain how you set it up we can help?
-
Maybe I am not really this properly, but doesn't this take care of things?
-
Sure, but he asked for when the site is "updated" - surely a change to a page is an update Just noticed that he wrote: "just send an email with the link to the new page" - so yes, Pages::added would be much better
-
I would do it on a page save hook. You might find some useful code to "borrow" from this module: http://modules.processwire.com/modules/process-field-change-notifier/
-
[SOLVED] Can't add image in certain situation
adrian replied to Harmen's topic in Module/Plugin Development
Does the Errors panel on the Tracy Debugbar show any warnings/notices? Because of the way Tracy intercepts notices/warnings, sometimes it can cause code to work that would have otherwise failed. As far as I can tell this only happens with AJAX events where the notice would break the script because of header issues or just polluting of a JSON response. The key thing though is that with recent versions of Tracy, the notice/warning will always appear in the Errors panel so you are notified that something needs fixing.- 15 replies
-
- importpagesprestashop
- field
-
(and 2 more)
Tagged with:
-
Just send through whenever you are happy with things - definitely looks like a great improvement - much appreciated!
-
That is looking really nice - I agree, the default styles from the Tracy core are ugly as - really looking forward to your final version - thanks! BTW - nice seeing that you are making good use of the console Snippets While you're in the mode for tackling this stuff, if you feel like it, it would be incredible if you'd be willing to take a look at this: https://github.com/nette/tracy/pull/241 As it mentions, that PR is a work in progress, but it looks like it's going to do more harm than good in my opinion. From my initial experiments, it's going to make it very difficult to get the ACE editor styles into the Console panel. In particular, have a read of my comment here: https://github.com/nette/tracy/pull/241#issuecomment-273268211 - most importantly, note that I always hack the Tracy core's /tracy-master/src/Tracy/assets/Bar/bar.css to change line #23 from #tracy-debug * { to #tracy-debug-bar * { Perhaps we should talk about this more via PM if you are interested in helping to get everything working with that new approach that is in the works. PS - no pressure - I am sure you have lots of other things to do. I have been putting it off for the moment myself
-
Yep, of() is just a shortcut for the full setOutputFormatting() method.
-
Yeah, you will need something like this: $u = $users->get($sanitizer->username('username')); $u->of(false); $u->addRole("moderator"); $u->save(); You should have received an error that mentions specifically that you need to turn of output formatting. Do you have debugmode on and/or TracyDebugger installed?
-
Sounds like a good idea to me. @bernhard actually mentioned here as well many pages back, but I never got around to it. @bernhard - do you have the latest version of the code available somewhere?
-
Another update! There is now a "Toggle All" button which may come in handy if you want to search for a method (CTRL/CMD + F) to see the classes it exists in. Tip: search for "___save", rather than "save" so it doesn't find it twice on each row. Another update, unrelated to Captain Hook - now each panel in the Selector Panel has an info iconℹlinked to the relevant section in the "Introducing Tracy Debugger" blog post so you can get quick information about what each panel does.