Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by mr.mc.mauser

  1. hi, how this works ? if i try this: $this->addHookAfter('Users::added', function($event) { wire(log)->save('test', 'Neuer User'); // some code }); it dosent work nothing in my test.txt, but this works: $this->addHookAfter('Pages::added', function($event) { wire(log)->save('test', 'Neue Seite'); $pages = $event->arguments(0); if ($pages->template == 'user'){ $u = wire(users)->get($pages->id); $u->addRole('member'); $u->language = wire(languages)->get('deutsch'); $u->save(); } }); what ist the way to Hook into Users::added ??
  2. Thanks a Lot that works. With my little English i have some Problems with Docs and Todos
  3. Hello, I have a Littele Problem with Parsedown. here my code: $ersetzer = array( "turniername" => $datenseite->headline, "name" => $input->name, "vorname" => $input->vorname, "mailadresse" => $input->mail, "bklasse" => getlisttext($datenseite->turn_bklassen, $input->bklasse), "aklasse" => getlisttext($datenseite->turn_aklassen, $input->aklasse), "gender" => getlisttext($datenseite->turn_gender, $input->gender), "meldung" => getlisttext($datenseite->turn_meldung, $input->meldung), "camp" => getlisttext($datenseite->turn_camp, $input->camp), "grill" => $grillname, ); $betreff = wirePopulateStringTags($datenseite->getUnformatted("mail_an_betreff"), $ersetzer); $plaintext = wirePopulateStringTags($datenseite->getUnformatted("mail_an_text"), $ersetzer); $htmltext = wirePopulateStringTags($datenseite->mail_an_text, $ersetzer); The Plain text works perfekt, But the htmltext have no <br /> what must i do to become the <br />instead of \n Sorry for my Bad English Greetings Robert
  4. Hello, i have Build an Easy Form: (quick and dirty) <?php $modules = wire('modules'); $form = $modules->get("InputfieldForm"); $form->setMarkup([ 'list' => "{out}", 'item' => "\n\t<div class='form-group' {attrs}>\n{out}\n\t</div>", 'item_label' => "<label>{out}</label>", ]); $form->method = "POST"; $form->action = "./"; $form->class = "form"; // Name field $singleField = $modules->get('InputfieldText'); $singleField->placeholder = __("Test1"); $singleField->label ="Test"; $form->add($singleField); $singleField = $modules->get('InputfieldText'); $singleField->placeholder = __("Test2"); $form->add($singleField); echo $form->render(); ?> In the Generated HTML for my Site is in the Label Tag an I Tag ? <form id="InputfieldForm1" class="form InputfieldForm" method="POST" action="./" data-colspacing="1"> <div class='form-group' class='Inputfield InputfieldText ui-widget' id='wrap_InputfieldText2'> <label>Test<i title='Umschalten offen/geschlossen' class='toggle-icon fa fa-fw fa-angle-down' data-to='fa-angle-down fa-angle-right'></i></label><div class='InputfieldContent ui-widget-content'><input id="InputfieldText2" class="InputfieldMaxWidth" type="text" maxlength="2048" placeholder="Test1" /></div> </div> <div class='form-group' class='Inputfield InputfieldText ui-widget' id='wrap_InputfieldText3'> <div class='InputfieldContent ui-widget-content'><input id="InputfieldText3" class="InputfieldMaxWidth" type="text" maxlength="2048" placeholder="Test2" /></div> </div><input type='hidden' name='TOKEN1254019649X1487174874' value='4niTWcet6wsEdi09R/hPEEiZfOIoAxLw' class='_post_token' /></form> How i can Remove the I Tag in my Label ? Greetings Robert
  5. Thanks a lot for your help! It Works
  6. little Problem... i want use a Global config.js for my site. I make the file: /site/modules/InputfieldCKEditor/config.js but this takes no effekt. my content of the file: CKEDITOR.editorConfig = function( config ) { config.justifyClasses = [ 'left', 'center', 'right', 'justify' ]; }; If I make a File only for my body-field with the same Content like the config.js it works why does the config.js fails ? why does the config-body.js workss ? what can i do to work with the config.js Sorry for my Bad English
  • Create New...