-
Posts
41 -
Joined
-
Last visited
Posts posted by ank
-
-
Hi i'am trying to resize a image from a child page who has his own template:
on the home page i render all the child pages who have there own php template:
foreach($page->children() as $section){ echo $section->render(); };
On the child page the php contains:
$image = $page->image; $thumb = $image->size(300, 150); echo <img src='$thumb->url'>;
the $thumb is not generated and i get a error:
"Look out… Fatal Error: Uncaught Error: Call to a member function size() on null in site/templates/welcome.php:23"
"welcome.php" is a child template.when i use :
echo <img src='$page->image->url'>;
it display the image.
-
Is there a way to change the order of the products in the webshop.
Thanks,
Ank
-
Sorry for the late response, but are learning from the examples. I am also trying to make a sidecart with this examples but cannot refresh the cart when clicking on "add to cart" button.
I can update "$padloper->cart->getNumberOfTitles()" without page reload, but how to do it with a complete render of the cart ?
Is there a place where i can find all functions of padloper like the total quantity of items in the cart (not quantity of products in cart) ?
Thanks
-
I tried, but it didn't worked (i am a frontend designer and know only html and the basics of php).
Is it possible to post a simple example of a "add" button with no page reload ?
Thanks
- 1
-
Hello,
when i add or update the cart, the page reloads to the overview grid/productpage (although the cart is updated), even when i add a product from a single product page.
I use the example code:// get the $cartRender class$cartRender = $padloper->cartRender;// get the product whose add to cart button you want to be rendered// @note: it is assumed you already retrieved $product as per the example linked to above// render the add product to cart form$content = $cartRender->addToCart($product);$out .= $content;Is there a way to update the cart without reloading the page, only add or update the cart.
-
i added the coordinates manually and now i get the map
but Is it possible to change the colors of the map
-
i installed the module, but i'm not able to get it working, i get the error "Error geocoding address" in the backend and a blank map ?
What is missing/wrong ?
-
On 4/14/2019 at 8:43 PM, Autofahrn said:
I guess you are currently working with the release version (1.2.9) of Duplicator, right? That one expands the site files into a directory level below which needs to be moved manually during the install. Please try the V1.3.10 above which should solve this.
Yes this solved my problem,
Thanks @Autofahrn!
- 1
-
When i try to move a existing website back to local development on VHX (VirtualHostX) i get a error message:
Couldn't find "config.php" in /var/www/webank.vhx.cloud/site/config.php.
the path isn't correct, "/var/www" does not apply here, can i change this ?
-
On 9/6/2018 at 5:07 PM, joris_ross said:
You have to enable the Analytics API in the Google console
-
I have the same problem with Mamp.
Has someone already a solution to make it work with mamp ?
-
Hi everybody,
i am looking for a way to "mark" only one image in a imagesfield with multiple images, so i can request it on the homepage.I am making a collection of pages with images and on the home page i want to display one image out of every childpage (not the first image of every child)
"I have been thinking on a switch next to the images so that i can "mark" the image, only one image in the imagesfield can be "marked"
Any ideas how to archive this ?
-
2 minutes ago, adrian said:
The video fieldtype can do autoplay and loop - take a look at the Mediaelement API (https://github.com/mediaelement/mediaelement/blob/master/docs/api.md). You can also completely replace the video rendering code in the settings of the module with another player if you'd prefer. Not to say that a normal files field isn't fine, the Video fieldtype just makes it easier to manage videos in the backed because it creates images, shows the length of videos, and a few other things. Really depends on your needs as to what will be best.
I check this out, seems very suitable !
Thanks
-
-
Hello
I am looking to use html5 video,
Is there a way to upload video files (mp4) in processwire ?Thanks
Ank
-
Thanks @horst,
i knew it was possible in the backend, but i was wondering if it was simple to do it dynamicly.
-
Is there a way to set the reply address ?
->reply("xxx@xxx.xx") ?
-
@gebeer
thank you, i try this
-
I'm seriously struggling with a form
is it possible to redirect to a page after send, and still use the submitted fields.
what i want by example on the redirect page is:
IF answers on question1 = "yes" then echo "You answer was YES";
and this for several fieldsRegards
-
Thanks @Victor
this works, but how do i echo a value of a "Select Options Fieldtype" ?
https://processwire.com/api/modules/select-options-fieldtype/i tried this, but it doesn't work
$input->post('field_optionselect->title') -
Hello,
is it possible to "echo" the values of the fields that just were submited on succes ?
Thanks.
-
I'm thinking of buying FormBuider,
but first i want to know if i can use it for my needs.I checked the features of FormBuilder and found these:
- Send an auto-responder
- Conditionally email form submission to different people based on field values
- Display a success message, redirect to another URL or pull text from another page to display after form submission
but i want to know, if its possible combine these to:
redirect to a page that displays content based on (different) fields values just submitted from the form?
or
auto-respond a email based on the field values.
example:if $formfield1="elephant" -> echo "your choice was an animal"
if $formfield2="blue" -> echo "you selected a blue elephant"
...Thanks
-
The Google api console is changed,
in follow the installation instructions, but because some things are changed is there probably a setting i in the API console i missed. The Analytics API is activated in the API console.
In the module in processwire i can autenticate, but see only older projects i made in the api console, not the new just activated project.
-
a need 2 different forms, how can i exclude a field in one form ?
i want to render a second form without the field "message", while i need this field in the first form.
Resize image on onepager with child page templates
in General Support
Posted
Solved,
It was the image itself, with another image everything works well.