Jump to content

Soma

Moderators
  • Posts

    6,805
  • Joined

  • Last visited

  • Days Won

    159

Everything posted by Soma

  1. The best way would be tu use a page field with autocomplete. Like you can have a lost of drink and add one directly from autocomplete search.
  2. It means you get no empty drinks... Buahh
  3. There's also a "lock page" page settings. And a permission for setting the lock.
  4. You can' specify multiple roots, but you can exclude children. $options = array("selector"=>"id!=1003|1004"); echo $navTree->render($options); So the pages with those id's wont be rendered. Or you could add a checkbox custom field to the templates to only include them if checked from the navigation. $options = array("selector"=>"show_in_menu=1"); echo $navTree->render($options);
  5. You can set your own hotkey is the modules settings. I know windows uses ctrl+s is, so you have to use something else. It's not easy to decide easy hotkeys that work on all platforms and browsers so it is configurable, backdraw is ideally it would also need to be configured per user and not as simple to do as it is now. It's appreciated if someone likes to take the challenge, I'm happy to collaborate.
  6. Adding the style to valid elements solves the problem to not get stripped of in tinymce. Works fine here and I use it all the time. When I remove the style from valid elements tinymce strips the inline style when viewing source thus also on save even though the text is aligned when clicking align button.
  7. You cant put php files in templates folder and directly call them via url. You have to put it in root somwhere else. Its blocked by htaccess.
  8. I knew it but just wanted to leave some room for improvement so you guys also have something to write.
  9. It has been fixed. As by this thread you can see we decided to turn off the top save buttons in all IE. Since it's only a cloned button using jquery there is a $.browser.msie check in the main.js that prevent the button from cloning. I just tested in IE and the top save button doesn't show, which is correct. Maybe you can provide more infos to find out why it's still showing in your case? I guess you use an admin theme that is older or a PW version that is older.
  10. foreach($ides as $id) { echo $pages->get($id); }
  11. http://processwire.com/talk/topic/573-top-save-page-button-dont-work/
  12. @adrian, I'm sorry for this I just tested and installed Thumbnails using MudolesManager () and it workd fine first time. Is it working second time with ModulesManager or do you install it manually? Not sure what was causing it, maybe it was a corrupted download or zip extract. Can you reproduce it everytime on different servers? Is it only this modules or also others? ModulesManager is trying to show some errors if something didn't work, but sure not all scenarios. If you can get more information by enabling debug mode or see if any errors got logged? Or try to see if there's a difference in the files from the one you would install manually when it's crashing. I also happend to have some problems with permissions on servers that are not configured well on a cheap hosting.
  13. Looking at the screen it must be a multiple images field. In that case it's an array and you have to either change it to max 1 image int he field setting or chose the first from the array: <?php $image = $page->logo_image->first->size(287,80); echo "<img class='logo' src='{$image->url}' alt='{$image->description}' />"; ?> Ah didn't read careful.. This is also possible I think: <?php echo "<a href='{$config->urls->root}'><h1><img class='logo' src='{$page->logo_image->size(287,80)->url}' alt='{$image->description}' /></h1></a>";?>
  14. You just have to add to the controls ,justifyleft,justifycenter,justifyright,justifyfull And to the valid elements add the "style" since it uses <p style="text-align:right"> .. or the style will get stripped out @[id|class|rel|style]...
  15. Hey Macrura, thanks. No I didn't knew flattr...
  16. Lol love that analogy. Either way you can end up with a problem. SInce finally you decide which one you think makes most sense. I understand if one wants or needs this feature and I added a option to enable hard lock. Pushed an update 1.0.1 to github now. - added option to enable hard lock - made alert message translatable https://github.com/somatonic/PageEditSoftLock
  17. The only table in PW that is ascii_general_ci is the password table and the "name" fields in tables. There's nothing else evident. The strange thing is there's no find code in all of the templates except the search. (Yes this is possible ). $matches = $pages->get("/".$langpath ."/")->find("title|body|headline1|headline2%=$q, limit=50"); The path exists yes, but I can't make up what call is causing it because it looks like it failing on maybe some char in url or when someone did a search with strange characters? The last stackstrace is Database 118 is when a result is empty. Also the first line is what makes it hard to find at least what page it occoured. Or is that the homepage? Page: http://somedomain.fr/?/ User: guest
  18. Could do it with js. The problem is what to use as the segment names? And if using something like h4 once you change a letter the url going to change. So it would be maybe make sense to use repeaters? Or using some inline tags defined to better control it splitting the text.
  19. Thanks Dave, no there's no language or modules with other collation. It would then also happen more often.
  20. I think it's ok to use on production, after all it just downloads and replaces the module. Same as you would do it manually. So with or without ModulesManager you first want to update modules in a dev envoirenment, and then push it to production if it's ok. So to asnwer your question: Just replace the module folder with the new version. Unless the module states something that you have to deinstall and reinstall cause there could be something changed that needs to be installed. Otherwise most of the updates are just replacements save.
  21. I got this error on a website a couple times, I've never seen anything like that ever. Since the error isn't really helpful to reproduce it, I'm lost to why and where this did happen. I guess it's the search function as it happened severeal times in a row for couple hour. Page: http://somedomain.fr/?/ User: guest Error Uncaught exception 'WireDatabaseException' with message 'Illegal mix of collations (ascii_general_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='' in /var/www/domains/processwire/latest/wire/core/Database.php:118 Stack trace: #0 /var/www/domains/processwire/latest/wire/core/DatabaseQuery.php(84): Database->query(Object(DatabaseQuerySelect)) #1 /var/www/domains/processwire/latest/wire/core/PageFinder.php(145): DatabaseQuery->execute() #2 /var/www/domains/processwire/latest/wire/core/Pages.php(144): PageFinder->find(Object(Selectors), Array) #3 [internal function]: Pages->___find('/fr-fr/rapport_...', Array) #4 /var/www/domains/processwire/latest/wire/core/Wire.php(271): call_user_func_array(Array, Array) #5 /var/www/domains/processwire/latest/wire/core/Wire.php(229): Wire->runHooks('find', Array) #6 [internal function]: Wire->__call('find', Array) #7 /var/www/domains/processwire/latest/wire/core/Pages.php(213): Pages->find('/fr-fr/rapport_...', Array) #8 /var/www/domains/processwire/latest/wire/ (line 118 of /var/www/domains/processwire/latest/wire/core/Database.php)
  22. Soma

    Gui for git

    I use this:
  23. Yes it does if you remove the disabled...
  24. This does work: $("#Inputfield_roles_37").prop({ checked: "checked", disabled: "disabled" });
  25. Hi Peter I don't know really how hard a hard lock in a soft lock module is. The reason to only have a soft lock is clear, and hard locks can get a burden if someone lock a page by having the page open. I think it's possible, but have to think about some time. It would be as you suggest and option you need to enable. But then also the Module name doesn't fit anymore.
×
×
  • Create New...