Jump to content

SiNNuT

PW-Moderators
  • Posts

    1,011
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by SiNNuT

  1. If WillyC's suggestion is a viable solution and applicable for more use cases it would be great if stuff like this is documented outside of the forum. I, and i'm sure more people would have a hard time figuring this stuff out.
  2. I nominated PW for the first four categories and as a bonus was reminded why i really hate (re)Captchas
  3. Have a look at the code in the file head.inc that is in the templates directory: <div class='sidebar_item'> <?php // if the current page has a populated 'sidebar' field, then print it, // otherwise print the sidebar from the homepage if($page->sidebar) echo $page->sidebar; else echo $homepage->sidebar; ?> </div> </div><!--/sidebar--> head.inc is included by the basic-page.php template file. <?php /** * Page template * */ include("./head.inc"); echo $page->body; include("./foot.inc"); You can: a) copy and paste the contents of head.inc into a new file. Delete the sidebar code i showed above and save it to head_noside.inc or whatever you like. Afer that change basic-page.php contents to include("./head_noside.inc"); Be aware, keep the other code in there the same. b) Make some logic in head.inc to not output the sidebar if the page template is basic-page.php. c) alot of other options
  4. OT @ Martijn It's apples and/to oranges in English.
  5. Hi Tim, I'm curious. Are you looking to become a 'programmer' who does sites and apps to make money? Or is it non-paid/hobby/personal projects. If you don't have any experience yet with cms'es i would just install ProcessWire and WordPress alongside eachother and experiment with both. It's good to have different tools in your toolbelt. Different projects have different requirements and while imho ProcessWire is one of the best, if not the best, allround PHP cms around, there can be situations where it would be better to choose a different solution. If you would want to setup your own social networking site maybe you'd choose BuddyPress.org. Or for some eCommerce website maybe you would want to use lemonstand.com/ Anyways, once you get going with PW i'm sure you will be addicted in no-time. I also want to mention the Blog Profile, you can learn alot by installing it, see how the fields and templates work together in the admin and after that look at the code in the templates directory.
  6. I was writing a reply yesterday when StopDaddy interfered. You now have all the info you need. but i'll post it anyways. Be sure to read. I'm assuming that the field is of the type 'textarea' without TinyMCE. This does not actually create html <p> tags. So if you hit 'enter' two times when editing the field contents it visually looks like a paragraph but it are in fact two newline characters. Newline characters are stored in the database but don't do anything visually when you echo it on the "web". Wanze's suggestions works. There even is a text formatter already for that. In the PW admin go to "Modules". Scroll to the Textformatter section and install the "Newlines to XHTML Line Breaks" module. Now go to Setup->Fields. In the fields table look for the relevant textarea field. Click on it. Go to the details tab and choose aforementioned Text Formatter. If you now look at "The Web" it should all be good. If all of this doesn't make sense to you or if your problem is somehow different you should read up on html and learn your tool (PW). and/or Provide us with a more detailed description of your problem and what you have already tried to solve it yourself. Things like looking at the generated html, corresponding CSS etcetera. If i speak for myself but guess most of the forum members: We are more than willing to help, also with basic questions, but some effort on your part is required. ps You should consider using a TinyMCE field because making look-a-like paragraphs generally isn't considered best practice
  7. I love cashew nuts! Thx man
  8. I think you can have german as default by dropping the files into the default language. See and
  9. Not that i'm aware of, and i don't any reason you'd want to have it as a setting in the admin. config.php has a setting you can easily make. $config->timezone = 'Europe/Berlin'; add the setlocale and your ready to go.
  10. let me guess..some browser cache problems there? F5, ctrl+r, ctrl-shift-del, Always the first things to try when i get something unexpected, be it css or js.
  11. No real problems for me (Netherlands) I've seen faster but it's loading ok and definitely not in the 7 seconds range.
  12. Do you want the back-end in German? No? Is it only about displaying localized dates in the front-end? Yes Just disable all multilang support and lang packs and do a setlocale in config.php Without the multilang stuff the setting should work (i use it all the time to make Dutch week and month names.) ps have you read http://processwire.com/api/multi-language-support/ ? It gives good overview.
  13. I haven't done any language packs or multi-lang myself but could you not set the (front end)language in a piece of template code that is included on every page? $user->language = $languages->get("insert_corrrect_lang_name");
  14. Words can't describe how much my bullshit 'o meter goes bananas . Semi-intellectual drama. Really, where do they come up with this stuff.
  15. SiNNuT

    Icon Sets

    Because i use Twitter Bootstrap for some things i'm working on i really like the icon font Font Awesome for web related icons. I guess it can also be used outside of a Bootstrap.
  16. joshuag on a killing spree!
  17. Am i correct that when $this->_("C"); is not defined in a language pack it does not fall back to the default locale? Because totoff said he had setlocale in config.php so PW should pick up on that, but apparently it doesn't? Another thing. I haven't used Language packs and the translator myself and am unfamiliar with it's inner workings but could it be an idea to pass an array to setlocale? This way you can add some common values for a particular language and make it a bit more robust across different platforms (*nix, windows etc.) setlocale(LC_ALL, array('nl_NL', 'nl_NL.UTF8', 'nld_nld'));
  18. This is not a straight answer to your question but if you work a lot with messy data, cleaning and data transformation you could take a look at Google Refine . This is a really powerfull tool and not hard to use. I haven't used it for a while but i think it would be quite easy to transform the data to the format you desire.
  19. Where do you want to do this splitting and ordering? In Excel, PW (programmatically), text editor? Do want something like: name | apples | oranges | plums John | √ | X | √ Peter | X | √ | √ or apples (list of names with apples) John oranges Peter plums John Peter
  20. teppo, what exactly do you mean by HTML wireframing? I kinda do this by working with existing front-end frameworks, like Twitter Bootstrap. It has all the basics, works on most browsers, solid grid including responsive defaults. It's great for quickly putting together an actual working example and build from there.
  21. Up until now i've basically only done simple site conversions which didn't involve any design (on my part). In the near future i've got a couple of projects where i do need to make some layout and design decisions. I was wondering if you guys use any special tools/apps to create wireframes and mockups or just use Photoshop/Illustrator/Inkscape/GIMP/Fireworks. etc. Ofcourse mighty Google shows a lot of results like http://www.balsamiq.com/products/mockups and https://gomockingbird.com/ but i'm interested in your input on this subject.
  22. I guess you're winky says enough but to be clear; ofcourse i wasn't trying to imply anything like that I saw the missing r and the host in Adler street part and i like it. I made the connection because of your post and not the site itself, which is nice. Like the way you've integrated a styled Google map.
  23. intro and installation of PW http://bestproductips.blogspot.nl/2012/09/install-processwire-step-by-step.html
  24. I'm guessing this is a common name in Germany but when i read a reference to Adlerhorst i immediately think of der Führer Headquarters during WWII.
  25. SiNNuT

    Bonetics

    Ok, really nice looking site. Really crazy how IE8 makes such a mess of things.
×
×
  • Create New...