Jump to content

Search the Community

Showing results for tags 'form-builder'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. I have a hook in a ready.php file, that is supposed to fill a page’s field when a public form is submitted. wire()->addHookBefore("Pages::saveReady", function(HookEvent $event) { // do all that for font pages only $page = $event->arguments(0); // avoid the error “page can’t be saved” if($page->id){ if($page->template->name !== "font") return; if(!$page->webfont_archive->count()) return; // fills styles foreach($page->webfont_archive->find("ext=woff2") as $font) { $styleTitle = basename($font, ".woff2"); $styleName = wire('sanitizer')->pageName($styleTitle,true); $styleToFind = wire('pages')->find("name=$styleName, template=repeater_font_styles"); wire('log')->save('vtf_custom', "TOFIND: ".$styleToFind); … } $event->arguments(0, $page); … I noticed that $styleToFind is logged only when I use the form when being logged. Can someone explain me why? And how can I make sure it can be found also for guests (not logged in visitors)?
×
×
  • Create New...