Commit graph

51 commits

Author SHA1 Message Date
Colin Kuskie
08f6bd8b58 Fix description field of the Story RSS feed. Fixes bug #11112 2009-10-11 19:03:55 -07:00
Colin Kuskie
a02b4c7bb4 JSON fields need autoGenerate=>0 and noFormPost=>1, fixes bug #11075 2009-09-30 11:26:01 -07:00
Colin Kuskie
494d97c53f Fix the carousel in the Story. Bug #10915
Add a template variables for the photoWidth from the Story's Archive.
Document the new template variable, with i18n.
Modify both Archive and Topic templates.
2009-09-05 14:56:16 -07:00
Colin Kuskie
7fcb339605 Upgrade all database tables that use JSON to be LONGTEXT instead of what they were.
Addresses bug #10825
2009-08-25 21:42:16 +00:00
Colin Kuskie
92815bb75d Change www_delete and www_cut to use either the container, or the parent
as the asset to return the user to after their actions.
Subclass getContainer in the Story, and alias it to getArchive.
Fixes bug 10657.
2009-08-14 19:43:14 +00:00
Colin Kuskie
e886474284 Draw a fieldset around each Photo and its metadata.
Change the delete label so that it is clear that you are deleting the image and the metadata.
Redo the image upload form so that it is clear that uploading a new image to a photo with
an existing image replaces the existing with the new one.
2009-08-13 21:30:49 +00:00
Colin Kuskie
f34dc2c8f0 Add Story fields to the search index. 2009-07-24 18:15:18 +00:00
Colin Kuskie
4226ef211f Remove autocommit from addRev in Story, because it committed the
story before the keywords were set, which messed up searching.
Adjust tests to request autocommit on all submitted stories.
2009-07-24 17:26:50 +00:00
Colin Kuskie
1c40934876 Fix a typo in the story link back to the archive, to limit display to only 1 keyword. 2009-07-16 03:10:27 +00:00
Colin Kuskie
cff07644e0 Fix POD to increase POD coverage, mainly by fixing typos and removing
unused code.
2009-07-04 17:12:13 +00:00
Colin Kuskie
a4be42a7ce Fix bugs with resizing photos on upload. 2009-06-23 00:07:16 +00:00
Colin Kuskie
fcad3a112d Fix a bug in the Story when handling images of different sizes. Add a
photoWidth property to the StoryArchive, and resize all newly uploaded pictures
to a Story.
2009-06-08 21:51:33 +00:00
Colin Kuskie
45d1791876 Remove multiple delete buttons for photos in the Story. Ala GalleryFile/Photo. 2009-06-02 01:39:22 +00:00
Colin Kuskie
83497b773e Fix Story permissions so that admin need not be turned on.
canEdit is now determined by the Story and the parent StoryArchive.
With tests, and template changes.
2009-05-28 04:15:50 +00:00
Colin Kuskie
be4b0dc4d4 Fix bugs in the default story archive template (pagination bar) and
the subtitle in the Story.
2009-05-20 16:18:02 +00:00
Colin Kuskie
ef7abeec77 Make the Story Manager assets use the new icons. 2009-05-13 22:04:43 +00:00
Colin Kuskie
1b8ad91605 Add in StoryManager, 3 assets for managing news content in WebGUI.
Several small API changes to Keyword and AssetExportHtml to support StoryManager functionality.
2009-04-24 18:31:06 +00:00
Colin Kuskie
4768a8687e Add storage locations to package data for a Story. With tests. 2009-04-13 17:56:44 +00:00
Colin Kuskie
9f5a82cec8 Update POD for several methods. 2009-04-13 17:43:41 +00:00
Colin Kuskie
ec4713855a Convert Story asset to use Class::C3 properly.
Add a method to duplicate the photo collateral JSON data, with tests.
Make addRevision and duplicate use that method.
2009-04-13 16:33:24 +00:00
Colin Kuskie
cf546ad031 Add headline field, with templates. 2009-04-09 14:53:10 +00:00
Colin Kuskie
3853e4dd02 Add a method to return RSS data for a Story, with tests. 2009-04-08 22:28:59 +00:00
Colin Kuskie
cecfff40fe Update Story to use awesome new Keywords 2009-04-08 16:41:51 +00:00
Colin Kuskie
2bd407d70e Prune out preview code for now. 2009-03-24 19:36:02 +00:00
Colin Kuskie
08747a8fee Make the save and add another photo button work. Add it to the default template. 2009-03-23 20:54:14 +00:00
Colin Kuskie
485195e7d5 Recommit the fix for updating existing storage locations. 2009-03-23 18:27:11 +00:00
Colin Kuskie
953b96dbe7 Fix a few small bugs related to uploading and postprocessing images. 2009-03-23 17:57:20 +00:00
Colin Kuskie
8b071cb892 Add template variables for determining if a story has photos, and how many it has.
Tests, help, i18n.
2009-03-23 15:08:54 +00:00
Colin Kuskie
7b6ea1350f Code to delete photos and their data. 2009-03-23 05:11:01 +00:00
Colin Kuskie
c8da6cfe26 Fix a bug where the cached data structure was not deleted.
Add template variables for showing the uploaded photos.
Add tests for the template variables.
Add a form field to delete the photo with all data.
2009-03-23 05:01:36 +00:00
Colin Kuskie
e5cdfdfae8 Put storageIds into the JSON blob.
Add image and image data upload for annotating photos for stories.
2009-03-23 03:02:44 +00:00
Colin Kuskie
3d5f5b04c1 Rearrange form fields in default edit story template.
Change photo JSON blob to be an array ref, not a hash ref.
Code for saving new photo data.
2009-03-20 21:42:47 +00:00
Colin Kuskie
420a70531b Add form fields for uploading images to the Story.
Help, i18n for those fields.
Need to be added to the template.
2009-03-20 18:20:47 +00:00
Colin Kuskie
3e461decb9 Add crumb trail template variable in code, and in templates.
Remove standalone topic package, and update the main storymanager package.
2009-03-20 04:16:42 +00:00
Colin Kuskie
8e7fcd0e6c Remove quotes from Help vars.
Add crumb trail template variables to the Story.
Fix links for keywords in the Story.
2009-03-20 03:46:10 +00:00
Colin Kuskie
4867750fd9 Beginning of Topic showing an Story.
Story now has a crumb trail.  Needs to be added to template vars and to template.
2009-03-20 00:08:47 +00:00
Colin Kuskie
c7a66861a6 The URL for the story was changing when the story was edited. The initial
URL was based on the current asset, which is the Archive instead of the Folder.
(Archive hands off to Folder in addChild).
On following edits, no URL was passed, so one was built from the parent, which
is the Folder.
Fix this by passing in the existing URL as an hidden form param.
2009-03-10 00:31:19 +00:00
Colin Kuskie
9487b7d4ac Complete rework of Story autocommit.
Tests for status of Stories that have been autocommitted.
Keyword search interface with UI and tests.
2009-03-09 20:59:28 +00:00
Colin Kuskie
4b1ec30748 Formatted duration template variable and method, with tests.
Start writing Story help.
2009-03-07 00:01:41 +00:00
Colin Kuskie
5bb4cbf299 change names of loops to be _loop vs Loop.
Added keyword loop variable.
Change subtitle to a textarea.
Add tests for Story template variables.
2009-03-05 23:43:50 +00:00
Colin Kuskie
882b8a5c89 Viewing stories is now possible. 2009-03-05 22:47:43 +00:00
Colin Kuskie
e0f46517bb Add a cancel button to the edit story form. 2009-03-05 17:59:22 +00:00
Colin Kuskie
40d17b7be9 Add stories to a story archive.
i18n support for that.
log problems when calling www_add in the story archive.
2009-03-05 17:22:41 +00:00
Colin Kuskie
426bc41b04 Add a getArchive method to the Story. Test it.
Make www_edit work.
2009-03-05 01:01:45 +00:00
Colin Kuskie
874fad9917 Make edit story form values sticky, for preview. 2009-03-04 23:25:18 +00:00
Colin Kuskie
f7ebd6189a Beginnings of an edit form for the Story. 2009-03-04 18:11:57 +00:00
Colin Kuskie
2f0b2638cf Handle the case when purging a story, and there's no storage location. 2009-03-03 23:50:45 +00:00
Colin Kuskie
e5c56dcf70 Add JSON handling, and move code form addRevision to update. 2009-03-03 00:36:38 +00:00
Colin Kuskie
02dc71055b Story code. Added validParent, storage location code. 2009-03-02 20:20:43 +00:00
Colin Kuskie
daf6c7bd92 Clean up autoGenerateForms in definition. 2009-02-27 20:56:26 +00:00