-
Posts
364 -
Joined
-
Last visited
-
Days Won
8
Everything posted by jploch
-
Hey Kixe! Thank you for this great module! I use it quite often. For most projects I need the backup to get triggered when the client logout. I don't want to give the client the backup permission, to prevent them to mess things up. From your comment above it seems the permission is not needed. But when I logout without the backup permission, the backup is not working. It would be nice if the backup gets triggered by any user on logout, or at least an option for this.
-
Hey folks! Here is another question: I need the AsmSelect to use the same order as the page tree. In the dropdown list the order is fine, but when I add a new page/marker it gets added at the bottom. I don't need the manual sorting, because I want to use the pagetree to sort the markers. Iam not experienced with hooks. Can someone point me in the right direction, where/how to change the sort of the AsmSelect?
-
AsmSelect + PageField Modify Selected Options Order In Select Dropdown
jploch replied to netcarver's topic in General Support
Hey folks! For a project I am working on, I use the nice Image Marker Module. This Module uses AsmSelect, to add the markers. Each marker is a page. Now I need the AsmSelect to use the same order as the page tree. In the dropdown list the order is fine, but when I add a new page/marker it gets added at the bottom. Iam not experienced with hooks and I could not find the line in the AsmSelect Module netcarver described. Can someone point me in the right direction? -
This module is really nice! I also need float values for the coordinates, to make the placement of the markers more accurate. I did everything Torsten suggested, but my values are still int: I changed the DB and the module files (FieldtypeImageMarker.module: line 341 + 342, InputfieldImageMarker.module: 251 + 252). And in the js I removed the "Math.floor" on line 307 and 308. What else is there to change? BTW. I think floats are a better default that int, because the markers should be accurate. Maybe this can be changed in a future update? EDIT: I Solved it now. You also need to change ImageMarker.php on line 41 and 57.
-
This is an interesting topic! Iam a designer that learned to code and PW really helped me improving my coding skill. I don't want the client to control the layout/design to much. In my experience this results in clients messing up the design of the website. So the functionality to change the design should be configurable to a certain role. But I would like a way to change the layout of my blocks in the backend without touching my template code. Ideally in a WYSIWYG way. So I would like to only have one template for all my pages with blocks that I define. A workflow that would make sense to me, and would save me a lot of time (for larger websites with a lot of different layouts per page): 1. The client would add blocks to a page, which layout in a default way (that I define). If the default way is not good enough, proceed to step 2-4 2. The client saves the page without publishing 3. I would edit the design right in the PW backend and show it to the client. 4. The client approves the design and the page gets published I implemented a solution using blocks with PageTableExtended and it worked quite good, but had some things that could be improved, like ajax editing the content, without the need of opening a modal to edit the content. I will make a post on my use case soon. Looking around in the forum I also found this post by Theo (he uses a WYSIWYG wich is far superior to mine from a usability standpoint): Demo: http://theowp.bplaced.net/upload/pics.html http://theowp.bplaced.net/upload/prev3.html
-
This worked for me. Thank you for the update!
-
That worked! Thank you!
-
Thanks for looking into it! I set autoload to true, but its not fixing my issue. After testing I found out that the issue is caused by this line in my templates for the blocks that being referenced: if(empty($options['pageTableExtended']) && empty($options['pageStack'])) throw new Wire404Exception(); So I removed it and its working fine. but now my PTE blocks that are stored under admin–>siteparts are viewable on the frontend for everyone. I don't want these pages to show up in search results, are there any other things I ca do to prevent that?
-
template for block with page reference field: if($page->block_page) echo "{$page->block_page->render()}"; And on my template to render the site with PTE: $content = ""; if(count($page->pagebuilder)>0){ foreach($page->pagebuilder as $l){ $content .= $l->render(); } } include("./_main.php"); $content is a variable in _main.php where the whole markup for the site is rendert. (All blocks for PTE are stored under admin->siteparts. They are configured to automatically get a title)
-
Yes I mean page reference field. There is only one PT/PTE field on the page. When I remove the $page->block_page->render(); from the template for that block (with the page reference field), everything is working fine. I use the page reference field to add blocks that where added to another page with PTE, so that the blocks can be reused on another page. Hope that makes sense to you ?
-
I managed to render blocks from page reference fields inside PTE. In my template for the page reference block I render the page like this: $page->block_page->render(); But when I save the modal after I add/change a block I get the error and the changes only appear after I save the page with the regular Save button from the page: Failed to ready module: FieldtypePageTable This only happens if the PTE has a page reference block. Any Ideas why this error is happening?
-
Thats fine with me. If I use Mamp with PHP 5.6 this issue is solved. No worries! Keep up the good work! Looking forward to use this one day ? I still have no clue what stops the markup regions from working though.
-
I changed the PHP version to 5.6 and these errors are gone now. However my markup regions seem not to be working. But when logged into the admin everything on the frontend works fine. When logged out I get an error saying "no regions" and the site is messed up. Iam about to give up on this and just use the site profile exporter for now ?
-
The installation worked that way. But Iam still getting errors on the frontend saying Warning: preg_replace(): JIT compilation failed: no more memory Any Ideas, what is causing this? When I use the site profile exporter and install the profile everything is working fine.
-
I had the same problem a couple of times now. For example when I try to install a backup of a live site on my localhost (Running on Mamp) or an a web server I always get the error config file cannot be found. The issue happened in the installation process after entering the database data and proceed. Maybe this is happening when the website is in another subdirectory and not the web root? The duplicator always makes a subdirectory when unzipping the files and then looks for the config in the root folder. After I manually change the config file, the site was showing up and I could see all the content in the admin, but had some strange errors on the frontend.
-
Take your time. Maybe release it as a commercial profile/module in the future. I wouldn't mind to pay for it, at a reasonable price Cool! Swiss graphic design kind of invented the idea of a grid system ?
-
This looks very cool!! If you find some time, it would be nice if you could share your new version (the one shown in the video). I would also be happy with a duplicator/site profile to install. No rush. in which city do you move? You are also german right?
-
Iam generally not a huge fan of css frameworks, because they often feel bloated, so I usually code the complete css myself. With CSS grid Iam not talking about a framework but the CSS grid specification. Jen Simmons from Mozilla has some great videos explaining the benefits of using it for layouts. Anyway I would also be very happy with the bootstrap version you made! Do you have any plans for releasing this as a module? Or maybe even a release date? ?
-
This looks very nice! I was working on a similar thing using the css grid specification with page table extended as a pagebuilder. But your approach is way superior because it supports inline editing, resize and better drag and drop (thought, this could still be improved, as it sometimes don't work as expected). I think this could be a very nice addition to PW, and something a would use a lot. Anyway it would be super awesome if you could release this as a module at some point! I would offer to adapt this for css grid, as I think that would be a nice option for some people and has more possibilities than bootstrap. Iam a frontend developer and designer so this might be out of my abilities, but I would try ?
-
Thank you for this module! It works great but I have some problems with the options not getting recognised. (Iam using the dev version, because of the geocoding issues with google maps) Since I use the map as a fullscreen background I need to disable the zoom on scroll feature for usability. The option for the marker are working but the leaflet options scrollWheelZoom and dragging are ignored. This is my code: $map = $modules->get('MarkupLeafletMap'); $options = array('markerIcon' => 'flag', 'markerColour' => 'red', 'scrollWheelZoom' => false, 'dragging' => false); echo $map->render($page, 'map', $options); another option would be to disable this after init with map.scrollWheelZoom.disable() But this is also not working, because map is not defined. Whats the name of the map instance in js?
-
My PTE is not working with markup regions This post can be deleted. My markup regions are working fine with PTE, I made a mistake in my code..
-
That worked! Thanks for your help!
-
@Robin S Thanks you are the best! works great!! Edit: While these pages now redirect to a 404 page, all pages using my pagetable block with the redirect stopt showing up in admin. showing a red error message saying The process returned no content. And the whole page is empty with nothing to edit. ? ––––– The next cool addition would be a way to clone block items. Even nicer if these could be cloned to different pages as well and still be able to get edited on every page. this is also discussed here: But Iam not sure if I understand where to put LostKobrakai code or how to adapt this.
-
I have managed to build a pagebuilder with blocks using PageTableExtended. Its working well and the customer is very happy with the look and usability. All the pages that are created with my PageTable are living under admin–>siteparts Now I tried to make the blocks reusable on other pages using the PageReferenceField. The problem is, the parent, where the pages from my PageTable are living, is set to not be viewable by guest users to prevent these pages from being viewable on the frontend. Now they only show up on the Frontend when Iam logged In. How can I prevent those pages to be accessed by URL, but still be able to include these pages with the PageReferenceField?
-
I have the same problem when resizing images with the api. Doing this, did not solve it for me: $item->block_image->first()->size(100)->url edit: it works when I set the image field as an array and loop through it. but this is not ideal in my use case. I would like to keep the field as an single image field, so the client can simply change the image by replacing an existing one. This was also a suggested solution, but Iam not sure where I have to put this (inside my template for the pagetable items?): <?php namespace ProcessWire; if ($page->pageReference) { $refPage = $page->pageReference; $img = $refPage->image; echo $img->url; }