ProcessWire Recipes
A collection of ProcessWire API snippets to solve common tasks, provide full solutions, and some little helpers that make work with the API easier.
- Activate all languages on pages created via API
- Add fields to template programmatically
- Benchmark code execution time
- Best way to implement a global utility function
- Cache the result of a function
- Change homepage's default language
- Converting thumbnail images for PW3 admin
- Create an index / linklist of all used image tags
- Create an index/linklist of all used image tags
- Create an XML sitemap for every language
- Create breadcrumb of page titles for html title tag
- Create custom admin settings page link in admin menu
- Create page via API
- Debug: Show all template field names and labels (for each language)
- Duplicate content from one field to another
- Enable any Role to use Lister (pages/find)
- Enhance image links on your site with FancyBox
- Enhance paginator with rel attribute for SEO
- Extending page save process
- Field/template context
- Find latest modified (sub)child of a page
- Get random page via API, e.g. from a pool of testimonials
- Get unformatted field values
- Improve accessibility of a read more link version: 1.0.0
- Inline critical above the fold css
- Limiting debug mode to development environment
- Logging all outgoing e-mails
- Maintenance Mode
- Prefill PageTable fields with children on edit
- Quick ProcessWire first child redirect snippet
- Resetting admin password via API
- Set backend field column width via API
- Set language-specific input field labels via API
- Set up a really simple search index using FieldtypeCache
- Typical breadcrumbs example
- Use CSRF in your own forms
- Use different sets of template files, e.g. based on hostname