Jump to content

fbg13

Members
  • Posts

    344
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by fbg13

  1. Share one photo that doesn't work, if you can, so that others can check. Also if you tested it with a clean install you should open an issue on github.
  2. There's https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript
  3. https://www.reddit.com/r/PHP/comments/71f8vs/cms_opinions_wanted/ I recommended PW, but maybe someone can give a more in depth answer.
  4. Another way is to use a code editor that lets you go to a functions definition. For example vs code can do that with the PHP IntelliSense extension or the new Atom ide. Other editors/ide might have this feature too. http://langserver.org/
  5. Would be great if @ryan could/would attend a conference and talk about PW. Or even someone else and work with ryan on the speech.
  6. fbg13

    Confused by Pages?

    Then your in the wrong place. PW doesn't work that way, PW doesn't have a frontend by default like other cms*, you have to build the frontend yourself. * it does if you use a site profile but those are mostly to showcase some features To understand pages read this https://www.smashingmagazine.com/2016/07/the-aesthetic-of-non-opinionated-content-management-a-beginners-guide-to-processwire/#three-simple-core-concepts https://processwire.com/docs/tutorials/but-what-if-i-dont-know-how-to-code/part-1-pages-templates-fields-files/
  7. fbg13

    email

    if($page->template == "contact" || $page->template == "course" || $page->template == "holiday" || $page->template == "newsletter") { if(!$page->is(Page::statusHidden)) include ("contact.inc.php"); } Check contact.inc.php Might be a field on the homepage.
  8. fbg13

    email

    Is the site live can you share the link? Or post the content of main.inc.php if you can?
  9. fbg13

    email

    Also look in /site/config.php and check if you have $config->prependTemplateFile in there.
  10. fbg13

    email

    Can you post the code from main.inc.php too?
  11. fbg13

    email

    @henri You shouldn't need to search the db. You need to figure out where the code that sends the emails is and work from there. Find the page with the form in the page tree and find its template. Then look at the template file for the code responsible for sending the emails.
  12. fbg13

    email

    Is that a front-end form? And what is that "form thing" you don't have?
  13. The first loop assigns each item in $page->related_products to $matrix_item, so you have one $matrix_item after the first loop. When you delete the first empty loop you will have no $matrix_item anymore in your if statement. When you delete the second one then you will have only one $matrix_item, from your first empty loop.
  14. Did you add a semicolon after the statement?
  15. @MilenKo Works for me. Check the db if there is an actual value for cite.
  16. 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.
  17. Are you using any modules, beside core ones?
  18. Can you post your render method?
  19. 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?
  20. 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"); }
  21. @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.
  22. 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(); }
  23. 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.
×
×
  • Create New...