Jump to content

kongondo

PW-Moderators
  • Posts

    7,479
  • Joined

  • Last visited

  • Days Won

    146

Everything posted by kongondo

  1. News Update - 3 May 2019 - Part One The little speckled fella has been very busy on the trail. Despite being the smallest of its kind, she has lofty dreams. We've been working on the API and the Products GUI. In the next post, I'll tell you more about the API. Products Features and GUI Though there are a few issues still pending (aren't there always? sigh), I am relatively pleased with the results. Of course, during beta testing we'll received and incorporate feedback as best as we can. Only UI-Kit theme will be officially supported. Multilingual fields if site is multilingual Ajax powered inputs for fast and convenient editing Four types of products Physical product requiring shipping Physical product not requiring shipping (for collection) Digital product Service/Event (etc) products - e.g. Swimming lessons, Consultancy services, Hotel booking, etc Product Classification (ajax powered) by: Type: e.g. Belt, trousers, etc Brand: Puma, Sanyo, whatever (editors can type in or import brand names + planning to support logos) Categories (aka Collections): Multiple categories, e.g. Men, Girls, Hospitality Tags: Multiple tags can be entered, e.g. sale, amazing, etc Product Variants (consists of an Option (e.g. Colour) and an Option Value (e.g. Red) Add zero or n variants as you wish Live preview as you build variants Each created product variant can be enabled/disabled. Devs can then decide to either show that variant as unavailable or not show them at all. That's up to you :-). Apart from classifications, shipping class, inventory policy, weight and dimensions units, title and description (and this latter one may change), almost all product properties will vary by variant if variants are used Product properties include: Images Colour (more on this below) Downloads (centralised and reusable) Price and Compare Price (aka former price) Inventory policy (whether to track or not) Charge taxes SKU (stock keeping unit) Inventory (quantity) Allow back orders (aka overselling) - @note: this can be set per variant. This is useful if one variant can be restocked faster than others Weight Length Width Height Weight Unit (mg, g, kg, oz, lb, t) Dimensions Unit (mm, cm, m, in, ft ) Shipping Class - can be used for product-based shipping if needed (e.g. bulky goods, light, fragile, small items, perishable, etc) Images (more on this below) Downloads (more on this below) Images Multiple images can be added to both a product and its variants (in case its has some). Images add to the product itself can be used with all variants Images added to a variant are tracked/tagged as belonging to only that variant In some cases, it may not make much sense to add different images for similar variants. For instance, a small red hat and a large red hat could probably share the same images. Although we do not currently support specifying an already uploaded image as belonging to a group of variants, this may change in the future Colour Similar to images, can be set at both product and its variants level Colour saved in RGBA format Downloads Also similar to images, can be populated for both both product and/or its variants Multiple files can be added to a product A file designated for 'whole' product will be available to download irrespective which variant of the product was purchased Conversely, a file or files saved for a variant will only be available to the buyer if they buy that variant of the product The above is useful if you want buyers to be able to download different files of the same product. For instance, recently someone needed to sell two versions of a font as part of one product. This is a solution for such cases. TODO List Lots! e.g. default settings for some properties, e.g. weight unit, shop currency, etc. For the frontend, we are creating a rich language-aware API that you can use to build your shop however you want. There will be no rendering of markup (but see first post in this thread about a separate fully functional frontend shop). In the next post, we talk a bit about the API. Before that, here are some screenshots and a video demo (if you can spare some 20 minutes away from watching, er..., cat videos? ?) Screenshots Video Demo Thanks ?
  2. How are you setting up your featured image? Blog will first attempt to check for a featured image by getting the first image with the tag 'featured' or whatever tag you passed to it in the option 'post_image_tag'. If no image is found and the rendered Blog Post is a 'small one', i.e. summarised, it will try to get the first embedded image in blog_body if blog_body is not blank. Assuming you are using the former approach (meaning you tag your featured images), you can just use ProcessWire API directly to get the featured image using getTag(). Here are some examples: # retrieve first image with the tag 'featured' or user-specified 'tag' # // assuming you are on a blog-post page $image = $page->blog_images->getTag('featured'); $image = $page->blog_images->getTag($options['post_image_tag']); $image = $page->blog_images->getTag('some-tag'); // getting the blog page(s) from another page $p = $pages->get(1234); $image = $p->blog_images->getTag('my-tag'); // we got an image if($image) { // go wild }
  3. Maybe the issue needs to be sorted from intelephense side? If it is provided file associations, it should, theoretically, work. ?
  4. Maybe if you could explain your use case a bit more. What do you do with the uploaded file? If you are adding it to a ProcessWire Page, ProcessWire will not allow you to have your 'human-friendly' file name ?. It will be sanitised. I am guessing that is why you wanted to save the original file name in the description? Secondly, who is uploading the files? The general public? Registered users? Site editors?
  5. I don't quite understand. Do you mean you want to save the non-sanitised file name as a description rather than adding a description to the file later yourself?
  6. Great. Give me a few days please to update the dev branch to include a few changes first, including the recent suggestions by @adrian. This way, we can work on one clean (dev) base. I'll also namespace it. Moving forward, we only support PW 3. I missed the memo it seems. Which ones are these?
  7. I wouldn't call it a bug. That's the sanitizer at work. For custom things like that, I suggest you use getMenuItems() method to create your menus. See the examples in that link.
  8. Hi all, Sorry, I'm late to the party! Interesting conversation here. I am not a fan of duplicating modules, if what they offer are very similar. I would prefer to try a PR in the first instance :-). Interestingly, the other day when @adrian was reporting some issues with the module and suggesting changes, I had a rethink about your suggestions and decided it was worthwhile going with your suggestions, especially the auto include. I didn't mention it since I didn't have the time then to work on the module. So, my take is, we can improve the existing module, with new features and/or hooks. All PRs will be duly credited. I suggest we try that first. That's my opinion :-).
  9. Sorry I wasn't clear. I did not wish to dual boot ?.
  10. Thanks for this Adrian. I have used the extension before but to run Python code. Thanks for the example code!
  11. I like the productivity of this lazy man who is in a hurry ?! You are on fire mate! ?.
  12. I followed the instructions to the letter, except for using my home directory, I used a different drive. At first I was getting 403s (maybe because disk had to be mounted first?). Now am getting this site cannot be reached.
  13. Yes, I do, thanks! That would be awesome! If I can skip setting these up manually, even better :-).
  14. So I tried Midori and it rendered ProcessWire website all funny. The Firefox that shipped with BunsenLabs (BL) seemed to be fast enough so I thought, what the heck, maybe Chrome will run just fine as well? We'll, what do you know! Of course it's eating up RAM like it's Google's Birthday but I reckon @OrganizedFellow was right about Solus being 'slow' on my machine due to the visuals. Since BunsenLab has a very light footprint, Chrome still has enough to chew on. I then tried Sublime Text. I've always loved Sublime but after using VSC, going back was difficult. I decided to install VSC to see if it would run OK in BL. Surprise! So far, it seems to run just fine. I haven't opened multiple files (and I don't need to in this machine). I'm just happy I am able to use the tools I am used to without hiccups. One other thing I liked about BL (yes, we are on first names now ;-)) is that it has a post-install script that runs and asks you if you want to install useful tools like a LAMP stack, etc. I let it install the LAMP stack and here I am, up and running. Apache2, PHP 7 with many useful extensions, phpMyAdmin, etc. ps: @OrganizedFellow, was that you who made the request to BL to port the CB welcome script to BL? :-). If it was, thanks!
  15. I tried it when the machine still had Windows 10 and it didn't fare much better than chrome (memory) Worked! Thanks. I've had a quick look. Will investigate more, thanks.
  16. Thanks all. I installed lubuntu and didn't like it at all. My mouse didn't work, which actually turned out its batteries had just died :-)! With hindsight, it was a good thing since it lead me to Debian Crunchband++ and eventually BunsenLabs which I am liking...(I think). Thanks! Went with a derivative, BunsenLabs Thanks. I have now installed Sublime Text. I don't know where to find out though ;-). It's not showing up in the menus. run programme cannot find it as well. Any thing else I should do? Google is taking me down all sorts of rabbit holes...
  17. Good thing with Solus is that I was able to connect to WiFi and was able to use touch right of the bat. Hard to tell maybe, but do you know if Debian would be that friendly?
  18. https://jspreadsheets.com/ lead me to this: jQuery.sheet/WickedGrid > https://spreadsheets.github.io/WickedGrid/ but I am not sure it is still in development...
  19. HI all, I am looking for Browser suggestions for a low end touch device. I occasionally use the machine for development but running VS code and Chrome on it eats up all the memory. It is very slow. I uninstalled the Windows 10 it shipped with, replacing it with Linux Solus. That too is slow on this machine. Google tells me that in this case, I am probably better off with Lubuntu or Puppy Linux. I prefer the former. I have a Sublime Text license and wouldn't mind using it on this machine. All that remains is a browser. The most important thing is speed and memory footprint. If it is developer-centric, that would be a great bonus. Does anyone have a suggestion for me? So far, I've narrowed the list down to these: K-Meleon (unsure if there is a Linux version)? Pale Moon Midori Maxthon The machine specs are: Intel N3350, 4GB DDRIII RAM, 32GB (eMMC) Thanks!
  20. :-)....and your 3D printing?
  21. Hi, Have a look at your menus settings, specifically the 'Use enable/disable menu items feature'. This requires the permission 'menu-builder-disable-items'. When enabled, you will see under each menu item's settings panel, a checkbox 'Disabled'. Tick that for the menu items you wish to disable and voila; no need to delete them. However, if you do not wish the user to be going to these settings, enabling and disabling menu items, you can instead use getMenuItems() and filter out unpublished and hidden pages. If you can open an issue in the project repo, I can consider to add these as options i.e. 'skip_unpublished' and 'skip_hidden'. I can't remember of the top of my head how ProcessWire page->viewable() relates to hidden and unpublished pages. We already check for viewable() in menu builder but I'd have to investigate this further.
  22. It worked on my Win 7. I don't have Hyper-V. It worked fine with VirtualBox running off (the legacy) Docker Toolbox. You can get it on here on GitHub. I hit the request forged issue and gave up on Dbox. Otherwise, it installed fine. The forged issue arose because the token in the hidden input in the login screen somehow gets a different value to the one server-side.
×
×
  • Create New...