Jump to content

Jim Bailie

Members
  • Posts

    69
  • Joined

  • Last visited

Everything posted by Jim Bailie

  1. @Robin S This is really neat the more I look at it. I wonder if I can drop the upload name into a template field so the admins have a visual frame of reference on the admin screen. Will try this out.
  2. We are transferring via API and it works fine. It's just that when event_concept_test$$$.pdf is loaded via api or manually, it DOES NOT retain the $'s And your tutorial is wonderful, but I really worry about confusion among the admins. If I understand correctly they won't see the non-sanitized file name and could lose track of which file is which if they check their work in the front-end.
  3. Hello, So we're prepping to migrate a whole lot of pdf files into a new PW site and many of these files have a '$' in them indicating that they contain pricing information. Well pdf files with a '$' don't migrate so well into PW. In fact, they don't migrate at all. And I get it too. However, this is a very large company and these files are a source of truth throughout other systems as well. So, incredibly, this may actually be a show stopper. Any ideas on how this might be turned off in the core? I've tried everything else...I think.
  4. @bernhard Ugh! This seems pretty straightforward as well. I'll be digging back into this this afternoon so, thank you. In a nutshell, the user is searching for a certain type of event (Breakfast, Dinner, Dinner and Show, etc). The result shows the desired events, no problem. Well these events can be held at many different venues of course. And these venues are scattered and grouped at many different locations. So I have to return a result that loops through these event types, and shows what venue they're at and the location that the venue resides. Simple right? But when I loop through these desired event types I need to show some images and data from the parent venues and grand-parent venue locations. So basically, what's the Processwire way of doing this? I think I'm getting close though... And thanks for the heads-up on Rock Finder! That may come in very useful with logging.
  5. After an hour or so, I'm still not sure how to start in on this. How to loop through selected pages displaying some of their parent and grandparent data as well. In this case we have the following page structure along with the search results yielding all function types "Dinner Plated" along with all the function types of "Venue River" My concern is that looping through the result set and getting the parent/grandparent info in each iteration would get unwieldy at some point. I'm grateful if anyone can talk me onto the right path. EDIT: Ok, I found this which may be my starting point: https://processwire.com/api/ref/page/parents/ Venue Location Blue Venue Rock Function Type - Breakfast Function Type - Lunch Function Type - Dinner Plated Function Type - Dinner Buffet Venue River Function Type - Breakfast Function Type - Lunch Function Type - Dinner Plated Function Type - Dinner Buffet Venue Location Red Venue South Function Type - Breakfast Function Type - Lunch Function Type - Dinner Plated Function Type - Dinner Buffet Venue North Function Type - Breakfast Function Type - Lunch Function Type - Dinner Plated Function Type - Dinner Buffet Venue Location Green Venue Pool Function Type - Breakfast Function Type - Lunch Function Type - Dinner Plated Function Type - Dinner Buffet Venue Restautant Function Type - Breakfast Function Type - Lunch Function Type - Dinner Plated Function Type - Dinner Buffet Display Search Results: Venue Location Blue Venue River Function Type - Breakfast Function Type - Lunch Function Type - Dinner Plated Function Type - Dinner Buffet Venue Location Red Venue South Function Type - Dinner Plated Venue North Function Type - Dinner Plated Venue Location Green Venue Pool Function Type - Dinner Plated Venue Restautant Function Type - Dinner Plated
  6. @ryan Perfect. Very helpful with both PW and PHP fundamentals. Thank you~
  7. Hello - So I have this object that needs to run on every page load or ajax call. What's the PW way of making this object available? I've pretty much landed on either putting it into a module OR adding it to the wire function. I will say, I'm a little rusty on my OO PHP skills, so if anyone could talk me through either scenario or can offer a past post/example, I'd be grateful.
  8. Obviously this can be done with PW, but it's hard to even know how to re-invent this wheel without spending a day or two interviewing your client and sketching out a stack of wire-frames. Probably not what you want to hear, but I'll just throw this one out there: We've *HIGHLY* customized this gem for 3 mid-sized B2B clients needing pretty much the general functionality you've mentioned. It's based on CodeIgnitor (sp?) and is pretty simple to trick out. https://codecanyon.net/item/perfex-powerful-open-source-crm/14013737
  9. Interesting topic. I was in a very similar situation watching MySQL's performance degrade on a well established LEMP app located on an Ubuntu 14.04 Droplet. On that server, I installed an instance of Percona's MySQL (maybe v5.7*) and bang! Everything was fine and remains that way 3 years later. Total mystery...
  10. I would think just a correct nginx config is all you need to worry about. Here's where I started from: https://gist.github.com/LostKobrakai/b895e2e0e8a2c14b4da88cc7e16cf954
  11. Thank you! That's ok, no rush! This is a slow moving rebuild of an ancient application. We have to be careful because once images are programmatically migrated by request to the old app, the links can never change from that point. And we have to make sure it's somewhat bullet-proof because of the non-technical skill levels of the admins. And MM would be great for their workflow. However, as far as pdf files go, which I'd like to have in place soon, I did find the module "Files Rename Replace" which gets me to a place where we can start testing/demo'ing
  12. @kongondo Pre-sale question: Does MM have a setting for overwriting existing files/images when updating? It seems like it would. As an example let's say I have tiger.jpg and want to update the image with lion.jpg...but keep the name tiger.jpg while displaying the new lion.jpg...does that make sense 🤨
  13. Ugh, I knew it was this straight forward. Thank you both! @Gideon So @gebeer
  14. I'm sure this has been explained numerous times, but I'm struggling trying to find the best way to go about this scenario: So the user creates a new page and then is able to select from a drop-down, a number of pieces of existing content items that will render in the template in the order selected. I'm assuming these pieces of content will reside in their own individual, grouped pages without an associated template. In the main template I would then loop through these selected pages and output as desired.
  15. @Guy Incognito Your above explanation on url segments is very interesting. Can you expand any further on how you set this up? I've read through https://processwire.com/docs/front-end/how-to-use-url-segments/ , but I'm still not fully absorbing what I think is your approach. I'm sure the parent could benefit from this approach as well.
  16. I'm sorry I don't have any silver bullets, but I've been through this on a development machine and from what I remember, it came down to permissions/config files along with netplan and how I accessed the apps via nginx.conf (i.e server_name). For development, I've always used IP aliases in /etc/network/interfaces a'la ifupdown and set my nginx server blocks to listen to such IP addresses. Netplan doesn't allow this. It says it does, but I don't feel like writing a PhD thesis to get it to work, so I removed netplan and replaced it with ifupdown. I'm not telling you to do this! I did it because I understood the problem and just wanted to use the network stack like I always have.
  17. Do all of your user/groups/permissions line up throughout your config files (nginx/php/php-fpm)? Are these all stock apt-get installs? And the new Debian based distos are using that goofy netplan s%#t. Is that working as advertised?
  18. I had a similar situation a while back, but this thread helped...can't remember any details except that there was a permissions issue in the app's directory structure
  19. Yeah, coming from several applications written from scratch, with codeigniter, and to a lesser extent, wordpress, workflow with Processwire has been tough for me personally, but I am adapting. I've sort of settled into a pattern where after having deployed the initial production application, I try to do as much non-destructive work as possible on this instance. If something may be destructive, then I'll clone the codebase and hit the same database and work on this. If and when everything looks good, I'll just point the DNS to this instance. You can read up on multi-instancing. The reason for the above approach is because with the app I'm working on, the DB is too big to be slinging back and forth to a development machine. Having said all this, while I'm working on production and staging instances, I've also got a half dozen R&D instances on my dev machine than are pretty darn close in structure to production. This all probably sounds nebulous and I hope it helps. And I would certainly keep search-engine'ing things like "processwire development staging production"
  20. Yeah, I am eager to use ProCache. After having built some fairly complex caching functionality with Nginx/Openresty/Lua for a high traffic, public facing site, it would be nice just to let the framework take care of most of the heavy lifting. Most of my work now is for internal CRUD and content management, but as soon as we get an opportunity to build something public facing with PW, we'll whip out the credit card ?
  21. Hello - I'm going to buy profields later today or tomorrow, but does anyone know if it ships with a site sample are other examples? I've searched and it seems like usage examples are pretty few and far between. Thanks!
  22. @horst Yeah, I just went and reread the ProFields page which I should have done earlier. I'll probably need to resurrect this thread later, but I think I have enough of plan now to start experimenting. Thanks again for the reinforcement!
  23. @horst Url segments look like they're pretty easy to manage and a date and date-created field will serve as an index so to speak. @monchu Yes! I think a single, uniform, parse-able url segment is the best approach. I know the client wants the urls to look like what's in the initial post, but that seems hokey to me. Now here's a follow-up question: 50+ document templates with 5-40 fields each is going to add up to A LOT of fields...even if a good handful of them will be shared. Does ProFields offer a way to "consolidate" these fields without adding too many tables to the DB? It seems like it would...
  24. Hello All, I would like to accomplish this the PW way, but again, I'm struggling conceptually and don't want to burn days experimenting. So now the people signing the checks want users to be able generate dynamic documents. There are 50-70 documents to chose from and they all will have between 5 and 40 fields...and they need to create multiple versions of each document...repeatedly. /john/2019/6/28/tpr-report/v1/ /john/2019/6/28/tpr-report/v2/ /john/2019/6/28/tpr-report/final/ /john/2019/6/28/stfu-report/v1/ /john/2019/6/30/stfu-report/v2/ /john/2019/6/30/stfu-report/final/ /mary/2019/6/29/wth-summation/final/ /mary/2019/6/29/tpr-report/v1/ What I do know is that I will need ProFields and will be purchasing that. I also know that the reports will need to be their own templates...but the dates and the versioning are the problem for me. Thank you in advance for any guidance! P.S. Would one of the blogging modules be a good fit?
×
×
  • Create New...