Jump to content

louisstephens

Members
  • Posts

    516
  • Joined

  • Last visited

Everything posted by louisstephens

  1. I believe the option field is set up as the following: id=name|Title. You are trying to access a Title that doesnt exist, so you would need to add to your existing set up like: 1=north|North 2=west|West 3=south|South 4=east|East I was mistaken after rereading the docs (sorry about that). It is set up by id=title by default, but you can add a separate title to the value (my apologies).
  2. Just curious, what do you have that is creating folders, image/file fields?
  3. So I ran into a strange error this morning when trying to publish a page. I went to publish a new page under "clients", but I get an error that says "Cannot be published until errors are corrected". I thought perhaps I had missed a required field so I checked, but none of the fields are marked as required. I then checked to see if I could just add a basic page (default basic-page.php template) under the homepage, but I get the exact same error when trying to publish. When looking at the template, I don't see any error messages being displayed above any fields. The odd thing I found though was if I got to "settings" and uncheck "unpublished", I can then publish the page without errors. I did upgrade earlier today to the newest version to hopefully fix an issue I had yesterday (which it did). Has anyone run into this error before? **EDIT** Well, after a lot of staring and pulling my hair out, I found the issues. I had installed multi-language support sometime ago (and due to the project changing, had to remove it). Apparently in my haste, I did not remove all the dependencies so it was still trying to check for the multi-language title (I am guessing) even though it actually wasnt on the page. I went through the database and removed it and can now save/publish pages without issues.
  4. So I went to revisit a project that I put on hold and was met with the following error when trying to trash a page "Operator '&' is not supported for 'status' in ../wire/core/PageFinder.php: 2211 else if(!$database->isOperator($operator)) { throw new PageFinderSyntaxException("Operator '$operator' is not supported for '$field'."); } I have searched through my templates just to make sure I didn't do anything screwy, but I have no clue why this error is being generated. I can individually delete an item from the trash, but I cant empty the entire trash.
  5. Have you tried adding in extra allowed content under the "input" tab for your field. The current format is: elements [attributes]{styles}(classes)
  6. I haven't used the multi-site setup before, but I believe these are your only 2 options. From what I understand, you can either have one option with completely different users (or you could probably create the same superuser for each install manually), or a site that shares all users. However, some please correct me if I have misunderstood as I am new to it as well.
  7. Have you looked into using front-end editing? It does list several options on how to implement this via the module.
  8. In your template, you should be able to do echo $page->your_file_field->name; This is a good cheatsheet regarding the file field as well: https://cheatsheet.processwire.com/files/file-properties/ I apologize, I kinda missed that you were not going through a file field but were uploading to a directory. This might be a bit better approach for you then:
  9. I havent really dealt with webp yet, but have you looked at the TextformatterWebpImages text formatter that Ryan created? Apparently it converts jpg/png image tags to use WEBP.
  10. You could also look into implementing Dropzone.js on the frontend and pass the files via ajax to a function that would loop through the files and create pages for them. It has been awhile since I last did it (over a year) and I would need to hunt down the code, but it wasn't too much of a pain to get sorted. However, Media Manager is a solid option in the backend.
  11. If you are using the Select Options fieldtype, I believe all you have to do is: <?php echo $page->your_field->title; ?> // will get "Mr/Ms"
  12. Just curious, where are you using https vs http? I have had issues with the CORS policy when pulling in https to http (or vice versa).
  13. I have not really had to make a site from the ground up in quite a bit as I have been mainly focused on internal apps using processwire. However, I have now been tasked with creating a site and I was quite excited. I started down the path of using bulma as it seemed like a good fit. I got the whole site coded statically and was not moving on to porting it over to processwire. I pretty much have the the whole site figured out save for tackling the navbar. My current navbar is set up as so: <section id="nav"> <nav class="navbar" role="navigation" aria-label="main navigation"> <div class="navbar-brand"> <a class="navbar-item is-size-3 has-text-primary" href="#">Logo goes here</a> <a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample"> <span aria-hidden="true"></span> <span aria-hidden="true"></span> <span aria-hidden="true"></span> </a> </div> <div id="navbarBasicExample" class="navbar-menu"> <div class="navbar-end"> <a class="navbar-item">Home</a> <div class="navbar-item has-dropdown is-hoverable"> <a class="navbar-link">Services</a> <div class="navbar-dropdown"> <a class="navbar-item">Subpage</a> <a class="navbar-item">Subpage</a> <a class="navbar-item">Subpage</a> <a class="navbar-item">Subpage</a> </div> </div> <a class="navbar-item">Gallery</a> <a class="navbar-item">Contact Us</a> </div> </div> </nav> </section> I guess my question is how would you go about setting this up in processwire? All pages will obviously be subpages of Home with the following structure Home --Services ----Subpage ----Subpage ----Subpage ----Subpage --Gallery --Contact Us
  14. Not to keep a thread going, but will this eventually become available in the modules directory? I really like the approach you have taken!
  15. Not sure about an app that behaves like laragon for the ipad. However, I do know there are many web based IDEs like Cloud9 (only tested it a few times). To connect to to your dev servers, you could follow this post.
  16. Hey Greg, First of all, welcome to the forums! Quick question, is your images field set to Automatic (single item or null when max...) ? I just tested with an image field in my template and after clicking "choose file", shift clicking allows me to select/upload multiple files.
  17. I assume based on your code above, that templateName is being used by all Page_Name_Examples?
  18. Sorry that this isn't really an answer to your question, but I have been contemplating this idea a lot over the past few weeks. I have played around with using a page reference field that chose from a page labeled "Forms" so the user could simply select what form elements they wanted to use. However, this got a bit messy as they constantly wanted something different and I would have to make special inputs/labels just for them. It really just became a pain in the backside for myself to have to constantly update the selections. I guess my big hurdle is the form processing part, as each form could be different, I don't really know how to dynamically choose the form elements to send off/process. I apologize if I appear to be piggybacking off of your question, but I think the 2 go hand in hand.
  19. I do see that processwire does have vex . There is a a section on "including vex in your project" that might be helpful to you. However, to my knowledge there are no true "built-in" frontend modules for modals. The great thing (in a lot of people's eyes) is that processwire allows you to use whatever you want in the frontend (be it frameworks, jquery, etc etc). Are you currently using any css framework on you project like uikit/bootstrap/foundation? A lot of these have built in modals that you you include in your template.
  20. As far as a modal plugin, I would check out izimodal or jquery modal (there are hundreds out there and tbh I am forgetting one I believe a member here created that I love ? ). You could create a page named notifications with your image field and then pull that information directly into your homepage (in whatever markup you need for the modal). ** Noel Boss made featherlight.js
  21. Just wanted to put it on everyone's radar that VueMastery is having a free weekend starting today at (12 ET). All videos in every course are free to watch until Sunday at midnight. Cheers!
  22. Have you tried looking into Repeaters/Repeater Matrixes? A user can add many repeater items, but the fields defined within are set by the admin (or an account with the correct permissions).
  23. Hey Kei, Have you tried the skyscrapers profile by @dadish that can be found here. With a clean install of processwire, you can drop the profile in and proceed like you are setting up a new instance with the profile selected.
  24. Thanks, I appreciate the help! I was thinking it was with ProcessWire and not with the module (thought it was best to keep this under the thread in one place). I wont pretend like I understand my "fix", but I did get it working by using "img" => $offer->test_image->first->httpUrl,
  25. I have been using this module for a bit now and I absolutely love it. However, I have hit a brick wall as of late when it comes to getting the path to an image. In my function getClient(), I have the following: array_push($response->offer, [ "client" => $offer->parent->parent->name, "id" => $offer->id, "name" => $offer->name, "title" => $offer->title, "img" => $offer->test_image->httpUrl, "body" => $offer->body, ]); The image field is currently set to single value, but when I go to my endpoint, "img" is always null. When I change httpUrl to url, it only produces "img":"\/site\/assets\/files\/1019\/" For the life of me I can not find what I am doing wrong. I checked the folder 1019 under files and my image is currently there. Any help on the matter would be appreciated
×
×
  • Create New...