https://github.com/james2doyle/pyro-pagewidgets-field
Add widgets to a page by selecting the widget and then ordering it.
https://github.com/james2doyle/pyro-pagewidgets-field
Last synced: 11 months ago
JSON representation
Add widgets to a page by selecting the widget and then ordering it.
- Host: GitHub
- URL: https://github.com/james2doyle/pyro-pagewidgets-field
- Owner: james2doyle
- Created: 2013-03-05T17:03:14.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-11-02T17:52:17.000Z (over 12 years ago)
- Last Synced: 2025-02-24T19:59:55.617Z (over 1 year ago)
- Language: PHP
- Size: 143 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pyro-pagewidgets-field
======================
Add widgets to a page by selecting the widget and then ordering it.
Steps
-----
* Create an area for page specific widgets
* Create widgets as normal and place them in that area
* Add the field to a page and choose that area as the source
* Go to a page with that type and choose widgets from the multiselect
* Order them with the sortable list
### Field Creation

### Field during page edit

Template Usage
--------------
Fairly easy. Still uses the native/included widgets:instance plugin
``` html
```
Why
---
Clients kept asking to add a widget to a specific page and they were reluctant to learn how to use the widgets short code. Also for my own piece of mind I didn't want them editing templates and breaking stuff.
Now they can manage their widgets on a page-by-page basis instead of area-by-area. Of course area widgets still work but it is up to the template to decide what order to set them in.
``` html
```
Of course this is what I mean. The widgets in the left-sidebar area will come first and then the widgets assigned to the page will follow.
License
-------
(The MIT License)
Copyright (c) 2013 James Doyle(james2doyle)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.