Jump to content

clsource

Members
  • Posts

    374
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by clsource

  1. This is the github demostrating the problem https://mathiasbynens.github.io/rel-noopener/
  2. I think creating https://laracasts.com quality tutorials but with Processwire will really help people understand the joy and power of Processwire.
  3. I use the Samsong USB mic http://www.samsontech.com/samson/products/microphones/usb-microphones/meteormic/ And for Recording video http://www.logitech.com/en-us/product/hd-pro-webcam-c920 And for Recording Screen http://telestream.net/screenflow/overview.htm?__c=1
  4. Thanks, looks a great addition to the site profiles
  5. I have always seen processwire terminology like the OOP way Template = Class Field = Property Page = Instance Also everything is a page is a wonderful concept that saves me a lot of engineering efforts when creating websites
  6. I don't know if this is useful but my approach would be this: make a different site profile for the correct default language a site profile with the default as english, spanish, french, etc. share the common fields, templates and components and then just change the default language as needed. later install different pw installation with the site profile that the language need.
  7. if($session->login($user, $pass)) { // login successful $session->redirect($homepage->url); } else { // login error $session->login_error = 'Login Failed. Please try again, or use the forgot password link below.'; } may be is causing an error put them in a try catch block try { if($session->login($user, $pass)) { // login successful $session->redirect($homepage->url); } else { // login error $session->login_error = 'Login Failed. Please try again, or use the forgot password link below.'; } } catch (Exception $e) { wire('log')->save('debug', $e->getMessage()); }
  8. I would add a field to the user template and set its timezone for every user page. as you did. then using horst´s example hooks and session public function init() { $this->pages->addHookAfter('Session::logout', $this, 'timezoneLogout'); $this->pages->addHookAfter('Session::login', $this, 'timezoneLogin'); } public function timezoneLogin(HookEvent $event) { $user = $event->object; $session = wire('session'); $session->timezone = $user->timezone; } public function timezoneLogout(HookEvent $event) { $session = wire('session'); $session->remove('timezone'); } Now you can use the session var across the backend and the frontend without querying the user
  9. That looks like and iPad app. Are you using some framework like Ionic?
  10. You could use wireRenderFile() inside child pages as well Just you need to create the different layouts. site/ templates/ views/ home-area1.php home-area2.php home.php For each child create a template ex: home-area1, home-area2 assign that template to every child. then in home you could use the template name for rendering the file $sections = $pages->get('template=sections'); $viewBag = getViewBag(); foreach($sections->children as $section) { $viewBag['section'] = $section; try { echo wireRenderFile("partials/home/sections/{$section->template->name}", $viewBag); } catch(Exception $e) { Debug::log($e->getMessage()); } } ?>
  11. I personally have some struggles with the main concepts templates, fields and how to use them in different pages. I remember making a website with a different field for each data, because different labels were needed then later I discovered that you can assign different labels for each page context. The approach for templates, fields and pages that I found easier to explain is like OOP Classes, Properties and Instances. Template = Class Field = Property Page = Instance Now you can use any UML tool to create a class diagram for a website in Processwire and explain that to every developer that knows UML.
  12. I'm willing to help if you need something, just ask
  13. Not sure if there are more detailed documents, for now I found this https://processwire.com/blog/posts/processwire-3.0-alpha-2-and-2.6.22-rc1/#compiled-template-files
  14. A great example of what I mean is Padloper https://www.padloper.pw/ It gives you simple components for making your own ecommerce with processwire, haves a great documentation and its professionally crafted. I think more software like that should be made
  15. I used wireRenderFile() method only in PW 2.7.x may be it will be needed some tests in PW 3.x in order to see how it works. I think that is OK to use "YES (template file only)" Yes and includes files option maybe causes trouble because tries to compile non compileable files in between. Personally do not know about that at the moment.
  16. I agree with you that wordpress and processwire are totally different systems in every aspect. And if PW tries to emulate WP it will lesser its quality and overal developer hapiness. My point here is we could make a special market for site profiles that shows a starter package for developers to build on, like those you mention Roots and Underscores are starter packs for wp theme builders. Well documented, expertly crafted site profiles that will lower the barriers for beginners and save time to seasoned pw developers. Now there are site profiles, but I feel that they can be improved in documentation and structure.
  17. As you may know Wordpress is famous for the diversity of its themes. Should Processwire begin promoting the creation and possibly selling custom site profiles. like wordpress themes a site profile will have all the configurations for ready to go websites. this could enable a masification of processwire for people that wants a simple solution pre configured and working out of the box.
  18. A great tutorial mr @gebeer, Also I recommend using postman for simple endpoint testing https://www.getpostman.com/ http://raml.org/ for api documentation, definition and simple mockups And for testing apis nothing beats Behat http://docs.behat.org/en/v2.5/ http://shashikantjagtap.net/restful-api-testing-behat-guzzle/ https://github.com/Shashikant86/RESTful-Behat
  19. Hello, I wrote a tutorial using a simple pattern for code organization in processwire https://processwire.com/talk/topic/11646-the-wire-render-pattern/ Also in this topic I wrote how to make simple menus https://processwire.com/talk/topic/11748-menu-building/?p=109341 I´m happy to help if you need any clarification or something
  20. Why using www makes a difference? http://isit.pw/?url=www.barbaracol.com Nope http://isit.pw/?url=barbaracol.com Yup xd
  21. Thanks, yes I think this is related to the processwire version running the site. I do not use any protect module in the sites I developed, but only recent versions of pw. maybe isit.pw should be updated to the current pw versions
  22. http://isit.pw/?url=www.processwire.com Oddly tells is not using processwire
  23. Happy Holidays to everyone and have an awesome New year Hope all your PW whishes come true!
×
×
  • Create New...