Jump to content

adrian

PW-Moderators
  • Posts

    11,184
  • Joined

  • Last visited

  • Days Won

    372

Everything posted by adrian

  1. Hey diogo - thanks for the clipmenu link - that looks pretty cool - I might be able to retire jumpcut finally An alternative to unarchiver that you might find worth a look is keka (http://www.kekaosx.com/)
  2. Does this do what you are looking for? http://modules.processwire.com/modules/process-redirect-ids/
  3. Hey Ryan - I actually get this is some cases and not others: Not sure why - not a big deal. I thought as much - just thought maybe you could store an array matching values to the variables and replace them on display. Again, no big deal - much more important things to do
  4. You can either foreach through the field: foreach($page->select_field as $selected){ echo $selected->title . '<br />'; } or implode: $page->select_field->implode("<br />", "title"); https://code.google.com/p/jquery-asmselect/issues/detail?id=46
  5. I wish you could extend me - might be preferable to a clone (that would just be scary). Too much work, not enough sleep, don't know what task to tackle next.
  6. You still need to add a ->url after that. At the moment you are referencing the entire article_secondimage. You need to add the url property. Other options include, filename, description, ext etc.
  7. Well you have to remove it from the template, then you can delete the actual field. Not exactly related, but if you want to delete a template - you need to remove it from any pages that have it assigned. The trash will come into play in this case - you'll need to remove the page from the trash before you can delete the template.
  8. And I blindly copied you! Last time I do that
  9. You are looking for: foreach ($settings->music as $piece) { echo "<audio src='$piece->song->url'></audio>"; } There is no "path" for a single file - take a look in the cheatsheet.
  10. Do you have PW installed in a subdirectory of your html/www root? If so, then /site etc won't work either. You really should be using: <link rel="stylesheet" href="<?php echo $config->urls->templates?>/styles/site.css"> like Martijn suggested.
  11. Hi Joe, This is a mysql setting - there is a discussion about it here: https://processwire.com/talk/topic/3426-search-not-returning-3-letter-words/ Obviously that discussion is about PW searches and not forum searches, but it will explain what is going on. Regardless the forum search mechanism is terrible anyway and most of us here use google: site:processwire.com/talk php version
  12. I don't think you have to do anything to activate it. Rob (the developer) doesn't list a support thread for it, so you might try PM'ing him if you are having trouble with it.
  13. I have had similar issues when editing content in different browser tabs. I don't really have an answer for that right now, but if you want to have the page tree remember what was open, there is this module: http://modules.processwire.com/modules/page-edit-fold-status/
  14. Yeah, I don't understand that selector. Maybe it's just too early here, but you can't use "field" in a selector like that. I might well be not understanding, but is this what you are looking for: foreach($pages->find("template=product") as $p){ echo $p->prod_calc_a1; echo $p->prod_calc_a2; echo $p->prod_calc_a3; echo $p->prod_calc_a4; echo $p->prod_calc_a5; echo $p->prod_calc_a6; } or are you trying to limit the find to specific values for each of these fields?
  15. I fixed the mis-matched single/double quote. Weird it's not working for you. Are you using Nik's Selector Test? It won't work in there.
  16. If you want to make it a little cleaner, you can do: $articles = $pages->find("template=articles, parent.status<".Page::statusUnpublished); Now you know when looking back on your code, what status you are looking for. Also, I changed the operator from != to < because the numbers that drive these status values are bitwise and are added to together. This way you could also have hidden applied to the category and it would work as expected, but if you use the != you'll get the articles returned again, because the status value will be the addition of unpublished and hidden. Here are the values: https://github.com/ryancramerdesign/ProcessWire/blob/6cba9c7c34069325ee8bfc87e34e7f1b5005a18e/wire/core/Page.php#L76 Note that 2049 is the addition of statusOn and statusUnpublished. Throw statusHidden in there as well and you end up with 3073.
  17. Hi Jennifer, I don't think anything exists right now, although I have a vague recollection of something along these lines being mentioned somewhere - maybe not? Anyway, I think this could be a useful module. It could be a log file like typical apache etc log files, but then you'd need a way of analyzing them, and also archiving old ones etc. Maybe a custom database table would be a better approach. I think to get the most of it, we'd probably want to build a dashboard in the PW admin that would allow you to visualize the search terms - maybe something as simple as using a tag cloud generation algorithm (I have used this code in the past: http://chir.ag/projects/tagline/), or maybe something more sophisticated/customizable. I'd actually be interested in tackling this module - it shouldn't be very difficult, but I probably won't have the time for a little while at least, but I can definitely see it as a useful addition to a big long term project I have on the go right now.
  18. Quiet mode will help you with the created part: https://processwire.com/talk/topic/5109-page-save-silently/?p=49275 but to set the modified you'll still need to use SQL because as soon as you save the page, modified gets updated again. At least that is my experience. Maybe there is another workaround I haven't thought of. https://processwire.com/talk/topic/651-set-created-by-creating-a-page-via-api/?p=5293
  19. And just because I am procrastinating, if the role doesn't already exit: $newrole = new Role(); $newrole->name= 'frontend-editor'; $newrole->addPermission('guest'); $newrole->addPermission('editor'); //or whatever permissions you need it to have $newrole->save(); $u->addRole('frontend-editor'); $u->save();
  20. This is untested in the context of repeaters, but if you add this to your selector, it should exclude pages in the trash: has_parent!=7
  21. A minor optimization: $page->save("links"); Not sure the real world advantage to this, but this means that you are only saving the links field and not all the other fields on the page.
  22. Hi dees2012 and welcome to PW. Here is a comprehensive writeup from Ryan: https://processwire.com/talk/topic/27-moving-pw-between-staging-and-live-server/?p=63 There are lots of other posts about this: http://bit.ly/1i9iJ3r Hope that helps. Let us know if you have any specific questions.
  23. Hey Marty, I don't actually like the dual pane functionality in XtraFinder, which I why I use Forklift. XtraFinder is really just on my list as a free alternative to deal with Mac's stupid (IMHO) folder/file ordering. I actually think I would literally go insane without Forklift. But if you do want the quasi dual pane thingy in XtraFinder, you have to click on the new face icon in your menu bar and choose vertical or horizontal from there.
  24. Here's a few things to play with - I am a relatively new Mac guy too and the first few keep me sane http://binarynights.com/forklift/ and/or http://www.trankynam.com/xtrafinder/ if you can't stand folders mixed in with files alphabetically) http://hyperdock.bahoom.de/ http://stclairsoft.com/DefaultFolderX/ http://www.alfredapp.com/ http://justgetflux.com/ http://jumpcut.sourceforge.net/ (might be a newer alternative, but I use this all day long) http://www.mirovideoconverter.com/ (not Mac specific, but so convenient and easy) http://www.boastr.net/ http://www.vienna-rss.org/
  25. I guess it doesn't like the #t=134 Too bad you can't pass the start time though. I tried some of the other formats: &t=1m34s etc, but these must get stripped by the forum because they don't work.
×
×
  • Create New...