Jump to content

Soma

Moderators
  • Posts

    6,798
  • Joined

  • Last visited

  • Days Won

    158

Everything posted by Soma

  1. I think it should also be trashed. That's just the most common. But thinking about it, what would be if: "I only want to remove this mapped page from this lang tree AND not on other language tree". It would require to delete all and recreate all the others... not good. So it should at least be possible to "flag" if this page is mapped or not. I think it should be forbidden to move synced page to unmapped ones as parent. If parent is unmapped, all childs must be. You mean a "$lang" var for use in templates, I think ISO-codes 2 digit be the way to go...
  2. Looks ok. But this alone doesn't help much, I still can't reproduce. Not sure if something like $wallmessage->setOutputFormatting(false) could help here?
  3. I can't reproduce this. It does work for me as expected. Do you have more details on your DB charset setup and more code of what else is there? What PW version?
  4. I tried something that should do what you want. Although it depends what you want to archive exactly, there are alternative ways/technics that would work in PW21. <?php $pagetags = explode(',',$page->tags); $tagstring = implode('|',$pagetags); $tagstring = substr($tagstring,0,strlen($tagstring)); echo $tagstring.'<br/>'; $related = $pages->find("template=page, tags~=$tagstring"); echo '<ul>'; foreach($related as $item){ if($item !== $page){ echo "<li><a href='{$item->url}'>{$item->title}</a> (RelatedPageTags: {$item->tags})</li>"; } } echo '</ul>'; You may need to further limit the $pages->find by using more selectors and a limit etc, depending on how many pages there are.
  5. Just attached the working latest version 2. See first post. - works for all inputfiledtypes - works for tinymce - works for sortable fields - should be crossbrowser save, although not really tested yet other than latest safari, chrome, firefox Tried to attach the same hook also to "template/edit?id=" and "field/edit?id=" pages, but js didn't get included. I can manage when using Page::render, the js gets attached as the first js, even before jquery core. So it wouldn't work, thats why I chosed Process::execute. Is that right, that I might should use str_replace version to add js on bottom of js list?
  6. Thanks Ryan for the help. I think this would be nice feature to have implemented by default somehow as installed module(?). Hehe apeisa, seems so... Just updated this module, and attached new version to first post. I recognized that I messed up something and wouldn't work as intended. Also updated check for sortable changes.
  7. It happens with all sizes, but the strange thing is that it sometimes worked and most of the time not. Just resizing page to very small it fixes it. Don't know if it has to do with the images size or the size of fancybox..
  8. Implemented the suggested changes. It's working good so far. Attached new version to first post.
  9. Form Save Reminder Module To prevent losing unsaved changes when editing a Page: This module checks for changes while editing a page, and throws a confirm dialog when leaving the page without saving. More Infos and download this module: http://modules.proce...-save-reminder/
  10. Thank you Ryan for taking the time to look at it, amazing suggestions with code examples, haven't really considered these things yet! That all makes sense. Thank you a bunch. But, it's actually my second module see here http://processwire.com/talk/index.php/topic,435.0.html ;D
  11. Thanks Ryan. Got a new version with the gear icon added to make it a little more sexy...
  12. You can drop files (multiple too, cool didn't know, but I'm not using safari anyway) onto the file select button. It doesn't upload immediately, have to press save. Why don't you install safari for windows and try?
  13. HelperFieldLinks Just got a new module working that is only visible to superusers, and is handy for when developing a site, or investigate someone elses. 1. It adds a shortcut link to all fields on page in the backend. The link name equals the field name, so on very large complex sites with lots of fields, it can help to quickly see what name the field has. 2. It also adds a shortcut to the used template (in the template select field under "Settings" tab). They appear on bottom right corner of the field. Any suggestions for a better module name and general feedback is welcome. ProcessWire Modules Directory: http://modules.proce...er-field-links/ Direct github download: https://github.com/s...elperFieldLinks
  14. Think I found the issue. It has somehow to do with the size of the dialog window and or not the size of the images. If I resize page to small in chrome it suddenly works again because dialog is opened much bigger relatively.... not sure if that makes sense but because im on 13" laptop 1280px... annoying bug you... go away!
  15. Yes I did, but no luck... got 13.0.782.220 Awesome, congrats apeisa! and ryan! Great work guys!
  16. Sorry for the double post. Ok this gets kinda weird, but It worked for me only one time with as smaller image... but after the second try it didn't even with smaller images. Attached a screenshot, the iframe that loads has the selected image div which is empty ... height:0 ... does it get loaded by ajax into it? and replace those "..."? I can't se any errors or anything, might be some kind of chrome bug, cause just tried and it works in safari, can't test on firefox because he hangs himself up everytime I open him And forget about the 50%! Stupid idea...
  17. Yes the images fit the fancybox width, but if having really large images it gets slow, would be cool to have like 50% though it's may just because I'm on 13" mbp... aaand also the images max width height setting isn't set on those, that would not be the case in a real site. It's strange after I select the image it disapears... always, I noticed this already sometimes before, I will check out more to may find the real issue. It could be the large imagesize, I developed similar thing in my admin apps and also experience some strange trikcy behavior with fancybox modals and images vs js css etc. I understand your point and agree in that it should not blur that too much, though having some king of simple ui response notification that makes it clear, like you already have on page tree list move actions, well it is in a kinda different context. But still I agree that it need attention in the ui interaction design
  18. that kinda was what I was asking for here http://processwire.com/talk/index.php/topic,465.0.html I already was this far to have the right hook on inputfields and all but missed the obvious, that playing with str_replace I replaced itself each recursion... was late night. Thanks for the example that helped and made some things clearer.
  19. ...just one word. Orgasmitastic! Just installed and it's beautiful to watch, uploading 20 6mg images and see them process.... One minor problem though to be almost perfect: sorting after images are uploaded doesn't work nor doesn't fancybox. After refreshing page it works. EDIT: Well sorting works for newly uploaded images if there IS already images saved there in first place. But fancybox still doesn't work for the newly added. EDIT: Sorry for being so picky. But I would expect that when instantly adding images this way that the sorting alos gets saved per ajax instantly. It doesn't though. While playing around I tried add images in tinymce, and it shows full size images among to select which is hard to see them. After selecting one it disapears and I can't resize it. I'm using chrome latest on osx.
  20. Thanks for the heads up. I see, I tried creating a role with that name "processpagesearch", and now I can see and use the search. But now I spoted some more issues on search page 1. Searching doesn't return result but should... there's a page with this title: ProcessPageSearch: Found 0 pages using selector: title|body~=about 2. In search results sorting the "created" field by clicking on the toprow label, does either not work or only work one way and not toggle.
  21. After creating a editor role to only view and edit pages, when I log in with a user having this role I can't see the admin search on top right. Is this a bug?
  22. I agree with that it needs some sort of shortcuts to delete and do tasks like publish and unpublish, and have a mode to select pages to via checkboxes and perform a certain status operation. Not only handy for developers (which are also users) but for end users too. Through API is of course the most flexible and powerful one as with all. IMO the drag and drop is nice but not always suitable and can be cumbersome for some people to use in cases when they use pad, small screen, there's lots of pages in the tree, handycaped etc. and the trash is all the way down and mistakes are made easily.
  23. So far it's not throwing an error when upload max size is exceeded. It just shows 100%. It would be nice, if it's possible to validate before upload starts, and after it's uploaded showing the preview. I don't know if I like the instant preview before the image is even uploaded or validated, it could suggest it's valid and already "there". IMO this is one of the problems with oldcool uploading, after 30 second of uploading a file, it says not valid or too big...
  24. Just intalled it and it works great so far! Now if we could only see the thumbs after upload is done.
×
×
  • Create New...