Jump to content

bernhard

Members
  • Posts

    5,767
  • Joined

  • Last visited

  • Days Won

    274

Everything posted by bernhard

  1. i've implemented something like that today (alpha): https://processwire.com/talk/topic/11810-savebuttonenhanced
  2. ok i found it! the clicks didn't work when i was editing any field, so i added a second click to remove focus from the input // if any field has focus click the button twice if($('input:focus').length > 0) $($(this).data('submit')).click(); $($(this).data('submit')).click(); some other things... i'm not sure how the dropdown is positioned. there is this code: data-at='right bottom+1' i would prefer a left aligned dropdown like in the screenshots in the first post, but sometimes they are on the right side: another issue is when i click on the children tab it is anywhere in the middle: the module can be easily extended with other options - any ideas?
  3. hi rick, thank you. $($(this).data('submit')).click(); should trigger the click on the connected button (can be "publish" or "save without publish" or just "save"). wich button to click is stored in the data attribute called "submit". values are taken from the $actions array: 'buttons' => array('#submit_save', '#submit_save_unpublished') so line 131 gets something like this: $('#submit_publish').click(); at least that is the plan
  4. i really liked the "save + new" and "save + close" button back in my joomla days here is the first version of a module to bring this functionality to processwire. i know there's the save actions module, but that's not exactly what i wanted... module is alpha state https://github.com/BernhardBaumrock/SaveButtonEnhanced i have one problem where i need your help: i want to submit the #ProcessPageEdit form via a jquery click() event: https://github.com/BernhardBaumrock/SaveButtonEnhanced/blob/master/SaveButtonEnhanced.module#L126 but unfortunately that does not submit the form reliably. sometimes it works, sometimes it doesn't. most of the time i need a second click. also i was not able to trigger the click like this: $('body').on('click', '.sbe_action', function() { console.log('clicked a sbe item'); }); it just did nothing does anyone know what is the problem here? would really appreciate it.
  5. cool i think you have a typo in your first codeblock?
  6. i put together a small module for this: https://processwire.com/talk/topic/11805-pagelistselectunselectbutton/
  7. Hello and happy new year to everybody This little module adds an unselect button to PageListSelect. You can define to which PageLists the button is added via module config (CSS selector). it solves this issue: https://processwire.com/talk/topic/9677-unselectclear-button-for-pagelistselect/ https://github.com/BernhardBaumrock/PageListSelectUnselectButton Changelog: v 2.0.0 - added support for ajax loaded fields including repeaters - added sanitization for the jquery selector
  8. does this help? https://processwire.com/talk/topic/4822-ckeditor-justify-plugin-walkthrough/
  9. I'm on mobile. Maybe you want to have a look at semantic labels: http://semantic-ui.com/elements/label.html#basic The great thing is that you don't have to load a heavy framework. It's all devided into small components. That's really great when you are missing something in another framework. Maybe you could provide different marker styles easily using semantic
  10. Credits go to tpr but I think the forum could profit if we spread the word and more people used it to show their work. I think it's the most efficient way to show modules/features and so on
  11. hey kixe, also the best wishes to you would you mind doing a short screencast so that we do not have to install it, create the fields etc... http://www.cockos.com/licecap/ is a cool small tool to do that in seconds on win/osx. it creates a GIF so you don't even have to upload it to youtube or the like. just record and post it directly here in the forum. thank you for sharing your module
  12. https://processwire.com/talk/topic/803-tinymce-insert-image-modal-window/?p=6802
  13. +1 for at least more integrated cropping. i agree that apeisa and horst did an awesome job on their modules but i don't think that should be a reason to not build this functionality into the core. i use those modules in every project and i really think that's a very common and core-worthy thing. thank you peter for your work on the mockups
  14. Hi henrik, this problem comes from the fact, that there is no outputformatting when bootstrapping PW. therefore image fields are always arrays even if they are set to max = 1 and all your textformatters won't work. https://processwire.com/talk/topic/5375-image-paths-when-bootstrapping-pw/ regarding your ajax problem: you don't need to create a file outside your site folder! you have two options: 1) create a separate template only for ajax requests and also a page for that (eg hidden page /ajax) - then you can just call this page and return your content 2) return your ajax content from within the same file. if you are using delayed output strategy that's really easy. all you have to do is put something like this on top of your template file: if($config->ajax) { // do your ajax stuff here echo 'i am an ajax response'; die(); } // regular call $headline = '<h1>' . $page->title . '</h1>'; $content = $page->body; and so on... hope that helps! good luck
  15. very easy now with newer versions! just put this in your /site/ready.php $wire->addHookAfter("Session::login", function(HookEvent $event) { $user = $event->return; // check if login was successful if($user) { // your condition here if(!$user->isSuperuser()) { // your destination page here wire('session')->redirect('/'); } } });
  16. such a fieldtype could be really cool for seatmaps in a booking system http://iakob.com/canvas-area-draw/demo.html sorry... just dreaming
  17. you could also create one regular image field and trigger clicks on that image via jquery http://stackoverflow.com/questions/2159044/getting-the-x-y-coordinates-of-a-mouse-click-on-an-image-with-jquery . you could then trigger an "add new" event on a pagetable and fill the coordinates that you got from the click offset. editing existing items would be more difficult though... just to throw in an idea
  18. sorry, just guessing, no experience with it, but maybe the new devns is worth a try: https://processwire.com/blog/posts/processwire-2.6.20-and-surprise-processwire-3.0-alpha-1/#processwire-3.0-alpha-1 ?
  19. Parse Error: syntax error, unexpected '}' (line 109 of /var/www/html/site/templates/systemcheck.php) This error message was shown because you are logged in as a Superuser. Error has been logged. PHP Version 5.5.9-1ubuntu4.14 sorry, no time to investigate this on my own for the time...
  20. If yes please pm me
  21. this looks great kongondo! have you thought about implementing the blueimp file uploader to it? it has built in preview (at least for mp3 and images) and supports client side image resizing. that's one thing i am missing most when it comes to image galleries! looking forward to trying this module
  22. If you turn on debugging you can see the MySQL queries on the bottom of the admin
  23. Hi and welcome combicart! You can use "wirerenderfile" for that. On mobile, so please use Google. It's very easy and i use it in all my projects
  24. sounds like a job for listerpro... just choose what fields to display and you're done. admincustomfiles could also be helpful
  25. On mobile but I know there is a topic about this on the forum. Did you try Google forum search? In my opinion pagetable have a lot better ux most of the time. Maybe try that?
×
×
  • Create New...