wirelab / people-module
People module for PyroCMS 3.
Installs: 273
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
Type:streams-addon
pkg:composer/wirelab/people-module
Requires (Dev)
- fzaninotto/faker: ~1.4
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~4.4|~5.0
- symfony/css-selector: 3.1.*
- symfony/dom-crawler: 3.1.*
This package is not auto-updated.
Last update: 2023-10-18 11:49:38 UTC
README
People module for PyroCMS 3 with support for dynamic fields and assignments.
Overwriting the default view
The prefered / project specific way
php artisan addon:publish people- Edit the
viewview inresources/<site name>/addons/wirelab/people-module/views/people
In a custom theme
In your theme's service provider add the following:
protected $overrides = [ 'wirelab.module.people::person/view' => 'your view path here', ];
Adding fields to people
- In the people module go to
fieldsand make a new field - In the
peoplesection click onassignmentsand assign the field
Adding people to a page
- Create a multiple field in the pages module, assign it to People > People
- Assign the field to a page type
- In the page type loop over
page.your_slugand callrender()on a person. Or callrender()onpage.your_slugto have it to loop for you. Examples:
page.your_slug.render()
{% for person in page.your_slug %}
person.render()
{% endfor %}
Not calling render will return the attributes of the person.
{% for person in page.your_slug %}
{{ person.name }}
{{ person.email }}
{% endfor %}