cb2004
Members-
Posts
578 -
Joined
-
Last visited
-
Days Won
3
Everything posted by cb2004
-
https://github.com/ryancramerdesign/ImportPagesCSV for all your import needs. I have moved Drupal sites, Wordpress sites, Joomla sites. As long as you have a good export routine, this module works flawlessly for me.
-
The hosting company 20i here in the UK have added ProcessWire as a 1-click install. This is a really good company, they recently advertised on FileZilla installs (may still do). Here is the announcement: https://mailchi.mp/20i/august-news-for-20i-resellers
-
Thanks so much for your reply Adrian. In the end I went with a solution in ready.php: $members = wire('pages')->get(1302)->children; $subMembers = array(); foreach($members as $m) $subMembers[] = $m->id; And in config.php: $config->usersPageIDs = array_merge($config->usersPageIDs, $subMembers); Seems to be working ok, but what route would be best/fastest?
-
I need to get an array of IDs in the config.php files to workaround something. Is there any way to do this, I have tried wire('pages') but dont seem to be having much joy.
-
Bug report posted: https://github.com/processwire/processwire-issues/issues/1223
-
Yes I did try that as well, I think because there is no parent its throwing it off. Will have to be a normal template I guess with email and password field and set a cookie when they login rather than check the member role.
-
I have a site where the members are organisations, I have setup these members using: https://processwire.com/blog/posts/processwire-core-updates-2.5.14/#multiple-templates-or-parents-for-users That way we have nice access control. Those organisations would like to give access to employees, so I went through the process again and thought these could be added below the organisation, but this time I didnt add to the $config->usersPageIDs as these would all be different (the main organisation). Everything works ok, but the user cannot be found by using $users->find("email=address"), so I cant log them in, it can be found with $users->get(2365). I have tried adding check_access=0 but nothing seems to be working, any ideas?
-
@bernhard bingo!
-
@bernhard this only works if you type in lowercase, is there anything that can be done (I know all Font Awesome icons are named in lower)?
-
@benbyf I am not sure what version this was added, but if you have 'PagePathHistory' installed, if you go to the 'Settings' tab in a page, you have 'What other URLs redirect to this page?' section. I then use https://modules.processwire.com/modules/process404-logger/. On big sites, I would still potentially use Jumplinks as a power tool.
-
You have just said a whole load of things I don't understand since my 20 years that I started developing. This is why I choose ProcessWire, I dont understand it now, I know its more than likely covered in the future.
-
Would be nice if this was supported in the core as well in the settings tab. I setup my redirects in there now and use the 404 logger module as that seems to cater for my current needs when rebuilding a site
-
Just as I was about to call it a night, here it is: $secureFile = $pages->get((int) $input->urlSegment1)->filesSecure->findOne("basename=$input->urlSegment2"); $options = array( 'forceDownload' => false ); if($secureFile) $secureFile->download($options); else throw new Wire404Exception();
-
I cant seem to get downloadFilename to work with this, anybody else? $secureFile = $pages->get((int) $input->urlSegment1)->filesSecure->eq((int) $input->urlSegment2); $options = array( 'forceDownload' => false, 'downloadFilename' => $secureFile->basename ); if($secureFile) $secureFile->download($options); else throw new Wire404Exception(); It just comes in as 'download'
-
Still love this module @Wanze. Does anynody elses files stay on the filesystem when deleted?
-
Awesome module @bernhard, adding it to my default installation profile.
-
I think the carousel implementation is perfectly done. Well designed, and perfect auto scroll speed. As for the whole site, great job people. As for the link you provided @Beluga, I would respectfully disagree. Running 100s of sites, especially ecommerce, carousels contribute to a massive spike in product sales. Dont read what works for others, implement what works for you.
-
I would say go with another solution for now. I respect Kongondo for not rushing this out to market, it makes me more more excited to see it. Software development should never have timescales unless you are dealing with a client, which I know you are, but lets not rush good work. I am guessing this shouldn't even really be called Padloper anymore, so I wouldn't expect a free of charge upgrade, and in fact I hope there is no license fee reduction just because you have the previous version. I would like to reward Kongondo for his work as I do Ryan by purchasing his Pro modules, even if I don't use them.
-
Hi everybody, I hope you and your closest are staying safe. I have potentially been staring at this a bit too long and have lost my train of thought. I have created a new action in admin using this hook (just in case it is useful to anybody) where I want to export the children to a CSV file (event participants): <?php $wire->addHookAfter('ProcessPageListRender::getPageActions(template=80)', function(HookEvent $event) { $page = $event->arguments[0]; $actions = array(); $actions['export'] = array( 'cn' => 'Export', 'name' => 'Export', 'url' => $page->url.'export/', ); if(count($actions)) $event->return = $actions + $event->return; }); Here is then my code for the CSV: if($input->urlSegment1 === 'export') { $array = $page->children->explode(function($item) { return array( 'title' => $item->title, ); }); $fp = fopen("{$page->name}.csv", 'w'); foreach ($array as $fields) fputcsv($fp, $fields); fclose($fp); } The CSV is getting created just fine, but how would I send this straight to the user (and then delete). I know about Batch Child Editor and that is a fantastic module, I just wanted to create something quick (easy) but its consumed my brain cells for the last hour. Cheers all.
-
If you switch advanced mode back on in config, go to the template Advanced tab and uncheck this right at the bottom you should be golden.
-
I hate hate hate hate (repeat however many times you would like) to say this, but WooCommerce is my weapon of choice for eCommerce. For the level of my client base, they are on the understanding that if I say I am not doing that with this software and you would need something more highend and secure, then they are ok with the functionality. That will be the only time you will ever hear me talk WordPress on here (until the new Padloper comes along). But, I did check out the module by @Gadgetto that @bernhard was talking about, and it is impressive. Yes you can plug everything into the frontend yourself with Snipcart, but the backend integration is lovely. If you are worried about the fees, then in my experience, you have a product that has too many competitors and there will always be somebody out there undercutting you. Just roll something out with a slightly higher price otherwise, test the water and adapt from there.
-
module SnipWire - Snipcart integration for ProcessWire
cb2004 replied to Gadgetto's topic in Modules/Plugins
Exactly, I am always on the latest dev version whenever I need to work on a site as it is so easy to update, and it is always stable in my eyes.- 232 replies
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with:
-
Same here. Any chance of a fix @Wanze. I use this module a lot.