DNN Module for creating image stories, step-by-step guides or image galleries with subtexts
DNN SPA module written with AngularJS
After installation of the module (which is done in the same way as every DNN module) and adding the module to a page, you first have to fill out the new QuickSettings (new in DNN 8)
- Width of the images in display (the are automatically resized by the new dnnImageHandler. No need to brings them in the right dimension before uploading!)
- The scope: Define which stories should be dieplayed in this module: All stories, only the module stories or all portal stories.
- Which templkate should be used for list display and view display. At installation time there is only 1 for every type present, but you can create as much designs as you want when you click the button "Edit templates".
After saving your settings you see the following picture:
If you click the "Create story" button or the red pencil button in the actionmenu of the module which changes mode between edit and display (red pencil is display mode, green one is edit mode), you enter the edit screen where you are able to create, update and delete stories:
In this sample case you see three stories here which could be edit (green pencil button), viewed (blue eye button) or deleted (red cross button). You may also create a new story by clicking the blue plus button. All stories within the selected scope are shown.
Please be aware that after changing the scope in Quicksettings it may be needed to hit Shift-F5 in your browser to refresh some cached files!
A story has a title which should be plain text and the story itself which could be html or also plain text. If you enter a valid date in Start Date or End Date, this story is shown only between these two dates.
After saving this story successfully, you are able to add images:
After the successful upload, you see all the uploaded images attached to the story:
Edit Story Images
You can change the image order by dragging and dropping the images. Every image has its own title and content like the story itself. The first image is shown when you open the story in view mode or when this story is shown in list view
Export and Import
You are able to export and import the content of the module.
When selecting Export, all the stories in shown in edit mode (depending on the selected scope) are written into one export file together with their templates and all included images. So it is easy to export the whole story and import it in another module or on another DNN installation. The module comes with 3 samples (installed in Templates folder on portal 0):
- Yahoo: 3 sample stories copied from Yahoo news
- iFixit: Step by step guide how to change the battery in an iphone 6
- MickeyMouse: Short Mickey comic strip
In a multilanguage portal you can edit the stories for every language seperately. Select the language you want to edit as portal language and then go to edit mode. The actual selected language is also shown in the editor:
Saving the story always saves the text to specific language tables!
You can edit your templates for view and list from the Quicksettings. After clicking the "Edit templates" button, you are in template editor mode:
Only people with admin rights are able to edit templates! Editing stories is able with edit rights
After selecting the template type (View, List or Stylesheet) you can load one of your templates in the Template File dropdown list. You can always create a new one by clicking the Add Template button and save it under a new name. The templates are pure html with placeholders in AngularJS syntax. See the existing templates for samples.