fbg13

Members
  • Content count

    252
  • Joined

  • Last visited

  • Days Won

    1

fbg13 last won the day on June 24

fbg13 had the most liked content!

Community Reputation

241 Excellent

About fbg13

  • Rank
    Sr. Member

Recent Profile Visitors

797 profile views
  1. Did you add a semicolon after the statement?
  2. @MilenKo Works for me. Check the db if there is an actual value for cite.
  3. I meant modules used to build the form. $this->GeneralfieldsSelector I couldn't find this in the core, that's why I asked. 'item_label' => "<label class=input-group-addon>{out}</label>", Somewhere {out} gets replaced with <span> <i class="fa fa-fw fa-envelope" aria-hidden="true"></i> </span> E-Mail You can find out where and edit/overwrite the default behavior or before you echo the form do a search and replace str_replace( "E-Mail" , "" , $form ) Or you could just create the form yourself and have complete control over it.
  4. Are you using any modules, beside core ones?
  5. Can you post your render method?
  6. How/where do you change it? What is it before/after the change? What does this mean? Nothing shows up or do you get some error? <title><?php echo $title; ?></title> In your code you don't define $title anywhere. Maybe you want $page->title?
  7. You might have url segments enabled.
  8. As said above it throws some error while on the user page or when trying to add a new repeater. My fix: //replace public function init() { $this->addHookAfter("ProcessPageEdit::buildForm", $this, "addSiblingsTab"); } //with public function ready() { if($this->wire("page")->name === "edit" && !$this->wire("config")->ajax) $this->addHookAfter("ProcessPageEdit::buildForm", $this, "addSiblingsTab"); }
  9. @ryan The menu to select predefined tags doesn't show unless the page is saved. After a file is uploaded there's an error in the console: Image field with "User selects from list of predefined tags" option selected.
  10. The first part is intended // https://github.com/ryancramerdesign/ProcessWire/blob/a210ba0b5ea67e56fef8a27a620bcfa6f96ca0b8/wire/templates-admin/scripts/inputfields.js#L999 $(document).on('click', '.InputfieldStateToggle, .toggle-icon', function() { var $t = $(this); // clicked element, either label or the icon var $li = $t.closest('.Inputfield'); var isIcon = $t.hasClass('toggle-icon'); // is the clicked element the icon? var $icon = isIcon ? $t : $li.children('.InputfieldHeader, .ui-widget-header').find('.toggle-icon'); // the icon // initially the $li doesn't have the classes InputfieldStateCollapsed and InputfieldStateWasCollapsed // they are added by clicking the toggle icon var isCollapsed = $li.hasClass("InputfieldStateCollapsed"); var wasCollapsed = $li.hasClass("InputfieldStateWasCollapsed"); if($li.hasClass('InputfieldAjaxLoading')) return false; ... if(isCollapsed || wasCollapsed || isIcon) { // all are false when clicking the label ... // https://github.com/ryancramerdesign/ProcessWire/blob/a210ba0b5ea67e56fef8a27a620bcfa6f96ca0b8/wire/templates-admin/scripts/inputfields.js#L1035 } else { if(typeof jQuery.ui != 'undefined') { var color1 = $icon.css('color'); var color2 = $li.children('.InputfieldHeader, .ui-widget-header').css('color'); $icon.css('color', color2); // the flashing icon $icon.effect('pulsate', 300, function () { $icon.css('color', color1); }); } if(!$li.hasClass('InputfieldNoFocus')) $li.find(":input:visible:eq(0)").focus(); }
  11. Why do you need more? You check if the page exists, so one is enough. Also adding the parent to the selector will make your check more accurate, there might be other pages with the same title but with a different parent.
  12. @bernhard checkout VS Code, it's faster than atom (at least it was when I switched) and it's very similar to atom visually.
  13. @eelkenet Hmm, the deletion does take place before the db save and runs on ajax too. It's weird that I get no errors and the time is correct too. Changing if(!$this->localStorage) to if(!$this->localStorage && !$this->isAjax) should fix it.
  14. Did you save the page or just selected a file? If you saved the page it's normal for that one to run.
  15. @eelkenet Somehow the file gets deleted before the page is saved. Do you have any other modules installed? Did you change any of the field's default settings? I don't think my module deletes the file, there are 3 calls to the unlink() function and none should delete it under normal circumstances. You can comment them out then you know for sure, search for unlink on InputfieldFileS3.module/FieldfieldFileS3.module.