Jump to content

louisstephens

Members
  • Content Count

    474
  • Joined

  • Last visited

Everything posted by louisstephens

  1. 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.
  2. 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.
  3. 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
  4. 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!
  5. 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).
  6. 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.
  7. 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,
  8. 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
  9. Ah, I did not have extra allowed content enabled, but it was a bit confusing for me as I had to add it to the toolbar and the icon appeared to be exactly like the current "url" icon.
  10. Correct me if I am wrong, but I don't think there is an "easy" way to change the icon itself, unless you went with custom js to find the icon and switch out the class names (font awesome) to something you desired. The only other option I see is to delve into custom theme building. So in your admin.php file (site/templates), add the following lines above the required controller: $modules->get('JqueryCore'); $config->scripts->add($config->urls->templates . "scripts/your-js-file.js"); Next, in your custom javascript file (which I would just put in your scripts folder), you could do something like: $(document).ready(function () { $('.uk-breadcrumb > li > a.pw-panel > i').removeClass('fa-tree').addClass('fa-telegram') }); In the above code, it will change it to the telegram icon. Simply change out the icon to any fontawesome 4 (I believe) icon you wish. The only issue with this is you will briefly see the original tree icon until the document is ready. I could not get it working without the document.ready function. Perhaps someone knows a way around this.
  11. The easiest way to change the logo is by going to (once logged in) Modules -> Core -> AdminThemeUiKit . You will see a section labeled Masthead + navigation. You should then be able to upload a new logo for the backend through the field provided. As far as changing colors of the header, the easiest approach might be to follow what Jonathan Lahijani said here:
  12. From the first picture you posted, if you click on "Bookmarks", you can select Pages from the tree to be the parent(s). Then, from there, you can go to "Add New >" and select the parent you want to add a new page to. From my understanding, this is a great shortcut feature if you are constantly going back and forth to the tree (though please correct me if I am wrong)
  13. I have not truly vetted the plugin, but there is this official plugin via CKEditor. It let me select from various protocols and has an "other" selection. I was able to successfully use the file:// protocol inside the href without it getting stripped.
  14. I do the same as wbmnfktr. I also include a github action that auto ftp/pushes the updated files to a directory on my server that can be found here: https://github.com/SamKirkland/FTP-Deploy-Action
  15. Not sure if this will suit your needs, but in javascript (jquery) you could do: $('h2').each(function() { var $element = $(this); $element.html($element.html().replace(/^(\w+)/, '<span>$1</span>')); });
  16. I have not done it yet myself, but the following should point you in the right direction:
  17. There is this method $input->PageNum https://cheatsheet.processwire.com/input/properties-and-methods/input-pagenum/ https://processwire.com/api/ref/wire-input/page-num/
  18. Are you receiving any errors at mydomain.com/pwone etc etc ? What issues are you exactly running into? A bit more information would be helpful.
  19. From what I have researched (not an expert by any means), Outlook itself does not limit the # of recipients itself. However, you could do a mailmerge with outlook which might work for you: https://www.howto-outlook.com/howto/mailmerge.htm
  20. In you home template, you could do something like: <?php $newsArticles = $pages->find('template=your_news_templates'); foreach ($newsArticles as $newsArticle) { echo "<a href=\"" . $newsArticle->url . "\">" . $newsArticle->title . "</a>"; } ?> This would output each article's title (as well as a url to the article). Obviously you can change the markup to whatever you would need.
  21. Just curious, could you post your code where you are redirecting based on the session? It might help with answers to see the whole picture.
  22. I was really unsure of how to actually title this post, so I do apologize (if someone has a better idea, I will gladly edit it). I am using the profields: pagetable field to allow people to create their own "content" (copy, image, button, etc etc) and rearrange it. I also included a field called "column_size" using the RangeSlider set to (1-12). I guess I'll clarify a bit more on this. I am using flexbox where the "row" is <section></section> and the columns are <div class="column"></div> have given the "columns" flex: 1 1 0; so no matter how many columns you have, the columns will automatically adjust for new content. Where my confusion is coming in: If a user has set up 3 copy items (with 12, 5, 7 respectfully for the column_size), how do I actually output this in my template? I was going to use a switch statement to handle the various items which I thought made it quite easy, but with closing sections and columns I have confused myself as I assume I need an if statement to check if the column size is > 12, or = 12 to determine the actual closing/opening of sections. I apologize if I have not made this very clear. I am a bit unsure how to word this let alone to go about this. Im very appreciative of for any insight into this.
  23. Thanks zeka, I appreciate the help! I tried your suggestion really quickly this morning and the results are still pretty similar to what I was doing previously: [{"id":1644,"title":"ABC"},{"id":1648,"title":"DEF"},{"id":1652,"title":"GHI"},{"id":1686,"title":"JKL"}] However, I did end up "figuring it out" just now by changing my json_encode to echo json_encode(array("clients" => $clientArray)); (Changed $clients_array to $clientsArray to avoid confusion with my field naming scheme.)
  24. A question regarding the formatting here. I know in the example you are assigning the id's from what is typed in the foreach, however, how would you go about doing this programmatically as I am trying to get all the fields from each page? Sorry for my confusion here, just a lot to wrap my head around.
  25. I believe you are right. I was looking at a file and completely missed that the output was supposed to look like the following: { "clients": [ { "id":1644, "code":"abc", "name":"Test Name", "associated_users":null, "url":"\/pw\/clients\/abc\/" }, { "id": 1645, "code": "xyz", "name": "Test Name", "associated_users": null, "url": "\/pw\/clients\/xyz\/" }, ] }
×
×
  • Create New...