Jump to content

Greg Lumley

Members
  • Posts

    76
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Greg Lumley

  1. Hi, I've read up quite a bit about connecting to Ajax but it's going over my head as to how to implement it properly. I can get it to work when I put the processing script in the root but that's obviously not the correct way to do it. The page in question is a simple contact form that calls a php script using axios framework to process and send the email. This is the basic js code I have where ajax_contact.php is the processor... (linked to a form within a template.) I have read about $config->ajax etc... but still don't get how I should be implementing the "processor php script" correctly. Not that it's needed but this is the form I'm working on: https://www.lumleystudios.com/#contact axios.post('ajax_contact.php', params) .then(function (response) { console.log(response); //document.getElementById('output').innerHTML = response.data; }) Pardon me if this sounds like a dim question, I have an odd way of not seeing it the way everyone else does at time.s Thank you! Greg
  2. I'm having a little bit of a frustrating experience. Is there a way to stop CK Editor stripping certain code. I've just re-written a blog post with an unordered list. Even though CK editor includes this in the interface it doesn't like it and strips it. But not always. It seems that as the list grows it 'kills' it... How can I avoid this. ? Thanks. G
  3. I was going through the Hanna Code "Readme" in Bitpoet's editorial blog based off kongondo's Blog module and this particular line caught my attention: $f = $modules->InputfieldCheckboxes; $f->name = 'vegetables'; // Set name to match attribute $f->id = 'vegetables'; // Set id to match attribute $f->label = 'Vegetables'; $f->description = 'Please select some vegetables.'; $f->notes = "If you don't eat your vegetables you can't have any pudding.";//<<<<<<<<<<<< $f->addOptions(['Carrot', 'Cabbage', 'Celery'], false); $form->add($f); Very funny... ?
  4. Hi Rick, I'd like it to be a front-end as in "user admin", so essentially a custom front end admin. If that makes sense. ?
  5. Please pardon me if this is a silly question. I was wondering if anyone has designed a subscriber based system or any system where a user would create content and have rights to edit only that content. Something such as a listing site, craigslist etc? In my case I'd like to build some CRM management into my existing website. I'm asking roughly what your approach would or might have been ? I need a push. Thank you.
  6. Hi, I'm getting apostrophe's being rendered as HTML in the Maestro Output. What is the best recommended way to fix this? <meta name="description" content="Greg&apos;s wedding photography is fun, creative and natural. Capturing moments when know he&apos;s there. He makes you feel comfortable and his enthusiasm is infectious."> Thank you.
  7. Thank you BitPoet! I hadn't thought of that. ?
  8. Okay, I'm still stuck on this... if the main.css is empty, where does the styling stored? In other words if I wanted to modify any styling where would I do it? Thank you. Greg.
  9. Aha! That makes total sense. Heck if I'd used my brain for a moment I probably could have realised that. Thank you Eydun. G
  10. Hi! In busy learning to know PW better I'm looking at existing code. I have Bitpoets Editorial Responsive Blog as example. While looking through the code I've just found this line in the blog-head.php <link rel="stylesheet" href="<?= $config->urls->templates ?>assets/css/main.css?ts=<?= time() ?>" /> I hope it's not a stupid question but I've never seen this before... main.css?ts=<?= time() ?> I notice the main template is empty but of course renders on the front end. Using a timestamp really has me totally confused. Can someone explain it to me please. Thank you! Greg
  11. Okay then I'm booting the module ?? no really, I am. And for the exact reason of learning ProcessWire. Thanks for the welcome! G
  12. Aha! I hadn't thought of the Roles part of it. That makes total sense. Thank you for replying.
  13. I realise this is actually a bit of a stupid post. I'm busy re-inventing the wheel here when Kongondo has created the ProcessBlog module with docs and pretty much all the questions answered. I guess I'm so used to being fed rubbish in the WordPress environment. ? I'd delete this if I could.
  14. Hi! I'm busy building a blog into my first test/learning/free/clients/project ? I've had a look at all the blog examples and there seem to be different ways of doing it. (the point of Processwire, I know) It seems this is generally how it's done: Master Blog Page - Blog Post Child Page - Blog Post Child Page - Blog Post Child Page What I'm particularly interested in is the Categories. What would you advise? Repeater Field? Tags? I think I've even seen Categories set up as Children of a master Category page too. The pages were hidden containing no What would you recommend? Thank you! Greg. Bare with me, I'm bashing my way through while I learn.
  15. It's like I walked into a hardware store and they said I can have every tool I'd ever need ?
  16. Thank you Robin for your incredible answer. You've virtually given me a tutorial. This thread is gold!
  17. Thank you everyone! All this info is awesome! This feels like the old days. Anyone remember 4guysFromRolla? 1999 ish... I learned so much from that forum, long before the days of Youtube, Apache and PHP were a nightmare to setup and CGI was king.
  18. I've only recently stumbled across Processwire. Thanks to ADHD and avoiding doing other work. I'm blown away at the power of Processwire. Ryan and all those who've built modules have done an incredible job of making a system that is fully customizable with incredible dev speed. Wordpress has so much bloat, it isn't very user friendly when all you want to do is quick a blog post or change. In fact unless you're a geek, It's actually quite daunting. Hell I'm still daunted by it all the time. I've never got my head around the interface layout and placement of menus and settings. On top of that, most plugins are trying to cater for anyone everyone and they have more junk to 'impress' than anything else. I love that I can just build my own functionality with PW easily or find a way to do it. What I'm particularly excited about is the end clients point of view. I could show a client in 5 minutes what they need to do to maintain their site. Changing look and theme as looks and trends move on would also be a cinch because no mark-up data is stored within the fields, unlike all the WP editor themes out there. Change templates, new site and look. All legacy data looks as good. So thank you to Ryan and the community for Processwire. I've only recently restarted developing after 15 years and frankly really didn't want to but PW has excited about web development again. I'm not one for blowing air up peoples arses but when something excites me, it excites me. ? Now I have to decide on whether I'm going to import my existing website's data or start an entirely new one ? G
  19. I am using CKEditor ? I must be honest I was more curious than anything. I realise it's not the right way to do it. I've come from Wordpress which I'm just getting tired of. That's what I really like about PW .. nice neat and clean input and output. Thank you for the suggestion I had a feeling I could output through the image field, I've seen tags but not sure how it's all put together... yet. I'm getting my head around PW at the moment. Thank you for your help.
  20. Hi Louise, thank you for the really fast response. ? I should have been clearer, I'm able to upload multiple images without a problem. I can't place multiple images at once though. In other words, if I have 20 images already uploaded, can I grab all of them and drop them. This would be important in a gallery situation. One wouldn't want to individually place each image. Especially if there are quite a few. Does that make more sense? ?
  21. Hi! I've just discovered Processwire and I'm absolutely loving how clean it is. Especially with the full control over what it outputs. Excuse me if this is a really stupid question. What happens if a user wants to insert multiple images into the blog field? In other words Shift+Click all the images attached to a specific page in and insert. It seems I can insert one at a time but not multiple. Based on the above, I want to rebuild my website. I'm a photographer (ex php dev 2004) and plan also to target websites at other photographers. So inserting multiple images into blog posts is a key part. I'd like to output that to something like UIkit or some kind of Masonry Gallery script. Any thoughts would be fantastic please. Thank you. Greg. I'm an ex PHP developer now photographer, now thanks to Corona and not photo work, a rusty PHP developer ?
×
×
  • Create New...