Jump to content

marcus

Members
  • Posts

    289
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by marcus

  1. I'm going and really looking forward to it! Anyone in for a ProcessBeer on sunday night?
  2. Since users are pages with a certain template, you can access them after going to /setup/template/, choose Filters and set "Show System templates" to yes. From that point on you can add fields to users like on any other template.
  3. Amazing module with impressive ease of use! And really slick and jaw dropping inline-page-version preview!
  4. I'm not quite sure I understand, but can't you access POST with $input->post->var1 within PW template context?
  5. Yes, of course as some thing of a "fork" I'll think about this whole approach (whether to do it, what to do, how to do) within the next week - but thanks for your feedback!
  6. If I would add, let's say, a bugtracking feature to this profile and shift it from "agency internal use" to "agency/freelancer <-> customer communication tool" would anyone be interested to use it/or join in? Just thinking out loud at the moment.
  7. Thanks for your input on this! I'll forward it to my customer. In this case, I wasn't really integrated in the editorial process/final text creation apart from site design and of course site structure.
  8. Seems that only an echo is missing, <?php echo $user->name; ?>
  9. Nice, clean and clear - I like it! Knowing that it's build in PW I shortly stumbled upon the main navigation item "Repeaters"
  10. $pages->get('/') just returns the ID of the home page. Try $pages->get('/')->url
  11. marcus

    Contriboo

    Happy easter! Lately I was trying to gain an overview of Open Source projects to join, but didn't succeed (at that time) to find such a directory. In my mind, there would be filtering through both languages/frameworks, difficulty levels and beginning tasks. So I started to write down a concept sketch about such a project list myself, maybe to start as a side project to experiment and learn from. In the meantime I found openhatch.org and up-for-grabs.net. But the early concept in my mind has starting drifting to slightly another approach for supplying OSS project data. Before I go any further down this road I would be grateful if some of you could give the following a read: https://github.com/contriboo/contriboo-concept In this markdown file I tried to sum up the idea. Any feedback on this would be highly appreciated Maybe its a "me too", maybe dead on arrival because of conceptional quirks, but I want to give it a try at least. And why am I posting this on a ProcessWire board? Well, the last weeks I found out that it would be perfect to start such a directory with PW - at least for me not being a backend-guy. But I could have produce nice results/functions in a short period of time. And surely PW cares about Open Source Kind regards! m
  12. Yep, you're right! <?= $pages->get('/about/')->url ?> Or, just iterate through the homepage's children. Or try MarkupSimpleNavigation.
  13. Try <?php echo $pages->find('/about/')->url; ?> <?= $pages->find('/about/')->url ?>
  14. Hi apeisa, for a hobby horse project of mine - and to learn writing modules - I took the liberty to adapt your module for GitHub registration/login: https://github.com/marcus-herrmann/ProcessWire-GitHubLoginModule GitHub is using OAuth as well, so I had to more or less modify the URLs (and for some reason, giving a stream context to file_get_contents). Disclaimer: untested so far! Proof of concept.
  15. A) {$pages->find("template=child-template, provincie=$child->provincie")} could result in multiple pages. It's not clear whether you're doing this already, but you'll have to iterate through the results like $children_provincie = $pages->find("..."); // Replace ... with your selector foreach ($children_provincie as $c) { echo $c->url; } ...and so on. B) Even if the selector would return just a single result, you have to return ->url to get it working as a link. Thats because, in your second snippet, you just get an ID instead of a path to the page being found.
  16. Hi John, you have to additionally grant edit access to the templates you're allowing your customer to edit. To do this go to Setup › Templates › (some_template) › Access › Click Yes and then in this row give the new role all intended permissions.
  17. Thanks! I will forward it to my customer.
  18. When including your css and js, do you use something like... <link rel="stylesheet" href="<?php echo $config->urls->templates?>/dist/css/main.css"> ...or are you traversing folders like href="../../css/main.css" ?
  19. Hi felix, thanks for the updates on the issue! I haven't found time in the last days to move any further in this project - which is just a learning installation anyway - but will look into TemplateTwigReplace on the weekend. I better be learning twig sooner or later, if not for PW then for Drupal 8
  20. The testing environment is an out-of-the-box MAMP 3 virtual host, meaning PHP 5.5.10 - but I could try to downgrade, since it will really take some time until this version hits my customers web hosters Just MarkupSimpleNavigation, ManageFiles, FieldtypeCropImage - just installed, none of them initiated in any form - apart from that the installation is totally empty / unconfigured Yeah, different variable name, integer instead of string, but same effect edit: 5.4.25, 5.3.28 - no difference
  21. Hi Felix, greetings to Hannover and thanks for your answer. die(test) works and proves the dataprovider is loaded at all. But the value of $foo still isn't provided to home. See my code below in both files: home.php: <?php /** * Home template * */ echo "This should be the value of foo: " . $foo; HomePage.php: <?php class HomePage extends \nw\DataProviders\PageDataProvider { public function populate() { $this->foo = 'bar'; $this->page->foo = 'baz'; //die('test'); } } But the output is just "This should be the value of foo:", without any 'bar' added. Overall, its just testing a different way to populate/architect my templates, so no show stopper at all - but thanks for the offer via Skype! Marcus
  22. Hi marco, unfortunately the example for a home page template, mentioned above, doesn't work in my case. I installed the module, left the default setting dataproviders, created this very folder in site/templates/ (checked its permissions), placed a HomePage.php with your example code in it, opened home.php and tried to echo $foo. With no result. Am I misunderstanding the concept, or did I forget a neccessary step to make this work? Thanks in advance! marcus PS: PW 2.4, Module version 1.0.2
  23. My development workflow / deployment process is git- and beastalkapp-based, and heavily inspired by this video by Chris Coyer from css-tricks.com: http://css-tricks.com/video-screencasts/109-getting-off-ftp-and-onto-git-deployment-with-beanstalk/ Meaning: Working locally but having a staging server, more or less like the one einsteinsboi has described above and having a production server, the clients webspace Beanstalk handles the deployments which tend to be automatically on staging (just the master branch) and - always - manually on production.
  24. Launched just a few days ago: http://yummimami.de - a presentational website for a German startup supplying healthy and kid-compatible presented food to schools. Some features Responsive Forms via FormBuilder Navigation via MarkupSimpleNavigation (which, at least in my use case, evolves into something super essential for PW - like Views for Drupal for example ) Widget handling via having a big pool with pages of template type "widget", then referencing (and hence, rendering) them on content pages Editorial influence on the homepage teasers main color via SVG + field + ColorPicker (not necessary to that extent since the customer doesn't need to change the color to any other that magenta, green or brown - but still: proof of concept)
×
×
  • Create New...