-
Posts
6,629 -
Joined
-
Last visited
-
Days Won
358
Everything posted by bernhard
-
that was a surprise for me as well, but i tried it both in default and reno (2 different users) and it had the same effect... maybe some cache again?
-
-
hi desbest, welcome to the forum i did not read the whole thread but wanted to mention that there is also the helloworld module where you can see how easy it is to develop a module in processwire https://github.com/ryancramerdesign/ProcessWire/blob/master/site-default/modules/Helloworld.module other than that i would recommend using tracy to inspect whats going on (eg make a inspectable dump of a page object in the console:)
-
this could also be interesting for you @adrian (still not forgot your message ) glad to hear that @pwired, looking forward to your experiences
-
Module Module: RuntimeMarkup Fieldtype & Inputfield
bernhard replied to kongondo's topic in Modules/Plugins
thanks again for this awesome field! if anybody needs excel-like tables this is easily possible like this (startingpoint): create a folder like /site/modules/HandsonTable copy https://github.com/handsontable/handsontable to this folder create a runtime field with this content: return wireRenderFile('../modules/HandsonTable/HandsonTable.php'); create your php-file /site/modules/HandsonTable/HandsonTable.php <?php $config->scripts->append($config->urls->siteModules . "HandsonTable/handsontable/dist/handsontable.full.js"); $config->scripts->append($config->urls->siteModules . "HandsonTable/handsontable/dist/moment/moment.js"); $config->scripts->append($config->urls->siteModules . "HandsonTable/handsontable/dist/pikaday/pikaday.js"); $config->styles->append($config->urls->siteModules . "HandsonTable/handsontable/dist/handsontable.full.css"); $config->styles->append($config->urls->siteModules . "HandsonTable/handsontable/dist/pikaday/pikaday.css"); ?> <div id="example"></div> <script> var data = [ ["", "Ford", "Volvo", "Toyota", "Honda"], ["2016", 10, 11, 12, 13], ["2017", 20, 11, 14, 13], ["2018", 30, 15, 12, 13] ]; var container = document.getElementById('example'); var hot = new Handsontable(container, { data: data, rowHeaders: true, colHeaders: true }); </script> moment and pickaday are not needed in this example and just as a showcase and reminder... It get's a little more complicated if you need storing/editing features but i need it only to show some data and my client can copy/paste data to excel/google drive sheets. -
hm... not sure if i don't understand you or you don't understand me pic1: there are 2 modals open, but you see only modal 2. in the background is the original processwire page and NOT the first modal. pic2: frontend, 1 modal open. you only see modal 1 and in the background the original page (logo, menu) pic3: frontend, 2 modals open, you see BOTH modals! modal 2 is open (thats good), BUT modal 1 is in the background and NOT the regular page. do you understand now? or please let me understand what you mean
-
where? what?
-
...just stumbled over https://www.tawk.to/ never tried it, but it looks great and one of my friends recommended it on facebook. anyone here ever used it? unfortunately i'm too busy to try it out right now.
-
hi thetuningspoon, thank you for your quick answer. sorry for being unclear: 2nd modal on backend: all good first modal on frontend: all good second modal on frontend: first modal gets 100% width and height and overlaps the normal page. ps: i tried if it has something to do with the pw-modal-small that i'm using but it's the same without that class! i can also provide you a login to this site and you can see it yourself...
-
hi thetuningspoon! thanks for this module! unfortunately it does not work properly on frontend: i included styles and scripts like this (using AIOM): $config->scripts->add("../modules/AdminModalception/AdminModalception.js"); $config->styles->add("../modules/AdminModalception/AdminModalception.css"); any idea what could be the problem? any easy fix? the files are definitely loaded, but the first modal gets 100% width and height as you can see in the screencast. thank you for your help!
-
thank you, looks great!
-
@tpr would you mind adding a screenshot how this looks like? never thought of using columns in admin but i guess it could be a good possibility and would love to get some inspiration
-
thank you @Francesco Bortolussi munin looks really powerful (and overkill for my situation), but that does not sound very trustworthy?!
-
@szabesz haha actually the idea is not mine but it was easier to find the snippet in my github repo as there are only very few modules in it and other user's github would have taken me hours to search through @horst thats easier and better of course @tpr ah i see, thanks for clarifying and thanks for adding it in the future
-
awesome update with ckeditor, thank you! would not have known about the theme without you and the justify installation via checkbox is also very welcome is it intentional that in default admin there is only one column whereas in reno there are two? aos 061, pw 3.0.30 btw: i had some display glitches after update. i switched to reno to check, switched back to default, then everything (besides the issue mentioned above) seemed normal. maybe you can add version numbers to the css tweaks to prevent cache-issues automatically? like here: https://github.com/BernhardBaumrock/TemplatePreviewImages/blob/master/TemplatePreviewImages.module#L54-L60 no necessity of course! enough info?
-
Module Profile Export module (also upgrade PW 2.0 to 2.1)
bernhard replied to ryan's topic in Modules/Plugins
-
so i _guess_ it does not really matter until that date. but i would choose the new one right from now...
-
hi tpr thats a great idea and has always annoyed me to need so much effort for only enabling justify buttons... thanks a lot, looking forward to it
-
Copying pages or content from one Processwire instance to another
bernhard replied to FrancisChung's topic in General Support
PS: see how i did it this with my body field // get body html and remove root node $p->body = substr($page->body->asXML(), 6, -7); PPS: i had problems with the umlaut complaining about UTF8 but i had this problem on another spot and think that might be a problem with my setup and not related to this topic or tracy... -
Copying pages or content from one Processwire instance to another
bernhard replied to FrancisChung's topic in General Support
i would recommend using @adrian s awesome tracy console: $items = simplexml_load_file('https://www.your-old-website.com/?export=blogitems'); foreach($items as $page) d($page->yourxmlnode->whatsoever); on the other site you can easily see what's happening like this: $p = $pages->get(2427); // your-test-page-id $p->of(false); $p->eventcancelled = 'your_console_output_from_other_site'; d($p->eventcancelled); as this field is a checkbox it would modify the '<p>test</p>' to 1 and you would know on which side the problem exists: but still i have to add that i have no experience with more complex import/export scenarios. for example multilanguage. maybe that's already possible with the other solutions -
thanks, it's fixed
-
sorry i'm very busy atm and thought that's enough info for you that's how it should look like: all the tabs are on top. in my other screenshot the grey bar on top is fixed and overlaps all other content. the tabs have some margin to the modal top. regarding the ajax issue: it's somewhere on my todolist if i find more time, sorry
-
i'm using modals for page edits a lot and have this issue. i had to switch AOS off completely. don't know when this error occured the first time (pw 3 and latest aos)
-
cool, thank you that's one of the uncountable things i read in the blog and did not remember as it was not interesting enough to me at that time... @console i really love it. i use it not only for learning (try&error, checking things) processwire but also PHP in general (the usual stuff i can't remember by heart like strftime, substr and all that..)
-
Copying pages or content from one Processwire instance to another
bernhard replied to FrancisChung's topic in General Support
i think what COULD make sense is some kind of helper module that makes it easy to handle some more advanced features (sometimes necessities) like deviding the import in chunks or providing some helper functions like handling pagename collisions, importing images and so on. but i don't know if there are better solutions already providing such things like using lister pro or batch child editor, import csv and so on. for me it was just the quickest solution to code it on my own. i had only 168 pages in the blog and 165 persons to import and that went without even increasing execution time