Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/27/2013 in all areas

  1. hey community1 for about 3, 4 months, the task "say hello to pw-community" was my faithful companion on my daily tasklist, but now its really time to say hello, hello community! you may dont know me but for me as forums-consumer it feels a little bit like i always knowing you, at least the main characters here, so, mh: hi, i'm andy! :] some words about me i'm 29yr old, live in the east of the banana republic germany and run a small agency focussed on web & communication. most of the work is getting done by myself, so at least, the agency is only for them who questioned me "andy, what if you are getting sick or... lost?", you know. i am an autodidact-one, starting in ~2003. i'm not really the geeky one but for sure i love to see my functions working, even now in pw and without ugly workarounds². i'm also in love with the graphical site of the job. at least i walked alone most of my way, so i'am focussed on some other points, too. how i found you after years of beeing the "slave" of my daily workbench i decided to take a look over my joomla-horizon and the first i found was this pw. i watched the videos of ryan describing pw, i looked into the forums and i decided to stay here for a while and till today i'am impressed by the friendliness and helpfulness in this place and at least, yeah, by the answers itself. ;D well, back to offtopic, as already mentioned i come from joomla and since january i'm on the pw-trip. after intensive testing i began to porting/building some kind of groupware: clients/projects/milestones/tasklist/calender/multi-sync/documentation/data-management/billing/communication/billing and so on. actually i try to implement it as a modul with fields/fieldtypes. a webapp for local/mobile allready running nearly stable (working on w7x64 & a.i.3gs) and for firefox i will put out 2 addons. i hope that i could share a stable site profile and the webapp till the end of april. so if somebody is waiting for such kind of stuff and maybe has some questions or requests... let me know. :] after this, i'll create some kind of a migration-automatic and migrate my joomla-websites to pw. i'll try the multi-domain-solution of pw for this. also i think about a joomla look'n'feel in pw-admin (not for me and only just a little bit,- but for the beginners under the pw-starters coming from joomla), so maybe more joomla-overloaded ones may have a good time, too. (please notice that i don't wanna slander the J!-community or their work) in general my next open source (and pw) projects focussed on automate some basic stuff (also seo/scheme), bundle functionality from a few local programs, keeping availability on other platforms (e.g. via xulrunner/webapp, js&local storage/db, or python) and compatibility to all those data-services to making more people able to run their own cms/tasklists/social-activities/clouds and keeping their private data where it belongs to. apropos: some point that i wont miss in this context i am a little bit pissed off a few people around the world, maybe called "the markets" or fiat-banks, their puppets who claim to speak for us and their shiny matrix they pulled around too many of us since today and so i have to do something against it, i thought. it depressed me a long time and i tryd many things but i only got more sick. so my only idea now is to give all my attention to the open source community, helping to speed up the slowly upcoming "collective intelligence" in this world wide network and so making the television a lil bit more yesterday. in fact, the revolution will not be televised. as citizen of one of the worlds most corruptest nation i totally agree with these words. i'm born in eastern germany, so this is not the first paradigm-change in my life. but i hope, its the last one. so, thats it. i'm happy to check this task done. sorry for my definitly not so fluffy english and sorry @ tl;dr, i usally keep it shorter. many thanks to ryan and best regards to you people. lets hope the world will turn around and go an also fluffy way. have a good time & thank you for your audience. :] andy p.s.: hallo landsleute! :]
    7 points
  2. Hello All, I work for a brand communications agency in London as head of digital. We work exclusively with Drupal. We are now looking to experiment and build a few sites with PW. Im looking to expand my knowledge and my contact list. If you are in or around London and can potentially commit to 37.5 hrs a week for a few months please drop me a line. Remote work is also possible for the right candidate. You will be required to take a sitemap, .ai visuals and bring it all alive. Keywords HTML, CSS, jQuery and PHP. Ideally you need to have built at least 5 PW sites with different features and capabilities. If this sounds like you please say hi. Kind regards, Hasan Akyol hasan dot akyol at andesign dot co dot uk
    4 points
  3. I've not been keeping up to date with the forums recently due to work, but couldn't see a topic about patting ryan on the back for the awesome work he's done on the new modules section layout: http://modules.processwire.com/ Amazing job ryan - it looks fantastic!
    3 points
  4. Hey, I'm planning to do a Interrail trip through Europe in July. The trip will (hopefully) look like this: Berlin -> Amsterdam -> Paris -> Bordeaux -> (Madrid) -> Lissabon/Porto -> Wien/Vienne -> Berlin Now I have to look for some places to stay and I thought maybe here are some people who live in the cities mentioned above or next to them and maybe have a idea where to stay for 2-3 nights per city... (Like for example I saw that diogo is living in Porto so it would be lovely to maybe meet you and say hi or stuff like this ) Would be really, really lovely if someone here could support me here! Much love to processwire community <3 Nico Btw.: The website isn't ready but running with PW of course: http://interrail.nico.is
    2 points
  5. I'd like to set up a site that showcases projects built with ProcessWire. As an full-time independent developer, I'm hoping a site like this will promote ProcessWire and help persuade clients into using ProcessWire for future projects. My current favorite inspirational showcase site is http://www.siteinspire.com/ With that being said, I have a few questions for the ProcessWire community: 1. Is this a good or bad idea? Has anyone already started something similar? 2. Does this step on Ryan's or the official ProcessWire site's toes? 3. Would you submit your projects to a site that isn't officially maintained by Ryan? 4. I've purchased several possible domains. Is there one you prefer more than the others? builtwithprocess.com builtwithprocesswire.com madewithprocess.com madewithprocesswire.com 5. If you think this is a good idea, what features would you like to see on the site?
    2 points
  6. Create your own profile and use that as a start?
    2 points
  7. Maybe the default templates could be an optional part of the setup process. Perhaps an advanced options area to turn off their creation?
    2 points
  8. Thanks Diogo! Seems to work very well. I've added to the source and will test locally for a day or two, then push it to the dev branch.
    2 points
  9. This sounds like a good solution to me. I can see this being useful. Though I'd probably want to make any relative paths relative to the /site/templates/ dir, just to prevent any ambiguity about the starting point.
    2 points
  10. Maybe we don't need to complicate. Since a new page will open, we don't need to prevent the click action because it won't be seen. I did this change on ProcessPageList.js and it works pretty well: //line: 403 $("a.PageListPage", $ul).click(clickChild) .dblclick(function(){ window.open($(this).siblings('ul').find('li.PageListActionEdit a').attr('href'), "_self"); });
    2 points
  11. Wanted to add: Maybe the best way is to install Language Support (not installed by default) and use translation feature of PW to change the label of the name field. Even if you don't need language support it would allow you to do it with few clicks and have it localized even. If you only need one language you could use the default language and create a new translation. Enter the file name you want to translate/modify The file that makes the page name field is /wire/modules/Inputfield/InputfieldPageName/InputfieldPageName.module Once created you can see some fields to enter, look for "name", enter your text and save. Done.
    2 points
  12. Raymond - it's been several years since I actually laughed til I cried. Thank you, I was also on the verge of wetting myself.
    2 points
  13. If you create a new child page, which can have multiple templates, the creating page process can't know which template you gonna choose. So it doesn't work the way you doing. Also in this case it wouldn't make sense as you don't know which template context should be displayed. BUT if you have a setup where the parent page template only allows for 1 particular child template (under Family settings of parent template) it does take that template for the page creation step and you'll see the title in context. The "name" field is built-in and a special field you can't change within fields setup. But you can have a simple autoload module that renames the label to what you like. Although I think it's not an issue to have it "name", I understand people want to name it different. A module like the HelloWorld.module, can be used as a starting point, with as hook and a function // in init() method add a hook $this->addHookAfter("InputfieldPageName::render", $this, "hookPageName"); and add a function below with this: public function hookPageName(HookEvent $event){ $field = $event->object; $field->label = "URL segment"; }
    2 points
  14. Hey everyone. I've created another screencast for a ProcessWire site I developed. Another you ask? My first one was of my own site, here. I developed this website for a Toronto-based opera singer from Norway. Nils needed a website where clients could go to learn about him, listen to his music, watch his videos, look at pictures and see where he'll be performing. The website features custom Responsive Design and a separate mobile image gallery for phones and devices. Read about the project and see some screenshots here, visit the website here, or view the . The admin theme used is a modified version of an older version of the Teflon admin theme.
    1 point
  15. Yeah this should work. I figured out how you could add a image and get resized with the InputfieldImage you have. Having this as setting $field->maxWidth = 100; $field->maxHeight = 100; Then when adding the image to page field: // create new page image first $img = new PageImage($uploadpage->images, $upload_path . $file); // add it to page as usual $uploadpage->images->add($img); // trigger the image max size sizing $form->get("images")->fileAdded($img);
    1 point
  16. Mr.Diogo I upload our new menu to page. Marilya have photo here but not after hours. If you like you send me private. Mr. Day kindly please see attach menu and if this something you can use for site design. Thanks you, Roderigo Sosa
    1 point
  17. Ahh, if you use the InputfieldImage/-File to upload it won't be like a field you have on a page, you only have the Inputfield and use it to "upload" files. In this case it's not doing anything because those particular actions are triggered when an image is added to a page. So since you add the image to a page at the end, you'd have to set the max size there of course. Once you add it to the page it will resize. Or you could do it using API after submit and before you attach the image to a page image.
    1 point
  18. Hey, I'm a huge fan of siteinspire, too! And I guess http://showcase.processwire.com would be nice, wouldn't it?
    1 point
  19. Do you think it would make sense for the render() method to also accept a second argument: an array of values to pass to the template of the sub Page? As explained, I'm really not keen on adding transient values to Page objects - which would be (and currently is) the only other way to pass options to sub-templates...
    1 point
  20. because of variable scope. The problem is not the get() method, but the variable $modules. You could pass it as a parameter of your functions, or use the equivalent wire('modules') instead, since functions are not affected by scope: $str .= wire('modules')->get( "ShoppingCart" )->renderPrice( $product->sc_price );
    1 point
  21. Maybe remove the code in the first post and link to a working code at least.
    1 point
  22. I have to agree with Soma here. There are several working versions already. Rather than introduce yet another example, it seems like we should just wrap up the discussion with links to the already provided working examples.
    1 point
  23. I posted 3 or was it 4 examples codes that work already, so what is the deal ? Spent lots of hours btw...
    1 point
  24. Repeater fields don't have this as a configuration option at present. So enforce your limit from the API side. Here are two ways you could do it (the first would technically be a little more efficient): foreach($page->list->slice(0,3) as $item) { ... } foreach($page->list->find("limit=3") as $item) { ... }
    1 point
  25. Greetings, Excellent! Now we need to put a similar effort together for those of us in the US. After all, ProcessWire originated here! Or maybe Nico could include a cruise across the Atlantic in his Interrail planning? Thanks, Matthew
    1 point
  26. Right now I don't have an idea of when it will happen as making this wasn't in my plans, but I might dedicate some hours to this next week to finish. If I'm not wrong, this only searches for the binary data on the clipboard and uploads it as a file. So that must depend on how the application puts the data on the clipboard.
    1 point
  27. n0sleeves, The reason the link from the logo always goes to the current page is because the href is blank. Have a look at the HTML source of rendered pages. This is what appears in your source code. <a href=""><div id="logo" class="center"><img src="/site/assets/images/logo2.png"></div></a> So firstly you have the href inside the div tags - this is not valid HTML as it is. Something like this should do what you want. <div id="logo" class="center"><a href="<?php echo $config->urls->root; ?>"><img src="/site/assets/images/logo2.png"></a></div> Or you could quite easily just go with: <div id="logo" class="center"><a href="/"><img src="/site/assets/images/logo2.png"></a></div> since it is to the root. Using $config->urls->root is useful as a starting point to build onto when making a URL to a lower level, but for root I think it is probably superfluous. Hope that helps.
    1 point
  28. You can't do this just out of the box but with a autoload module you could easily accomplish this. Also there's useful needed features in there for an editor. Why is this a problem? It may not necessary in most cases... In PW, almost all of these things can be changed modified using hooks on what builds them in the admin. So if you really want to do it, the best way would be through a module like the /site/modules/HelloWorld.module It shows some example of hooks and is worth a look and have a play anyway. This following module hides the InputfieldWrapper "Who can access this page"? in the settings tab for user having a role "editor". <?php class AdminHelperHooks extends WireData implements Module { public static function getModuleInfo() { return array( 'title' => 'My Admin Helper Hooks', 'version' => 1, 'singular' => true, 'autoload' => true ); } public function init() { // add hook to the page edit module and the method that creates the wanted fieldset $this->addHookAfter('ProcessPageEdit::buildFormRoles', $this, "removeSettings"); } function removeSettings(HookEvent $event){ // check what role the user has, if not has editor role do nothing if(!wire("user")->hasRole("editor")) return; // $event->return being the inputfield wrapper $wrapper = $event->return; // set the inputfield wrapper to hidden $wrapper->collapsed = Inputfield::collapsedHidden; // we're done } } Create a new file AdminHelperHooks.module with this code in a new folder /site/modules/AdminHelperHooks/ Install and test with editor user.
    1 point
  29. Great template Nikola, just what I was after. I've found a small error in the css which was flagged up earlier by MadyMyDay. The column width feature of PW wasn't working which left me scratching my head. I've traced it back to the following missing styles in your ui.css file. .InputfieldForm .Inputfields > .InputfieldColumnWidth { clear: none; float: left; margin-left: 1%; margin-top: 0; } .InputfieldForm .Inputfields .InputfieldColumnWidthFirst, .InputfieldForm .Inputfields .InputfieldColumnWidth + .InputfieldSubmit { clear: both; margin-left: 0; } I added them in and everything works as expected now.
    1 point
  30. Thanks Joss, you gave me some good ideas there to work with. I prefer to keep css and js inside the db instead of external files so I can edit them inside PW. While I was surfing the forum with google I found this also: http://processwire.com/talk/topic/2782-template-design-better-route/
    1 point
  31. Unless I have missed something , you could start with a repeater field. For instance it could have two fields - Field A and Field B (or however many fields make up each line of information). You can then loop through the fields with a foreach foreach($page->myrepeaterfield as $listitem){ echo "<li>{$listitem->field_A}</li>"; } That would get you one long list. However, if you wanted to get it into two columns, you could count how many items there are in the repeater field and divide that by two to get a number (making sure there are no decimals). You could then get the first X number of records and loop through them in one UL, and then get the rest of the records and loop through them to do the second UL. I am not totally sure how to do that, but I doubt it is very complicated.
    1 point
  32. thanks raymond.. before got me in stitches ...watching again
    1 point
  33. Once again I have to take my hat off. Many thanks guys.
    1 point
  34. I've sorted it out. The problem was with the array wrongly set up. It pulled page references that weren't needed at all. I wrapped it all up in a single function and automated categories and subcategories pulling with custom selectors for articles and it works fast and smooth Thanks for your help guys!
    1 point
  35. Ryan, thanks for the answer. I've successfully updated the site from 2.2 to 2.3. It has lot's of articles (1000k+) and other pages including various page references. I've optimized the code through functions, solved some things that troubled me before with URL segments. The system has rewrite functionality for article URL's (I'm prepending categories and subcategories to article URL's and articles reside in one parent page) and so on... All seems to work well, and faster then before
    1 point
  36. Just a note to anyone relying on w3schools tutorials, take a look at http://w3fools.com/ first.
    1 point
  37. Dear Ryan, My four children can't even relate to the concept of a "BBS". "BB What? Does that come on the new Galaxy phone? Huh?" But just wait. Their children will say, "What do you mean, 'cell-phone?' You mean you don't have a wall in your house that turns into a 3-D viewscreen for phone calls, that makes it look like the other person is sitting in the room with you? How quaint." Peter Dear Ryan, Oh; and thanks for the stats about the millions of pages. I'm *very* encouraged about PW! Peter
    1 point
  38. Dear Ryan, You're very welcome. Thanks for making ProcessWire! It may indeed be my replacement for MODX. Peter
    1 point
  39. That was the problem. It's working great now! thanks.
    1 point
  40. The Beach Boys before and after Processwire Before: After: https://www.youtube.com/watch?v=9kg-pYItaj8
    1 point
  41. Do you extend Process? class ProcessYoutube extends Process { //... }
    1 point
  42. Great - I will update the code soon, thanks Ryan and Muffin! Big thanks to Marty Walker, who paid and open sourced this module.
    1 point
  43. Thank you Ryan! Now it works online just as on my local mamp server. (And when i updated the code locally to Ryans it still works locally. ) There is my confirm Apeisa. Apeisa and co workers, thanks again this sweet plugin is perfect for me and my coming projects. Donation will arrive as I get paid. /M
    1 point
  44. diogo's code means we could have it delete the site on triple-clicks though and destroy the world on quadruple clicks with just a few adjustments
    1 point
  45. Here is a screencast to show this functionality for those who arre curious but can't or don't want to test: This is my first screencast ever
    1 point
  46. Ok, I've bought the ProCache module (developer version) and it's working great with Nginx! I'm willing to share my Nginx configuration directives for other people if that's okay with you Ryan?
    1 point
  47. Excited to try this new editor, thanks Ryan, apesia et al who have made it so. One question, does anyone know if out of the box it has keyboard shortcuts for H2, H3, P etc (as TinyMCE does (I think))? Edit: OK, so Alt+F10 allows you to access the menu and then cursor/enter to choose a tag (H2 etc). That's a good start.
    1 point
  48. A resized image can't be sent back to the field to replace the image it was resized from. That's because it has a filename reflecting it's resize properties, and so it's considered a variation rather than a source image. Most likely your resized image was created and on the file system, but PW saw the source image and stuck with it. There isn't really any reason to replace a source image with a size variation here, because your size variation will be cached. It won't literally create it every time. But your code as it exists now will execute a page save every time. So you would be much better off just doing this in your template code: $photo = $entry->photo; $options = array('upscaling'=>true,'cropping'=>false,'quality'=>80); if($photo->width > $photo->height) { $photo = $photo->size(410,0,$options); } else { $photo = $photo->size(0,410,$options); } // the above only created a new image the first time it was run // so it's perfectly efficient to leave it there. // $photo is ready to use echo "<img src='$photo->url' alt='$photo->description' />"; Also, if you want to set max dimensions for an uploaded image, then you can set this from the image field's settings.
    1 point
  49. Hi Harm, try to develop the habit of always putting the constant first in statements like this... if('inactive' == $u->user_status) ... Then if you miss out an '=' sign PHP will shout at you about it.
    1 point
×
×
  • Create New...