Jump to content

Sergio

Members
  • Posts

    534
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Sergio

  1. Very strange indeed, but I don't think they install bower for you. Are you sure you haven't installed it before for other projects? Anyways, don't lose your head over it. The differences between what can be installed are these: npm install foundation-sites This command will install only the CSS framework, you'll need to compile the Sass yourself. As their documentation says, you can use Bower OR npm. But, to install all the requirements to compile the Sass files (using node-sass), you should use their cli like below. This is useful if you do not have gulp setup yet for your project assets. npm install --global foundation-cli And, the final option, using Zurb template, which I recommend only if you are starting a new project and want to use their Panini library to build the pages statically and have an HTML prototype very quickly to show to a client and after their approval integrate with PHP. foundation new --framework sites --template zurb Be aware that it will install a lot of stuff!
  2. @FrancisChung, it sounds like a good idea, but I think I saw something like that before but couldn't find it. Although I've found a quiz on how to choose a JS framework, many questions can be adapted to create a new quiz using https://www.qzzr.com as well. Take a look: https://code.tutsplus.com/articles/quiz-choose-the-right-front-end-javascript-framework-for-your-project--cms-27739 And, maybe you haven't seen these two comparisons: https://www.vermilion.com/responsive-comparison/ http://usablica.github.io/front-end-frameworks/compare.html They can help a lot.
  3. I really think that using frameworks for medium to complex projects can help a lot, reducing significantly the time required when dealing with browser issues. I can't see a REALLY good reason, from a technical and a business point-of-view, not to use one as nowadays as almost all of them have generally good documentation, are battle-tested in all major browser versions. I really don't want to remember you how it was like in the days of testing a site over and over again in Netscape and IE. When I'm planning a project I decide which framework to choose based on these questions: 1. Will the project have many different pages layouts? 2. The client's brand require a custom design? Meaning, will the developer spend a lot of time creating a layout that's specific for the project, or the project can have a more default layout (based on the framework's default styles/components) 3. How much time/budget do I have to work on the project? 4. In the future, will be other people maintaining the project of just me? And if so, are we going to be thankful as I used a framework with good docs or should I expect a desire to break my (own) knees with a baseball bat? The choices can be, for instance: Zurb Foundation – for projects that require a lot of different pages down the road and a lot of customization. And I always use the Foundation Stack to have maximum control of the settings. Foundation is, like they said, the most advanced framework out there. Twitter Bootstrap – If I'm creating something with Laravel and it's an internal project, tool, or just a prototype, as the Laravel community have a lot of things already done using Bootstrap that can help. UIKIT – If the project can benefit from its more opinionated designed elements, meaning: can I stick with the defaults and do just a little customization and call it a day? --- Unless your project really needs to have the smaller CSS/JS footprint possible, like if you are targeting some users with crappy 2G connections and/or old browsers, you can go with a framework like the above. I used a lot of Foundation's CSS components on ricardo-vargas.com and the CSS is less than 30kb gzipped. --- For personal projects, I usually search around and give smaller frameworks like Tachyons, Kube, Bulma a try as it's fun!
  4. I dig that! Let me find some time to put things together and we'll talk, ok?
  5. The thing is, I don't know how but I can access the user dashboard on my free plan. Maybe when I signed up, they gave me access to it. BUT it's not something you will really need because you can manage the users on PW's admin just fine. The dashboard is useful for projects that don't have an admin, I think.
  6. There's a lot of thinking behind the magic link solution, the guys at Auth0 handle all the heavy load of checking and trust the user signing. I won't dare to implement such feature myself if I were you. That's a LOT of time to invest.
  7. Maybe I can create a PW site profile based on the default profile with just this module and its required fields and release it here. I think it will be better as I may have a lot of details to explain in text and using code is easier. What do you guys think?
  8. Yep, I used Auth0 API for that. In the end, it was simpler than I thought it will be. I can send you the module source code but it's not ready for open source, need documentation and maybe a cleanup. Would you like to do that?
  9. That's the main reason I decided to embrace "Passwordless" login. No more support messages "I can't change my password" anymore!!
  10. I have all node modules inside "vendor", outside my template folder, take a look:
  11. Yep, now I did. Should be fixed now. Many thanks, Robin! I appreciate it!
  12. Yep! Just fixed it. Could you verify, please? https://ricardo-vargas.com/books/
  13. Stop the press! @Robin S I've found the error, is on books/ root page instead! Working on it right now, many thanks!
  14. Very strange indeed! I think you have cache on your side as I see a different <main> tag on https://ricardo-vargas.com/books/recommendations/, see: Did you visited the site when it was running on beta.ricardo-vargas.com?
  15. I had a similar problem this week, keeping losing sessions and I'm using Cloudflare to handle SSL. But without www, as in my case it redirects to https://example.com. I resolved it by adding this to the config file: /** * http://cheatsheet.processwire.com/system-configuration/session/config-sessionfingerprint/ * Should login sessions be tied to IP and user agent? More secure, but will conflict with dynamic IPs. Default is true. */ $config->sessionFingerprint = false;
  16. Yep, it's a great plugin, but I'm not using its animations capabilities at all. Sure thing, I'll find a time to write about how to handle page views in a procached static page then!
  17. Hi Zeka, thank you! The solution I used, the aforementioned Smoothstate.js, it's a jQuery plugin to handle page transitions, so not a fully Ajax solution. If you disable JS, the site main navigation will work just fine, what the plugin does is to only load the main content of the page between transitions. It's the quick and easiest way I know to have a nice transition without worrying about Ajax complications, you can build a normal PW site and have the plugin on top of it. But I did use a bit more Ajax on the website to have things like page views and user bookmarks being recorded in a db table. Do you want to know more about it?
  18. Great, that will work! I think it will be very useful to have the short texts translated right away when creating the template and after that we can go to the admin to translate the long ones.
  19. Great! You're right, it can be messy! Great work, keep it up!
  20. For a project I've posted yesterday I built a basic module to subscribe users to a Sendy installation. I love Sendy and my client too as we use it to send lots of emails using Amazon SES costing almost nothing at all. Do guys think that's worth to post about? It's very basic now, it doesn't use Sendy's API at all, it just send the data using POST to subscribe the users to different lists.
  21. This looks really promising @diogo! I like it a lot and I'll sure try it on a next project. One question, what about multilanguage fields, do you think it's possible or should we avoid it to not overcomplicate the module?
  22. Thanks! But I know that there's a lot of places where I can improve it. I had some problems with the plural translation on some other pages but got a workaround. I still have to update the module and start using your news filter and macros. About my custom filters/macros, I have to refactor some of them, and I guess you probably have almost all of them but with different names. Thumbnail is just a dumb filter to get the page image and resize it, I actually not using it anymore, forgot to remove the commented code from the page. Here's the number_local and cutAt: And yes, I'm planning to get rid of the "noescape" filter in the future.
  23. I think I deleted it by mistake but thanks to you I put it back. And thanks for the tip of using spoiler! Much better indeed! I also changed the link so the new page shows all the code blocks with related stuff: https://ricardo-vargas.com/podcasts/cost-estimating-part-1-of-3/
  24. Many thanks for all your modules, @tpr! They are excellent and helped a lot! Yep, I was planning to replace TemplateAdminColumns in all templates but had to release the project before that. I do it later. The same thing about ALIF, I started using it before AOS I think, so I just kept it there. But what can I use to replace TextfomatterMultiValue ?
  25. Yes, @szabesz! Using @tpr's excellent Latte module for the whole site! Such a time saver! Take a peek on the podcast item template (ignore the indentation problems): And I forgot to mention that for the frontend I'm using Foundation framework with a couple of custom spacing and helpers styles like the ones you see on some tags like "u-mt48" (utility- margin-top of 48 pixels)
×
×
  • Create New...