Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/07/2020 in all areas

  1. Thank you for reporting this bug / weird behaviour @wbmnfktr! I just looked into this topic and discovered two typos which have produced this buggy behaviour. The new release 0.2.4 fixed this.
    3 points
  2. Thanks @joshua! Version 0.2.4 fixes that behaviour.
    2 points
  3. Anyone else experiencing weird behaviour with the external_media option while opting in/out of it? A recent project needed a little overhaul therefore external media is now only available after opting in to it BUT... it's not working out as expected after you later on decide to opt out or in to it. Thought about issues with some custom JS but even on a clean install the issue occures. It's not happening with any other option so far - so I could work around that issue for now. As you can see the values in local storage are already off for external_media.
    2 points
  4. BayTech360 is a System Integrations Specialist serving the US out of San Francisco. They wanted to revamp their website and asked Pigtail Pundits to help with it. The new website is built to storytelling standards of StoryBrand and other direct response advertising frameworks. This site features, sell-focussed copy which is our trademark. This is mapped to an elegant, clean design. Built atop ProcessWire, our favourite CMS, with ProCache for speed. Check it out at: https://www.baytech360.com/
    1 point
  5. It's been 2 years @kongondo Is there any updates on this???
    1 point
  6. Thank you @AndZyk for the warm comments. Noted the issues with CSS. Will correct. Unni.
    1 point
  7. Nice website. I like the image cutouts. ? One minor detail: Your dropdown menu is only transparent but not hidden. You can still hover over it and it could overlap with links. Regards, Andreas
    1 point
  8. I didn't actually find a solution to the issue of the admin displaying text while the front-end displayed correct data. I've never seen that before. So I uninstalled php and reinstalled php and now the backend works.
    1 point
  9. Ok, you are right @Robin S. I think, now i understand you. ?‍♂️ Your idea to use a field for the parent-child relationship works great: I add a empty repeaterfield to template. In ready.php i add to a edit button (each children page) include pagination. It looks like it´s a repeater field items (old page situation). All happy. $this->addHookAfter('Inputfield::render', function (HookEvent $event) { $field = $event->object; $form = wire('modules')->get("InputfieldForm"); //get edit page $page_id = $this->input->get('id'); $page = $this->pages->get($page_id); //add child pages to empty repeater - items not moveable, deletable or to clone if ($field->name === 'products') { $childPages = $page->children('limit=15'); $pagination = $childPages->renderPager(['getVars' => array("id" => $page_id)]); foreach ($childPages as $childPage) { //build the fake-repeater header $wrap = $this->wire('modules')->get('InputfieldFieldset'); $wrap->addClass('InputfieldRepeaterItem InputfieldStateCollapsed InputfieldRepeaterMinItem InputfieldNoFocus'); $wrap->name = "repeater_item_{$childPage->id}"; $wrap->label = $childPage->index + 1 . ': ' . $childPage->product_title . ' Art.: ' . $childPage->title; //if all fields are filled out mark the header $isFilledOut = ($childPage->product_keyword && $childPage->product_type); ($isFilledOut ? $wrap->addClass("text-black", "headerClass") : ""); //add the edit button for the child page (class pw-modal for modal edit) $submit = wire('modules')->get("InputfieldButton"); $submit->attr("value", "Produkt Details bearbeiten"); $submit->attr('data-href', wire('config')->urls->admin . "page/edit/?id=" . $childPage->id); $submit->addClass('pw-modal uk-margin-bottom uk-margin-left'); $wrap->add($submit); $form->add($wrap); } $field_style = '<style>.text-black{color:black !important;}.InputfieldRepeaterItemControls{display:none !important;}</style>'; $event->return = $form->render(); $event->return .= $field_style; $event->return .= $pagination; } });
    1 point
  10. @Pete, @Erik, seems to work with a tiny modification in the foreach loop (loading an intermediate variable with $fM['type']): // Now use $data and $fieldsModel loop to create all checkboxes foreach ($fieldsModel as $f=>$fM){ $fmType = $fM['type']; $fields->add( self::$fmType($f, $fM['label'], $data[$f], $fM['desc']) ); }
    1 point
×
×
  • Create New...