Jump to content

apeisa

Moderators
  • Posts

    4,632
  • Joined

  • Last visited

  • Days Won

    55

Everything posted by apeisa

  1. I'd like to see it somewhere top right. That's where I always go to look for "view site" link. Probably because adminbar has admin link there
  2. Oh yes, now it works like a charm! Thanks Soma.
  3. I have similar need, but I am going with simpler template based approach: I check for dates and redirect to "Page not available" page if article is not published (and you don't have edit access). Only drawback here is that you have to remember to check those dates also when doing lists and searches. Normally that is not a problem, since I use same functions every time.
  4. I assume that side_panel is your page-field. Coding depends little bit if it allows multiple values or not, but here are examples for both: Multiple: <?php if($page->side_panel) { foreach($page->side_panel as $p) { echo "<p>{$p->title}</p>"; } } Single: <?php if($page->side_panel) { echo "<p>{$page->side_panel->title}</p>"; } ?> Written in browser, so there might be some details wrong.. EDIT: As you can see it is much simpler than what you have tried earlier. When you learn this, then only sky is the limit with ProcessWire
  5. I think it is way too lousy at the moment. If I write "config" it shows almost everything. But I don't see that much of a problem. For my taste chrome search (ctrl + f) works just fine, since it highlights all the results. My only gripe is how the description goes over the title. I would prefer if it would fold open and show description under the title. Also I would like to "open" many items at the same time (and also "open all" from certain category). These are just ideas and details - I have found this super helpful already!
  6. I think problem with quicksilver is that it tries to correct typos. That is usually desirable, but here I don't think so. Coders like to be exact
  7. Some: how does filtering works or how you are planning to do it? If I write "field" it leaves quite a lot stuff visible which have nothing to do with fields..? BTW: I have some late night coding ahead and will give good test for this!
  8. Very much like that. I have common includes (/templates/includes/common.inc) where I keep my most used functions (ie. renderList, renderItem) which can be used with almost any kind of content (blog posts, news, events etc..). I have some more spesific functions also (like renderCalendar etc) which require some spesific kind of content (like event here). I currently keep them in same file, but I might put those as separate file (like events.inc).
  9. Soma: probably, but I don't know. Never used myself, but thought that it would be perfect here.
  10. Monospace isn't actual font, just a common name for fixed width fonts. http://en.wikipedia.org/wiki/Monospaced_font Btw you might wanna serve this also through github, see http://pages.github.com/
  11. Wow! Very useful and great addition to normal docs. Thanks Soma!
  12. I am using this on lukio.fi site and it works nicely. I have not looked into codebase in a long time, but if you guys want to use this and run into any problems, I will definitely help you and improve this module.
  13. Thanks Ryan. I will take your latter example and experiment with it. It makes sense already and I hopefully can take it and turn into configurable module.
  14. Here is EE multiple site module: http://expressionengine.com/downloads/details/multiple_site_manager and their domain documentation: http://expressionengine.com/user_guide/cp/sites/domainsetup.html EDIT: Not looking for anything that complicated, just a way to serve one section of a site from own domain.
  15. Not sure what would be best way to handle this. I think this would require some .htaccess magic.
  16. Is there any way to run multiple sites from one install? Meaning you have one pw-site, let's say www.domain.com. There you have "campaign site" called www.domain.com/campaign/. All good so far. But what if pages from www.domain.com/campaign/ should be found from www.campaign.com? Is that currently possible or would it require new pw-installation?
  17. Probably yes. That way we could do more efficient searches based on location. Find all places within 5km from this point etc.
  18. I changed my setlocale to this: setlocale(LC_TIME, 'fi_FI.UTF-8'); And everything works fine. EDIT: I did hijacked this topic, sorry for that Rob. Ryan - thanks for your help and great module. I really like this (implemented already for our site-profile) and will be great example for future modules.
  19. Ah, that is it. It saves it to database with comma. I have this on my config.php: setlocale(LC_ALL, array('fi_FI.UTF-8','fi_FI@euro','fi_FI','finnish')); If I remove it, then it works fine. I had no idea that it would affect floats also (makes sense though). I am setting locale for everything, but I think it would be enough for just date and times.
  20. Now it works - but on admin UI it leaves lat and lng empty for some reason. This is the notice it gives after saving: Geocode OK ROOFTOP: '8300 Riding Ridge Place, McLean, VA 22102' But both Latitude and Longitude remains empty on UI. When I look into the db it has correct values.
  21. All addresses. This "8300 Riding Ridge Place, McLean, VA 22102" turns to: 38 / -77 (and six zeros). Precision setting is 14 in php, not sure what/where I should look from MySQL?
  22. This is very interesting topic. I would love to see textformatter, which would take many of the most popular services (youtube, vimeo, slideshare etc) and do something similar than here.
  23. Ryan, are you trying to hide new modules from us? I don't want to hijack this conversation (you should post release topic!), quickly tested this Map Marker and it works fantastic. Only one minor thing: it converted lat and lng to integers (or integer floats: 60.000000 / 25.000000).
  24. Nico congratulations! This sounds great and very useful. Will try this soon!
  25. Hi Biscuit and welcome to the forums. I agree. Hope someone finds time and writes simple tutorial from start to the end. I might have time at Christmas time, but I cannot promise. I consider this as a very important thing. This is actually the place where PW differs most from many other CMS out there. In short: most of the modules aren't something that you install and tell where to show up. You don't install "image gallery" module and after that go to edit something in admin page and tell where to put image galleries. In pw you create template (or probably two) called "gallery". Then you add there the fields you want - ie. title, summary, images. After that you create corresponding template file, called gallery.php (goes into /site/template/ folder) and there you code how you want your fields to show up. Thanks. Always feel free to ask anything here!
×
×
  • Create New...