Jump to content

slkwrm

PW-Moderators
  • Posts

    321
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by slkwrm

  1. Thank you, Ryan! Great feature!
  2. slkwrm

    Twig

    Just a couple of days ago I read about TWIG's tag processing logic here. It goes like this: Hope it helps.
  3. As far as I know this option isn't available in the back-end, but I remember Ryan wrote somewhere on this forum about the usage of more then one field to sort by in code. It should be something like this: $pages->find("parent=$page, sort=field1, sort=field2");
  4. Looks very clean and tidy. Seems like a good start to make some color explosions One thing that I noticed is when I resize my Firefox to the most narrow view (Mobile Portrait Size) the last links of pagination slide down. Hmmm. Got to have a closer look at Skeleton.
  5. It's definitely doable with ProsessWire. I guess custom profile edit pages is what will require most of the efforts. Will admin users use PW's backend to edit pages and manage users? If so then it will be a breeze to build, otherwise it will require additional development. Comment module is already present in PW and I remember Ryan mentioned its rework is planned in the future.
  6. I would stick with PW, really I remember getting dizzy when I had to make pages in Drupal look the way I wanted: Where this margin is coming from? Ok, this module generates this HTML with 4 wrappers. Where it takes its css from? Let's see it has cached css-file which is generated every time I save module settings. Ok, let's take a look at its real css-file. Well, it's not really css-file, but css template written in php. Ok, what we see, it generates css depending on the options we set in module's properties, but I still can't see where this margin is set. I've spent already about 20 minutes trying to find this goddamn margin property. Ok, if it isn't here it should be somewhere else, let's dig through module's source files. Haveng spent another 10 minutes looking through module's source files I finally found this margin in module_name_API.php!!! WTF? Why put it here? Ok, I fixed my margin, but I have another page where this module's markup is output next to another's and now they overlay, because that another module generates its own markup and now I have to repeat this crazy procedure again for another module. No, not anymore! I have a lot of other things to do! Yes, Drupal is very powerful, but this continuos, never-ending hacking makes me suicidal I would rather spend time creating using the system then struggling with it. As for MODx, I really liked Evolution and still do, but PW makes it look unnecessary complex and is light years ahead in terms of intuitiveness and flexibility. I also tried to use Revolution, but to me it over-complicates things and I can't stand its sluggish back-end (thanks ExtJS). Their announcement IMO is pretty logical step to take as Revolution haven't equaled the hopes, but it gave really good understanding of what's really important for this CMS. I wish MODx team good luck with MODX3 because they've already made one of the best CMSs that I really like and just because they are great guys. Wish them to repeat their success with third version. Processwire brings joy to development, this is why I will keep using it It makes me learn and create rather then hack. And it has a brilliant community, in life of which I wish could participate much more then I do now.
  7. Usually use it a couple of times a week and find it extremely helpful! Thanx, Soma.
  8. Thanks, Ryan! Repeater with Images works now. Yes, it's FieldtypeMapMarker and it worked ok initially. Sorry, I just didn't express my thoughts clearly.
  9. I had this problem with as far as I remember languages list some time ago, but I could not reproduce it afterwards, so didn't report back then.
  10. Ok, this bug appears only when I choose images in repeater unit without entering images description, also fill google maps field with a city name. Can anybody confirm?
  11. Thanks, Soma! That was easier then I thought!
  12. Ryan, just tested it and it seems like I found a bug, though I'm not sure. Maybe it's just me doing something wrong) Cloning is working fine, but when I add new repeater item, then, for example, select image file and fill other fields, after I hit save I can't see my just added unit untill I click "Add item". I have ready-to-edit (unpublished) items set to 1. Then if I add second item, after saving I see only my second item. Haven't tested it further, don't have much time right now. Is it a bug? Can you reproduce this, guys?
  13. Well, I haven't used PW with any frameworks, because my needs are pretty limited. I think that depending on a project some components could be really useful. I personally like how Symfony's DomCrawler can be used together with CssSelector to handle DOM manipulation, so if I would have a project where I need to modify DOM a lot, I would use it. Another one that looks really cool is Finder which helps to search files. Don't need it at the moment, but maybe I'll try it soon as I just started using Amazon S3 sevice (total n00b there).PW has most common tasks frameworks propose already covered. What it lacks, as has already been mentioned, is a solid validation system and a form builder. Also it would be cool to have something like automagical MVC support. For example, if template acts as a controller then when action is accessed in url (for example controller/action1) then it's automatically dispatches to the corresponding method action1() in controller. Talking of MVC, I wanted to mention Yii's Access Control Filter, which seems like a very cool way to control who can access what and when. I'm still learning, so frameworks teach me a lot of things and provide some guidance. As Apeisa said, I feel that I do things the right way and also don't get overwhelmed by unnecessary details that otherwise I would have to take care of. The side effect here is that too much of abstraction prevents developer from learning native PHP tools, and there are frameworks that have such hilarious things like HtmlHelper::div("Hello!")
  14. Considering that Processwire is a framework itself, in my humble opinion the most beneficial way would be to use PW with decoupled framework that can be used as a component library as well, so one could pick and choose useful components without the need to load the whole framework. So my choice would probably be somewhere among Symfony2, Zend and Flourish (though nobody prevents from using all of them). The problem is that when different components get involved, the coding style becomes less unified and readable. What do you, guys, think? Would be really cool to get a couple of tips here. Edit: onjegolders, also look at this article.
  15. I heard a lot of good things about Yii Framework. Its learning curve's considered not as steep as of Zend Framework and it's much more compact and lightweight (Zend Framework components can be incorporated if needed). At the same time it's more powerful and feature rich then CI. Not sure if it will play well along with PW as it's full stack framework so its components can't be used separately. Symfony 2 looks like a totally new and fresh approach to frameworks, it's full stack but also based on decoupled components (so they can be easily entegrated into Processwire). I haven't have enough time to fiddle with it and, honestly, I think my expertise is not enough to fully appreciate its possibilities. It resembles me a modular synthesizer: if you don't know where each cord leads, what's the purpose of each slot and what knob tunes which sound parameter, all you get is noise at best or more often just silence It's easier to use semi-modular synth or even hard-wired one that suits your needs unless you need something truly unique and exlusive.
  16. Hi, jukooz and welcome. 1) For simple websites you could use usual includes to reuse your building blocks. See the home.php and basic-page.php for the example in site/templates/ folder. Also see this really cool thread about different approaches to templating. 2) You could create a page using a special template with all the necessary fields to store your global variables. Then you could access it everywhere in your template them as easy as: $globalVars = $pages->get("/path/to/your/page/"); // you can also use page id instead of url $globalVars->fieldname; You could include it in your header.inc so that you don't have to call it every time. 3) You could use a "show (hide) in secondary menu" checkbox for your pages and then check against its value in your code to show only items you need. Have you seen this already?
  17. Another option here is to place all the fieldtypes into one template and use FieldsetTab pairs so that input fields get distributed onto different tabs in the page editor and it stays nice & tidy. For better undestanding see the picture in the first post. Then you could have all the fields accessible in your template like this: $page->fieldname. I think this method is pretty neat provided you cache the page. The drawback here is that your site becomes less modular and you can't unpublish or substitute one page (section) with another as simple as with regular approach. But sometimes all you need is simplicity. Edit: And if repeated elements of your page are uniform and their number is not supposed to be large, you could use repeater fieldtype for better user experience. Cheers.
  18. Of course if it may be helpful for anyone let's leave it here. Anyone interested may find these links helpful: Choosing an API Choosing a library
  19. Trello looks like a great app. No wonder, Joel Spolsky is a founder I also recommend looking at TeamLab. Maybe it's not looking as sexy as Trello and Asana, but it has a lot of really cool features (if you really need them) and is a full-blown project management software with CRM, google docs integration, community portal, forum and even wiki. It's free as a SaaS with limited storage space, BUT it is also open source. The only drawback is it runs only on windows server. Another great app that I use almost everyday for my personal notes and some kind of dairy is Workflowy. It's aimed at creating simple (todo) lists. What I like about it is a really nice and simple interface. I love simple things so I was sold almost instantly when I saw it for the first time. It has really cool and handy tagging system, instant search and sharing capabilities. Chek it out
  20. Great news! Will it be possible to have wiki-articles in different languages?
  21. Hi, guys. My friend gave me access to his shared hosting so I could install PW for him and he could experiment with it a little. The problem is that this hosting doesn't have mysqli enabled so PW compatibility check fails. Can I use Native PHP MySQL Driver instead of Mysqli and if so how can I enable it somewhere in config file of PW? If it's not possible then I will have to ask his hoster to enable mysqli. Also I've read that native driver has some performance anvantage over mysqli though it doesn't matter in my case. Thank you. Edit: Ah, I'm sorry for posting this. My question doesn't make sense since mysqli can use native sql driver but native driver itself doesn't provide API for developer. After some googling and reading I found out that switching from original mysql API to mysqli requires some work. And after looking at the database.php code I see that it extends mysqli so it will be simplier to change hosting settings anyway. Please, delete this topic.
  22. Hi, Raoul. Not sure it's the right approach here but you could make get() and set() methods hookable by wrapping them in ___get() and ___set() methods respectively (prefixed with tripple underscore). It will cause problems when you upgrade PW though. You'd better wait for an answer from more seasoned developer out there Cheers.
  23. Statestreet, it would be great to have a button to switch this rollover on and off, but maybe it's not what you had in mind)
  24. Diogo, I guess it works this way as it's a very common need to find a position of current page or it's neighbour element in retured array. Just used it recently myself
  25. I don't understand the question. Can you provide additional context? I'm not that well-versed in jQuery, so maybe my question doesn't make much sense). What I meant is that when I use inspector in Chrome and find some element and then try to use it in hook after page render it seems like it doesn't exist yet. Also wanted to ask what is the best way to inject javascript in admin pages. Thank you.
×
×
  • Create New...