diff options
| author | 2014-03-28 22:13:42 +0100 | |
|---|---|---|
| committer | 2014-03-28 22:13:42 +0100 | |
| commit | d464833922e9cc00948698aed0a2af1f0b55e101 (patch) | |
| tree | b3d8b618601ada9cdf0f4073aa7fa864fd2f3b55 /app/views | |
| parent | 05cc97a8f43d779fbea52f5ef47fe6a71c3ab692 (diff) | |
Improve import / export functionnality
It is not finished yet and does not even work at all!!
- ZIP archive can be uploaded
- Entries are imported from starred.json and feed*.json but not added in DB for
the moment.
- Fix export (add author, id -> guid, content -> content.content and add
alternate)
See https://github.com/marienfressinaud/FreshRSS/issues/163
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/helpers/export/articles.phtml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/app/views/helpers/export/articles.phtml b/app/views/helpers/export/articles.phtml index 71ac22f44..ffdca1daa 100644 --- a/app/views/helpers/export/articles.phtml +++ b/app/views/helpers/export/articles.phtml @@ -16,12 +16,19 @@ } $articles['items'][] = array( - 'id' => $entry->id(), + 'id' => $entry->guid(), 'categories' => array_values($entry->tags()), 'title' => $entry->title(), + 'author' => $entry->author(), 'published' => $entry->date(true), 'updated' => $entry->date(true), - 'content' => $entry->content(), + 'alternate' => array(array( + 'href' => $entry->link(), + 'type' => 'text/html' + )), + 'content' => array( + 'content' => $entry->content() + ), 'origin' => array( 'streamId' => $feed->id(), 'title' => $feed->name(), |
