Jump to content

apeisa

Moderators
  • Posts

    4,632
  • Joined

  • Last visited

  • Days Won

    55

Everything posted by apeisa

  1. One thing to remember: there can be multiple pages with same names (but with different parent). But here is how you do it (this returns the first page it finds): $myPage = $input->urlSegment1; // Remember to sanitize! $myPage = $sanitizer->pageName($myPage); // $pages->get() returns single page while $pages->find() returns PageArray $p = $pages->get("name=$myPage"); // And finally, we want the url echo $p->url;
  2. I found one bug with this module. I have set the cron to run every minute. I had only one page where I have managed publish settings. Then I started to see this error message on any admin page every now and them (I would assume that it would occur once a minute): Page saved, but not published. Change publish until setting if you want to publish this now. I'm not sure, but shouldn't this problem go away if we could restrict afterSave() method to run only when saving page through admin?
  3. What does your browsers js-console say?
  4. apeisa

    Processwire.net?

    Adam is the designer, initial static html was done by me and Soma have made most of the grunt work (pw => html, lot's of tweaks and details). Current status is little blurry, Adam have provided new tweaked designs and those would require some front end coding. So there extra hands you guys are offering would come in handy. In the other news, we have been doing this for ages, so thinking that just releasing and tweaking it afterwards might be a good way to go too.
  5. It looks great. I think it is does superb job to make admin feel little less "lot of boxes with borders". Hopefully you get it released at some point!
  6. I think doing oauth2 implementation is way to go. Twitter should do something useful with their API instead of teasing people.
  7. What is that admin theme sir?
  8. apeisa

    Processwire.net?

    We have been developing it with varying speed for a long time already. How does it feel for you guys? Any ideas where to improve? Direct contributions to css are also welcome I think. Jbroussia: not exactly a framework, but it is built using goldilocks approach. I think it is still one of the best ways to do responsive design.
  9. I got this error also. Should be easy to reproduce with these steps: Create page field, that allows only certain template, ie. product-feature Add that field to a template (ie. product) Choose few pages from that field (not sure if this step is required) Change templates from all product-feature pages (I did this through API) Remove template (product-feature) Edit page with template product I think in my case the required template setting in page field what was causing the error, not the selected pages. Since I changed that from field settings everything started working.
  10. Very nice work Nico! The arrows really should show more images (I clicked them all ).
  11. $session->_user_id = $user->id; I don't seem to get this persistent. Is it protected somehow?
  12. Steve is on fire!
  13. Great. I love the interface, simple and very "pw-like". Will test this soon and will definitely come in need.
  14. Great module Steve! On suggestion for documentation (it took my few reads to understand how it works). In this full example: $body = "..."; // Setup the email body template $subject = "..."; // Setup the email subject template $parser = wire()->modules->get("TextformatterTagParser"); $parser ->set('context', $user) ->format($subject) ->format($body) ; $sent = @email($user->email, $subject, $body); I would show those subject and body lines too: $body = "Hi {firstname} and welcome to our service. You can login using your username {name} and password."; // Setup the email body template $subject = "Welcome {name}"; // Setup the email subject template $parser = wire()->modules->get("TextformatterTagParser"); $parser ->set('context', $user) ->format($subject) ->format($body) ; $sent = @email($user->email, $subject, $body); Above example is written assuming I did understaad how it should work
  15. I usually just use <style> tags when in need of adding dynamic css. The amount of dynamic code is so small, that I think it is most flexible solution.
  16. Great answer Arjen. One correction though: autojoin is not required to sort by date. And welcome Lucas!
  17. It seems this url works for at least march 2013: https://api.twitter.com/1/statuses/user_timeline.json?screen_name=apeisa But I didn't read enough to know what happens then...
  18. Datefield seems to use date function to format dates: https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/modules/Inputfield/InputfieldDatetime/InputfieldDatetime.module#L109 Date doesn't support setlocale: http://php.net/manual/en/function.date.php
  19. Marty: one option for you could be a processRedirect module.
  20. No, not yet. This feature has been discussed before and it is coming at some point. Probably as a JSON export/import. More reading: http://processwire.com/talk/topic/1284-best-practice-for-staging-to-live-database-synchronization/#entry12752
  21. Twitter made interesting change on their API and disallows to read public timelines without authentication: https://dev.twitter.com/discussions/10803 This means that processwire.com frontpage (and many other sites as well, I assume) shows error currently: MarkupTwitterFeed: Unable to load http://twitter.com/statuses/user_timeline/208130540.rss?count=2 Best part is that there is (as far as I understood) no way to build simple "show my tweets" modules without server side authentication. From the comments: And as we know, those embedded widgets sucks :/
  22. I missed that critic's choice thing earlier, great thing and really looking forward to it! Of course the question of which cms is best is still very subjective. It would be great to have little bit more descriptive categories, like "Best cms to build small product catalog type of site (project budget under 5000$)" or "Best cms to build large (over 1000 pages) multi-language site for big organisation." etc... I don't see much value putting open source and commercial cms in different categories, if we have some kind of project budget in those categories. Also those categories could change every year, so it would give nice change to winners also (I assume).
  23. apeisa

    New pw site

    I actually got it and felt it like a nice touch (the scrolling at the end). Maybe it could reveal little surprise, like handwritten "Welcome" and arrow to the door would be nice touch there?
  24. Their OEM license seems to be pretty clear: Integration with open-source CMS/software Integration with products/services for developers, who will then create their own products for the end users But I also think that shipping redactor as a separate module (os or commercial) would be a good idea, just to be on safe waters with PW-core. I have no idea what shipping that kind of software within GPL-licensed software means. Also took a look at their docs. Implementing that would be a pleasure compared to TinyMCE... had once to build a plugin in tinymce and it was a nightmare.
  25. Awards like these are more like voting competitions than actual "which cms is best" competitions, but very nice to see many smaller projects getting nice coverage there. Actually quite a few cms that I wasn't aware of before. Great work Mike!
×
×
  • Create New...