Jump to content

Pravin

Members
  • Content Count

    15
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Pravin

  • Rank
    Jr. Member

Recent Profile Visitors

866 profile views
  1. Thanks a lot @flydev.. But I have multiple forms so how do I select a particular form from the many?
  2. @flydev 1. so using the form-upload.php file i can have the desired form-fields and later upload it in a template. 2. Can I use the form entries saved to create xml file
  3. @Marcel Epp so did you use the file-upload.php to upload the form details into xml file? and where do i have to invoke the create xml code snippet at ?
  4. clean-file.php this is the code <pre> <?php namespace Processwire; ini_set('max_execution_time', 1200); // 5 minutes, increase as needed include("./index.php"); $dir = new DirectoryIterator(wire('config')->paths->files); foreach($dir as $file) { if($file->isDot() || !$file->isDir()) continue; $id = $file->getFilename(); if(!ctype_digit("$id")) continue; $page = wire('pages')->get((int) $id); if(!$page->id) { echo "Orphaned directory: " . wire('config')->urls->files . "$id/" . $file-
  5. @Robin S do you have any suggestions regarding this issue?
  6. I need all the images on my site to be optimised so should i set it in the config file with 'forceNew'=> true or is there any alternate solution for the same @Robin S..
  7. Thanks a lot @Robin S for your feedback. So all I have to do is add 'forceNew' => true in the array right
  8. Yeah missed my cup of coffee so the things got messy a bit @szabesz..
  9. How to set the image quality as per desired.. I tried using the above code but I get the original image size.. <!--Content with Image left--> <?php $i = 2; foreach($page->page_content as $each) { if( $i%2 == 0 ){ ?> <section class="imageblock about-1"> <div class="imageblock__content col-md-6 col-sm-4 pos-left animated fadeInLeft"> <div class="background-image-holder"> <?php $option1 = array( 'quality' => 60,
  10. <!--Content with Image left--> <?php $i = 2; foreach($page->page_content as $each) { if( $i%2 == 0 ){ ?> <section class="imageblock about-1"> <div class="imageblock__content col-md-6 col-sm-4 pos-left animated fadeInLeft"> <div class="background-image-holder"> <?php $option1 = array( 'quality' => 60, 'upscaling' => true, 'cropping' => true,
  11. I want the data inserted in the forms to be fetched into a XML document is it possible or any other alternate options to do the same
  12. I have issues regarding responsive images. I have used Markup srcset for images but the problem is I am not able to call the images added in repeater field as well as Multiple image field.. My code <?php $i = 2; foreach($page->page_content as $each) { if( $i%2 == 0 ){ ?> <section class="imageblock about-1"> <div class="imageblock__content col-md-6 col-sm-4 pos-left"> <div class="background-image-holder"> <img alt="image" src=" '<?php echo $each->single_image->srcset('mode07');?>
  13. Hey I'm pretty new to Processwire.. I need to have responsive images and using the Markup Srcset so could anyone brush up on how to use it and about Breakpoints and Image sets JSON array thing..
Γ—
Γ—
  • Create New...