-
Posts
6,808 -
Joined
-
Last visited
-
Days Won
159
Everything posted by Soma
-
It's almost impossible to do updates to a high frequent live site without downtime. At least not with common setup php mysql. We have a project that has always user on the site browsing, ordering, commenting etc. Every time I even just upload a global template or script/module, there happen to be at least 4-5 errors in that 0,5 sec uploading it. I've been thinking a lot about how to fix that but it's simply not possible. Best is still, even for very small updates, to shut the site for maintenance to make sure there's nothing fancy happening.
-
What does bring you to that conclusion? PW maybe has the best ML support out of the box compared to other CMS systems.
-
If you have no template file you won't see a "view" button. Rendering a page without a template results in 404. You need it.
-
Everything looks as it should be. After all you remove first image from $images.
-
custom php code to find selectable pages + autocomplete
Soma replied to bernhard's topic in General Support
I wanted to note that all those nice "page" features and custom php code and workarounds don't work when you use them with PageTable pages using different parent (some only if you save the the page and reopen it). https://github.com/ryancramerdesign/ProcessWire/issues/699 -
custom php code to find selectable pages + autocomplete
Soma replied to bernhard's topic in General Support
The selector also returns a PageArray and not an Page, important detail. -
custom php code to find selectable pages + autocomplete
Soma replied to bernhard's topic in General Support
What functionality? There's been so many changes during dev I can't keep track of them. Well it seems then if you specify only a Page (parent) and not a PageArray via custom PHP code, it works as it takes that as a parent. It's the same as if you use the custom selector: "parent=page". Edit: Just tested and it works with "parent=page.id" selector but only with Select input and not PageListSelect (as stated) but also not for AutoComplete . Still way to go.. Edit: amazed that such an important and most often used fieldtype is still so quirky. -
custom php code to find selectable pages + autocomplete
Soma replied to bernhard's topic in General Support
Ah didn't knew this new description (but there were some changes regarding this fieldtype), but it remains that it doesn't work with AutoComplete or PageListSelect input. -
custom php code to find selectable pages + autocomplete
Soma replied to bernhard's topic in General Support
It says custom PHP code to find pages to select from and not a parent. So $page->rootParent doesn't work with custom php code to begin with. It has to return a PageArray. -
There's Colorprofile in the image, that's why. Added same ProRGB profile to resized as the original in PS.
-
You can be sure that 99.99% of your issues in near future are between your chair and your computer and not ProcessWire.
-
Because I'm not able to download/open the PDF itself in the admin like I expect when clicking on the basename. Maybe I get it wrong, but it's not only about creating an image of a pdf but also having the pdf itself. So there maybe the best way is to introduce your own "renderItem()" method again instead of using the parent method.
-
I'm trying this (dev) on PW 2.6 and it works fine so far but I'm not sure why it's using Image field ... like it has the pdf file but showing an image that in PW 2.6 has a dialog for cropping etc. The file basename is a link that opens a modal where there's an error: TemplateFile: Field file_pdf is not an instance of FieldtypeImage<pre>#0 /Applications/MAMP/htdocs/verbandsnet/wire/core/Modules.php(441): ProcessPageEditImageSelect->init() #1 /Applications/MAMP/htdocs/verbandsnet/wire/core/Modules.php(1012): Modules->initModule(Object(ProcessPageEditImageSelect), false) #2 /Applications/MAMP/htdocs/verbandsnet/wire/core/Modules.php(919): Modules->getModule('ProcessPageEdit...') #3 /Applications/MAMP/htdocs/verbandsnet/wire/core/ProcessController.php(135): Modules->get('ProcessPageEdit...') #4 /Applications/MAMP/htdocs/verbandsnet/wire/core/ProcessController.php(209): ProcessController->getProcess() #5 [internal function]: ProcessController->___execute() #6 /Applications/MAMP/htdocs/verbandsnet/wire/core/Wire.php(387): call_user_func_array(Array, Array) #7 /Applications/MAMP/htdocs/verbandsnet/wire/core/Wire.php(325): Wire->runHooks('execute', Array) #8 /Applications/MAMP/htdocs/verbandsnet/wire/core/admin.php(93): Wire->__call('execute', Array) #9 /Applications/MAMP/htdocs/verbandsnet/wire/core/admin.php(93): ProcessController->execute() #10 /Applications/MAMP/htdocs/verbandsnet/wire/modules/AdminTheme/AdminThemeDefault/controller.php(13): require('/Applications/M...') #11 /Applications/MAMP/htdocs/verbandsnet/site/templates/admin.php(15): require('/Applications/M...') #12 /Applications/MAMP/htdocs/verbandsnet/wire/core/TemplateFile.php(169): require('/Applications/M...') #13 [internal function]: TemplateFile->___render() #14 /Applications/MAMP/htdocs/verbandsnet/wire/core/Wire.php(387): call_user_func_array(Array, Array) #15 /Applications/MAMP/htdocs/verbandsnet/wire/core/Wire.php(325): Wire->runHooks('render', Array) #16 /Applications/MAMP/htdocs/verbandsnet/wire/modules/PageRender.module(385): Wire->__call('render', Array) #17 /Applications/MAMP/htdocs/verbandsnet/wire/modules/PageRender.module(385): TemplateFile->render() #18 [internal function]: PageRender->___renderPage(Object(HookEvent)) #19 /Applications/MAMP/htdocs/verbandsnet/wire/core/Wire.php(387): call_user_func_array(Array, Array) #20 /Applications/MAMP/htdocs/verbandsnet/wire/core/Wire.php(325): Wire->runHooks('renderPage', Array) #21 /Applications/MAMP/htdocs/verbandsnet/wire/core/Wire.php(409): Wire->__call('renderPage', Array) #22 /Applications/MAMP/htdocs/verbandsnet/wire/core/Wire.php(409): PageRender->renderPage(Object(HookEvent)) #23 /Applications/MAMP/htdocs/verbandsnet/wire/core/Wire.php(325): Wire->runHooks('render', Array) #24 /Applications/MAMP/htdocs/verbandsnet/wire/modules/Process/ProcessPageView.module(187): Wire->__call('render', Array) #25 /Applications/MAMP/htdocs/verbandsnet/wire/modules/Process/ProcessPageView.module(187): Page->render() #26 [internal function]: ProcessPageView->___execute(true) #27 /Applications/MAMP/htdocs/verbandsnet/wire/core/Wire.php(387): call_user_func_array(Array, Array) #28 /Applications/MAMP/htdocs/verbandsnet/wire/core/Wire.php(325): Wire->runHooks('execute', Array) #29 /Applications/MAMP/htdocs/verbandsnet/index.php(241): Wire->__call('execute', Array) #30 /Applications/MAMP/htdocs/verbandsnet/index.php(241): ProcessPageView->execute(true) #31 {main}</pre> When creating the PDF field I'm seeing configurations same like an image field, but it's not. I'm not sure this is the right direction of how this should work.
-
I gladly take a look cause I have no idea what is the problem. Or you guys having problem could try modifiying module https://github.com/somatonic/Multisite/blob/master/Multisite.module#L43 To this: $this->subdomainsArray = explode("\n", strtolower($this->subdomains));
-
Lost Work -- Auto Log Out misery: help me understand what happened?
Soma replied to Metadope's topic in General Support
I made a module back then... https://github.com/somatonic/AutoSave -
That's most likely because your ip and user agent changes all the time. Turn off $config->sessionFingerprint.
-
What is possible is to use a concat field to "save" the count of the images field and then use that for the visible dependency selector. Create a concat field "imagescount" and enter "images.count" as the value. Add that field to the template. And enter "imagescount>0" in the textfield's dependency. This works after only after you uploaded images and saved the page.
-
Ok, images and files fields aren't supported. It's not a matter of the textfield being multilanguage or not, it's how file fields and dependencies work. images.count>0 on a text field will only work if you upload a image via the dialog upload, cause that <input name="image[]"> is the one observed checking for its count. Once you save the image and reload the page that input is again 0. So it's not a bug but a "not supported" thing.
-
For me it works just fine "image.count>0" to show a textfield only if images has images. But not positive this was always the case with using Dependencies and subfields. image_field != false image_field.count = 0 Aren't valid selectors. It has whitespace. image_field!=false image_field.count=0 For image fields it only would make sense to use image_field>0
-
Then what is /processwire/ ? I guess you installed in a subdirectory? DefinitLy strange. Could have to do with that url. Something htaccess or permissions. I s saying you don't have access to something your currently on (page edit).
-
backend seems to be the admin url NicO.
-
RT @derStadtpirat: Help us to get @processwire 2.6 released soon by testing PW 2.6 RC1: http://t.co/edBytnxrmo