Jump to content

cb2004

Members
  • Posts

    578
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by cb2004

  1. Ryan has always said he would like the designers that use ProcessWire to get involved and collaborate so I imagine that is what he means.
  2. I discovered this module today. Fantastic.
  3. I discovered this module today. Fantastic.
  4. I remember you from the other CMS which was not simple compared to ProcessWire :). Send me a PM, would be great to reconnect.
  5. Hi @Sorina. I have no experience with Foundation, however it doesn't look like you are loading the CSS or JS files. Also with a quick scan, you have 2 divs with the same id, and an id should be unique.
  6. Pretty sure this was announced in a recent blog post with sessions in the database. Bank holiday in the UK so I will take a look in the morning.
  7. I am building a membership site and the member can have a number of stores assigned to them. The data for the stores is underneath a sub page of home with template store-detail. The stores are then assigned to the user template with a page reference field. The stores will be visible in the frontend, and i want them to be paginated, what would the find be to search for the stores if the user is published. I think I am falling down because the reference is in the user template and not the stores. Thanks all.
  8. Excellent work. @Pierre-Luc are you no longer maintaining the module?
  9. Mailgun have now added EU as a data territory. This has a different API url so the module will require some updating to add this option. I went to post this as an issue on Github but it looks like the repository has been changed to read only.
  10. Some great replies, cheers all. There is no salt in the database with the original system by the looks of things, although I could probably get access to the old system files. @netcarver have you had to do anything like this before I could take a look at? These users will be logging in on the front-end with a custom form.
  11. I have a list of users and passwords which appear to be md5 hashed. Guessing there is no way to get these into ProcessWire without the user having to reset their password?
  12. I used the CMSCritic Case Study to make the parent page disappear from the URL, however as I am using markup regions there were issues. The first thing that was displayed was the desired page with the _main.php template, this is fine The next thing to be displayed was the content from home.php, I could remove this using a variable no problems The last thing to appear was the _main.php template again but without any content in Does the render() function need some extra checks for markup regions? Any ideas what I can do to get around this for the time being?
  13. I do see your point, but after inheriting some WordPress sites this year which are absolute horror shows, it has proven to me that any project without code commenting could take some time getting to grips with. So a few small comments in the template files explaining markup regions is what I add.
  14. I wouldn't use any other method now markup regions exist. Love them.
  15. This module has been out 2 weeks, if in 6 months it is full of bugs and security issues and nothing is being done let's revisit this post. There should be positivity around this, not negativity.
  16. Thanks so much @abdus. Sometimes my brain freezes up with all the selector stuff. Thats a nice optimisation for my site.
  17. So I am finding the pages from a given rootparent that have a manufacturer assigned, I then turn this into a unique array to display logos, but how would I count this first? $pages->count("???"); Cheers.
  18. Perfect. Full code: foreach ($pages->get(3780)->find("imagesMain!=, drupalAlt!=") as $p) { $p->setOutputFormatting(false); $imagesCount = count($p->imagesMain); $descriptions = array_filter(explode("|", $p->drupalAlt)); if($imagesCount === count($descriptions)) { for($i = 0; $i < $imagesCount; $i++) { $p->imagesMain->eq($i)->description = $descriptions[$i]; } } $p->save(); $p->setOutputFormatting(true); }
  19. So I have my image field, and I also have my image descriptions in 1 text field seperated by |, these are in the correct order. I am trying to apply the images descriptions to the images but I am having a brain fart. My start is: foreach ($pages->get(3780)->find("imagesMain.count>0") as $p) { $p->setOutputFormatting(false); $imagesCount = count($p->imagesMain); $descriptions = explode("|", $p->drupalAlt); $descriptionsFiltered = array_filter($descriptions); if($imagesCount === count($descriptionsFiltered)) { } $p->save(); $p->setOutputFormatting(true); } In some places the images are not present yet but the descriptions are, hence the if($imagesCount === count($descriptionsFiltered)) check. So, in there I want to foreach on the imagesMain and apply the descriptions in order. Cheers for any help.
  20. What does the file path need to be? This is working great with a full http:// but something like this: /sites/default/files/product-images/image.jpg Is not working. Any advice would be great.
  21. I think if the site works for you with no issues, the dev tag is completely irrelevant. I use the dev branch on a lot of sites that are live, ProcessWire has always been very stable, which is why it is my CMS of choice.
  22. Ah ok, so the page I am looking for could be a child or a sibling. Interesting.
×
×
  • Create New...