-
Posts
11,102 -
Joined
-
Last visited
-
Days Won
365
Everything posted by adrian
-
Yeah, maybe that would be more efficient, but wouldn't you also want to throw a 404 if it didn't match match your required range? Using a more specific regex in the "Which URL segments do you want to allow?" would take care of this automatically. I am no expert in the efficiencies of regex matching, but do you think it's worth having a simpler regex to save the additional checks in the code? I guess you'd need to test the two and see
-
Probably nothing wrong - I guess it depends on how determined you are to make sure they are valid years. Yes 9155 is a valid year, but it if was an accidental transposition of the 9 and 1, then it might be nice to exclude it if you are only expecting years plus or minus a hundred of today (or whatever is appropriate).
-
@szabesz - Thanks for the pointer to Tracy for this. Unfortunately, of everything in that list, mod_security is the one thing that can't be reliably confirmed as not installed, because PHP can't determine this for PHP-FPM - it only works if php is installed as an apache module. A positive "1" should confirm that mod_security is installed, but a false result unfortunately can't confirm that it isn't. I might add an additional check to show if the negative is confirmed - that I think we can do.
-
http://modules.processwire.com/search/?q=rss
-
Sometimes it's better to use the ID of the page for those critical pages, or employ some way to prevent changing the name of the page: page-rename permission: https://processwire.com/blog/posts/language-access-control-and-more-special-permissions/#how-to-use-the-page-rename-permission "prevent manual changes" option in the Page Rename Options module: http://modules.processwire.com/modules/page-rename-options/
-
Here's a nice article with some examples if you need to allow dates before 1900 http://www.x-note.co.uk/javascript-regex-validate-years-in-range/ Also don't forget about some of the great regex testing tools: https://leaverou.github.io/regexplained/ https://regex101.com/ http://www.phpliveregex.com/
-
But if you are already familiar with the destination and know that it is compatible, then that is still the easiest way to copy a PW installation. Perhaps the tutorial could include a caveat suggesting a test install from scratch might be beneficial if you are unfamiliar with the hosting environment. @Joss ?
-
Do the changes stick after you save, or are they reverted?
-
My guess would be that your assets/files folder doesn't have read permission. Do a quick recursive change (to get all the subfolders as well) to 777 to test and if that works, then sort out the proper owner/permission settings.
- 8 replies
-
- thumbnails
- media
-
(and 1 more)
Tagged with:
-
Hi everyone, I just added multi-language support to this module. I use it with alternate language file fields for translated versions of PDFs. In my example, I have these two fields: document_pdf document_pdf_portugues I am using this filename format setting: {$page->title} Now when I upload, the PDF gets renamed to match the title of the page based on the language suffix of the field, eg. a page with these multi-language titles: My Document Title (default) | Meu Título do Documento (portugues) results in pdfs named: my-document-title.pdf | meu-título-do-documento.pdf Please note that I am still pretty new to this multi-language stuff, so let me know if you have any problems or have ideas for improvements.
-
@antpre - Tracy has an easy and safe way to disable all autoload modules for testing if there is some interference: https://processwire.com/blog/posts/introducing-tracy-debugger/#module-disabler-panel That might help to narrow it down for you. Also, with Tracy on, you don't really need debug mode
-
Problem with multi-instance giving array notice
adrian replied to asbjorn's topic in API & Templates
Yeah, that would make sense since it's an array. Will have to wait for someone who has some experience with multi-instance to chime in. -
Problem with multi-instance giving array notice
adrian replied to asbjorn's topic in API & Templates
You guys are mentioning an array rather than an object is being returned, so I am probably not correct here, but might be worth a shot - I wonder if outputformatting is off when calling a field from another instance? Try turning it on for the page, or using: $page->getFormatted('title'); Again, I a, probably wrong, but I haven't played with multi-instance yet so just throwing an idea out there. -
Given the underwhelming response I am going to assume that not many people are using this module, so I am just going to update the Github repo with the new version. I used it a LOT yesterday and it seems to be working great with the new Table pagination feature. I have removed 2.7 and below from the compatibility list for this module. It is now only 3.x (or 2.8). If you need the old version that support 2.7 and below, you can grab it from this commit: https://github.com/adrianbj/TableCsvImportExport/tree/b83df4d13fd18fcb6c4bc8ac467e6ae35cba9711 Hope some of you out there will find the new version useful.
-
Sorry, I misunderstood - I actually don't remember the difference between the two in this regard, but glad you have what you need now!
-
Adding custom Listers is one of the Pro version's key features. In the normal version it is for Pages > Find and the Users page and not for your own custom configuration. Hope you enjoy the pro version!
-
Yeah @ryan needs to start pointing this module to the new repo: https://github.com/processwire/processwire
-
-
So you want the fields from the content tab to still be there, just not the tab "button" (for want of a better description)? That sounds more like a job for CustomAdminFiles or maybe a feature request for AOS? This module hides entire tabs, including their content. Am I on the right track now?
-
Hi Ivan - not sure I am understanding - do you want to hide all tabs, or do you have some custom fieldsettabs that would still be displayed? I could perhaps implement, but if it's a case of just not wanting a tab named "Content", don't forget that you can actually rename this. Does that help, or am I not understanding your scenario?
-
I would absolutely love this - thought about it a few times, but never got started on it. This might be too much / too hard, but I'd actually love if it was more than just date/time, but actually allowed us to use all MySQL operators in our selectors. But I haven't really thought through what would be involved in making this possible.
-
Hey @teppo - not ignoring your pings, just busy and not really sure why that notice is appearing either. I saw it a couple of times today, but was too rushed to investigate, and now it's not showing, but I will keep an eye out and when I see it when I have a spare moment I'll try to debug.
-
@mel47 - I am definitely curious about the interaction you seem to be getting with Tracy and url segments, Based on your edit it sounds like you finally understand how url segments work, which is great, but we do need to figure out all those /bookmarks/ you are getting. I have seen a single /bookmark/ before but it wasn't related to Tracy. Any chance I could take a look at the server that is doing this, with instructions on what page to be on and how/where you are making that bd() call? It's late here, so I won't be getting back to you till morning.
- 6 replies
-
- url
- urlsegment
-
(and 1 more)
Tagged with:
-
I like to think we are ahead of their pace Those guys don't have a console panel, or a persistent dumps recorder, live template tester, or any of the other cool goodies that we have I'll see what I can do - I agree it would be nicer to not have to write the array with the keys for those options.