Jump to content

elabx

Members
  • Content Count

    481
  • Joined

  • Last visited

  • Days Won

    3

elabx last won the day on December 29 2015

elabx had the most liked content!

Community Reputation

521 Excellent

About elabx

  • Rank
    Sr. Member
  • Birthday 04/12/1988

Profile Information

  • Gender
    Male
  • Location
    Mexico City

Recent Profile Visitors

6,137 profile views
  1. What if you just output placeholder text? (I'd guess you'd have to use <edit> tags) $page->text ? $page->text : "Input text here.."
  2. I can't imagine the amount of work it would require coding a new admin. I'm guessing it would need a rewrite of all "major" Process modules right?
  3. Does anyone have the perception the old admin is "snappier"? I'm using both and I get that feeling, could this be the reason?
  4. I have also been scratching my head with this a couple times!
  5. This crossed my mind too!
  6. On Istanbul template, assuming location is the template of Turkey: $relatedSublocationsMinusCurrent = $pages->get("template=location,sublocations=$page->id")->sublocations->remove($page); Not tested but should work!
  7. Thanks for the reply @Mike Rockett! In a completely different scneario, I am trying this as source: [propiedades]/detalle_propiedad/1363/some-segment[/][?b=1] (As destination it's a plain url) So that it would match: detalle_propiedad/1363/casa-en-preventa-colonia-maya?b=1 detalle_propiedad/1363/casa-en-preventa-colonia-maya/?b=1 propiedades/detalle_propiedad/1363/casa-en-preventa-colonia-maya/?b=1 Does anyone know if I am correct in this assumption? EDIT: Solved it with two jumplinks like this: {segments}/{num:num}/{segment}/?b=1 {segments}/{num:num}/{segment}?b=1 I also think there might be something the community could do to help? Funding? "Crowdfunding"? Though maybe Mike's slammed with client work or sth and that's it haha
  8. Well who knows! The devil is in the detail. And I do agree the javascript events would be a powerful enough reason. I also remember reading that conversation a while ago and do agree on your points. Particularly the "auto include" of files, pretty much like the modules.
  9. So do you plan on using the frontend Shopify javascript libraries to display the products/enable cart? Or how do you plan to integrate that? I know I'm a bit out off topic haha but maybe it's something we can help you with, too.
  10. Heres a VERY rough script and it's very messy. (ran it from command line also) https://gist.github.com/elabx/ba4879fe36ca9430f8d614aaee52fc5a Specifically, check the functions addProduct() and updateProductVariant(), in those two functions is where I call the Shopify client, and all the setup starts here on line 175. This script is meant to grab data from a CSV, by if you look at addProduct you can basically tell how to add a product through the API so instead passing an array to that function you could pass a Page object for example and fill in the gaps. On shopify you would just need to setup a Private application, to get the required key/secret. BEWARE to run the script as is, because it deletes all products on the Shopify store every time the script runs.
  11. I have done this (product migration from A to Shopify) and it is fairly simple using Shopify's API and a Shopify private app. I have used this library . Probably what is more time consuming is understanding Shopify's API endpoints. (e.g. took me some time to understand all shopify product objects actually have at least one variant object, where the actual price is kept!) My doubt is, do you plan to completely deprecate the PW website? Or do you plan to embed Shopify somehow into the existing site?
  12. I'm curious, how would your module be different from FieldtypeRuntimeMarkup?
  13. Didn't work unfortunately
  14. Hi everyone! Does anyone know if it's possible to map a source url taking into account optional string at the end? For example: Source -> Destination example.com/es/this-is-a-nice-url -> example.com/es/this-is-a-nice-url example.com/es/this-is-a-nice-url-1 -> example.com/posts/this-is-a-nice-url example.com/es/this-is-a-nice-url-2 -> example.com/posts/this-is-a-nice-url Making the "-1" or "-2" optional.
  15. Advocating for option 1, if you have phpMyAdmin on both servers you could rather do a simple SQL export/import, then you skip all of what you mention about exporting fields, templates, etc. (I guess create the database/db user first from whatever management panel you are using) Also, instead of installing through softaculous, you could just zip, upload an unzip the whole ProcessWire website inside the web root of the new server (public_html folder in some servers, for example). If you reconnect the db with the new database data in config.php, it should just work. And last but not least, change $config->httpHosts array in config.php to accept the new domain. Also I guess Duplicator should work, would try with it first if you don't feel very confident in the above steps.
×
×
  • Create New...