Recently Browsing 0 members
No registered users viewing this page.
By Noel Boss
What I'm actually really looking for is a way to edit and add children of a page in a similar way as RepeaterMatrix fields:
Easy to add new ones and easy to move, hide and modify inline:
I have a problem and am so close to a solution, but everything i've found so far only gets me about 95% and before I create something on my own want to ask is anyone knows a soltion or if I miss something.
My simple requirement: Editing Children and creating new ones inside the current parent page context – eighter inline or in a Lightbox.
Not working Option A:
With page relation fields I can create new pages – but it requires me to select a fixed parent. If I don't provide a parent, no new link is present.
Not working Option B:
With the awesome AdminPageFieldEditLinks Module I can create new Pages directly without the need to provide a parant beforehand – but then I need to select it at runtime.
There is a new link now – the link is: parent_id=0&template_id=51&modal=1 … if it only provided the correct parent_id!!!
But now i have to select the parent:
Not working Option C :
That's what I do right now… Reordering the Child-Field to the first tab – but to maintain the context, I would need the edit and new button to open a lightbox instead of a page reload.
For A+B: If I could provide a selector as parent, this would solve my issue: "parent=page.id" or a checkbox "use parent page for new pages". Or I could use some hook?
I am very new to processwire and bootstrap. I have a field (text area) and there I want to be able to insert an image which is responsive. I tryed it with Source but in the end the page doesn't seem to like it when I insert in Source the following code
<img src="<?php echo $homepage->content_img->url; ?>" class="img-fluid" alt="Responsive image"> What can I do to make it possible to insert reponsive images in a text area?
Thank you in advance.
I'm doing an artist site and they want to be able to upload a large .tiff to their portfolio. I need to keep to a copy of the original file in the server for the art distributers, and of course serve jpg in the web front end.
I had the idea of extending the file or image upload input so that if the image is tiff, keep it, and also convert it to jpg, so I could access through something like $image->originalUrl or $image->size(100, 100)->url
I was wondering if you thought this a good idea, or if i'm over-engineering something that could be done simply. Also, I've never extended an input, so any examples are welcome.