Jump to content

Morphosis

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by Morphosis

  1. Just to confirm all work perfectly with https://modules.processwire.com/modules/import-pages-csv/ Such an elegant solution ๐Ÿ™‚ Thank you!
  2. Thank you! Really appreciate you offer too. I'll install it now and do some tests ๐Ÿ™‚ Will post updates just incase it's useful of the good, bad and ugly ๐Ÿ˜‰
  3. Good afternoon. My brain is struggling with is and I think it's because I'm nervous about importing 700 user records! I'm been looking at all the importers and I'm just unsure which one would be recommended. I'm using FrontendLoginRegister Module. This works great! This creates a role called Registered. I've also created addition fields to match the imported data. I'm happy to do a slow low number batch like 50 records at a time. The password will be updated when the user effectively uses the forgotten password form with their email for the first-time. // Database names field_user_title field_first_name field_last_name field_elected_year field_member_status field_year_of_birth field_gender_at_birth field_address1 field_address2 field_address3 field_town field_county field_mobile_phone field_home_phone field_username ------------------------------ field_roles - Existing field_pass - Existing field_email - Existing Example data: Title, First Name, Last Name, Email, Home Phone, Mobile Phone, Address 1, Address 2, Postcode, Town, County, Country, Year of Birth, Gender at Birth, Elected Year, Member Status Mr, Mark,Pierce, hello@emal.co.uk, 7834999888, 7834999888,"Flat 5, the elm",111 long street,TQ7 1XX,Totnes, Devon, United Kingdom, 1955, Male, 2020, Visiting Any thoughts and advice on doing this other than a database backup, other good practice etc... ๐Ÿ™‚ Many thanks in advance. Mark
  4. Hi all. Loving the searchEngine Module!!! Just a quick question, I have a global search in the main navigation as well as on the search results page. How do I set the action on the renderedForm to point to the search Page results? got it! $searchEngine->renderForm(['form_action' => '/search/']); Many thanks in advance ๐Ÿ™‚
  5. Hi all, Ive create a page reference select list in admin to show a small number of images from a child page. <?php $int = 1026; foreach ($pages->get($int)->gallery_images as $photo): ?> <?php //$thumb = $photo->size(480, 320); ?> <div class="col"> <a class="gallery-item" href="<?= $photo->url; ?>"> <img src="<?= $photo->url; ?>" class="img-fluid rounded" alt="<?= $photo->description; ?>"> </a> </div> <?php endforeach; ?> I also have a link to the page reference too. <a href="<?= $page->gallery_cta_source->url; ?>" class="button button-border button-dark button-rounded mt-4">View full gallery</a> The above works when I set the $int = 1026, However, I want to use '$page->gallery_cta_source' which is the page id as a string. I have tried converting it to a int and use it but getting error: 'Object of class ProcessWire\Page could not be converted to int in...' <?php $string = $page->gallery_cta_source; $int = intval($string); foreach ($pages->get($int)->gallery_images as $photo): ?> Any advice or better options then I'm all ears! Thanks in advance.
  6. Thank you wbmnfktr, Like this approach very much and you/re correct, its much more flexible. I'll post an update once I have it inplace. Just show your kind support and time has not gone to waste. Thank you again.
  7. OK. This has broken me a little. Lots going on with my family, so brain fog is kicking in ? I have a Events page with the performers a children. Events |- Performer Name |- Repeater (date, description) |- Repeater (date, description) |- Repeater (date, description) - Performer name |- Repeater (date, description) |- Repeater (date, description) I'm trying to show: March Repeater(date) - Performer name - Repeater(description) Repeater(date) - Performer name - Repeater(description) April Repeater(date) - Performer name - Repeater(description) Any help would be so welcomed. I have looked at this: But not getting anywhere. Thank you in advance. Cheers Mark
  8. Hello. Hope you can help. I created a repeater to populate and dropdown with in the admin so the client can add/edit product categories for their shop. It's all working as expected in Chrome but noticed when testing i'm echoing out $m->selectfromrepeater->repeaterProdCatName Safari is not outputting the category names like Chrome is. My brain is fried with this so I thought I would reach out. I'm guessing I may need to loop the selectfromrepeater and push the name? just odd that chromes is out putting them fine This is how i'm creating JSON feed: foreach ($activeProducts as $m) { $data[] = array( "id" => $m->id, "product_title" => $m->product_title, "product_description" => $m->product_description, "product_price" => $m->product_price, "product_orig_price" => $m->product_orig_price, "product_images" => array( "url" => $m->product_images->first()->url, ), "product_category_new" => $m->selectfromrepeater->repeaterProdCatName, "product_quantity" => $m->product_quantity, "product_active" => $m->product_active, ); echo $m->selectfromrepeater->repeaterProdCatName; // Testing purposes }; Then access it in the javascript like this: function getProducts() { showProducts(<?php echo wireEncodeJSON($data); ?>); } Any pointers would be greatly received :)
ร—
ร—
  • Create New...