Skip to content

Commit

Permalink
Image/File Widget section
Browse files Browse the repository at this point in the history
  • Loading branch information
vencax committed Jul 22, 2017
1 parent db0555d commit 99fe8ea
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/widgets.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,14 @@ collections:
searchFields: [name, twitterHandle]
valueField: name
```
### Image/File Widget
If you store your files in different folders e.g. cover images for your posts in **assets/postcovers** folder you can add __media_folder__ and __public_folder__ to your widged conf allowing the media go into appropriate folder.
It would then look like this:
```
...
- {label: "Cover Image", name: "image", widget: "image", media_folder: "assets/postcovers", public_folder: "/assets/postcovers"}
...
```

0 comments on commit 99fe8ea

Please sign in to comment.