Commit Graph

744 Commits

Author SHA1 Message Date
loudej
ac6e2a5961 Fixing a unit test that was broken when menus started cropping empty sections
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045948
2010-01-25 05:01:09 +00:00
rpaquay
741e04a2fb Fix Blog Post publishing to follow same logic as Pages
Scheduling, publishing, etc.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045947
2010-01-25 04:42:26 +00:00
rpaquay
031582d156 Fix scheduled publishing of pages
Data model is now correctly updated when publishing, creating drafts, scheduling publishing, etc. There is no code left in the pages module which directly sets the CommonAspect dates. All is properly done through the CommonAspectHandler, the ContentManager and the PublishingTaskManager.

There is a remaining issue with the background scheduler which is unable to run scheduled tasks (exception thrown by autofac). This will be investigated later.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045944
2010-01-25 03:44:51 +00:00
rpaquay
d135ed776d Adding section to increase transaction timeout
It's commented out, just uncomment it on dev boxes when running into "Transaction Timeout" exception when doing interactive debugging sessions of the app (default timeout is 1 minute, which is not much...)

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045937
2010-01-24 22:01:32 +00:00
rpaquay
e18c962e04 Fix issues with setting proper create/update/published dates on pages/blog post
The issue was that both the Pages and BlogPost handlers were adding a StorageFilter for the CommonVersionRecord. This was already done by the CommonAspectHandler, so we ended up having 3 StorageFilter for pages and blog post content items. This lead to incorrect behavior when creating instances (the CommonVersionRecord was re-initialized 3 times). The fix is to remove the StorageFilter from BlogPost and Page. Also added a check in StorageFilter to throw an exception is this situation is be detected in the future.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045936
2010-01-24 21:58:37 +00:00
rpaquay
966462667e First step into getting versioning/publishing working for blog posts and pages
Publishing/versioning/draft is now mostly working according to spec, next big thing to work on is scheduled publishing (use the TaskScheduler)

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045915
2010-01-24 07:46:16 +00:00
rpaquay
980b741a25 Fix RSS feed for comments
Need to use "Comment" content item instead of "CommentRecord"

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045909
2010-01-24 00:14:07 +00:00
rpaquay
0542649fdc Refactor comment creation code (don't use CommentRecord as data object)
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045905
2010-01-23 23:55:19 +00:00
rpaquay
308f4f089b Make "Comment" a content type and enable comment count at blog container level
* Fix bug where closing comments multiple times would result in inconsistent database.
* Rename a few classes/fields in Comments module to follow coding convention (Record suffix, Utc suffix for dates)
* Move classes to their own file
* Create a HasCommentContainer handler to enable displaying comment counts (approved/pending) for container (i.e. blog)

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045899
2010-01-23 23:21:08 +00:00
skewed
9eb3ae81f2 Changing case of files names in remaining themes (part 2 of 2)
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045871
2010-01-22 23:59:31 +00:00
skewed
adf2cdee3d Changing case of files names in remaining themes (part 1 of 2)
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045870
2010-01-22 23:57:56 +00:00
jowall
d82de6abee Updated green theme CSS.
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045869
2010-01-22 23:45:52 +00:00
ErikPorter
6940cf26d3 Hooked up cascade delete for tags (not yet completed).
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045868
2010-01-22 23:23:08 +00:00
skewed
574970327b Adding icons image to the default theme's Styles/images
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045865
2010-01-22 22:38:09 +00:00
skewed
d8db9e9c99 Adding auto slug conflict management ("versioning") on pages bulk publish
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045864
2010-01-22 22:25:52 +00:00
loudej
040a6e0305 Fixing a problem caused applying a patch
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045863
2010-01-22 22:19:28 +00:00
loudej
e9b32d59ca Extending security model for owned/other content permission support
Added an IContent parameter to IAuthorizationService and IAuthorizer
Added an IAuthorizationServiceEvents interface for modules to participate in the process
Updated the role-based authorization service to fire events and recheck access based on adjustments
Added hook in Orchard.Pages/Security/Authorization.cs with "pages" specific auth adjustments

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045861
2010-01-22 22:11:10 +00:00
ErikPorter
09c88f124c Hooked up blog archives ui to real data. Blog archives is now done.
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045856
2010-01-22 21:18:08 +00:00
loudej
3922abc31e When top level menu is empty due to security constraints, and it's not itself a link, it is not displayed
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045838
2010-01-22 10:25:50 +00:00
skewed
c5bbac560b Changing case of files names (part 2 of 2)
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045836
2010-01-22 08:07:03 +00:00
skewed
928b1c077b Changing case of files names (part 1 of 2)
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045835
2010-01-22 08:04:41 +00:00
skewed
1e7ae582f0 Changing case of template names (in code. filenames to follow)
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045834
2010-01-22 07:58:38 +00:00
loudej
7f09516e8c Updating security processing. Adding a base for an OrchardException hierarchy.
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045830
2010-01-22 06:32:54 +00:00
loudej
c455394cc2 Further work updating security model
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045826
2010-01-22 05:28:00 +00:00
loudej
6d95217b6a Further work updating security model
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045825
2010-01-22 05:25:54 +00:00
rpaquay
95d5398f50 bug fixes
* Display comment count in blog post (admin and front-end).
* In admin, also display # of pending comments.
* In admin, both comment count and pending count are hyperlinks to the "manage comments" page for the blog post.
* Fix a few incorrect redirect calls in the comments module
* Removed fake comment count display for aggregate blog view (we will resurrect it later with a correct implementation)

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045823
2010-01-22 02:06:07 +00:00
skewed
3a924430d2 Changing page delete action to use the id instead of slug
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045805
2010-01-21 21:59:57 +00:00
rpaquay
b045c6d1dd Make page and blog post editing experience consistent
When editing/creating a blog post or a page, the "save" button always redirects to the "edit" page, with a notification message at the top stating the new state of the page (draft, published, scheduled for publishing).

This makes the experience consistent with Wordpress blog editing, and also fixes a Pri1 bug about a 404 when creating a draft post.

This also fixes a bug where "publish later" wasn't working (strings are evil) for either blog of page.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045802
2010-01-21 21:21:04 +00:00
skewed
910ca4f916 Ensuring remaining data-manipulating controller actions are POSTs
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045801
2010-01-21 21:13:35 +00:00
skewed
fdae78826b - Changing all BlogPost admin actions to use the post's id instead of slug (since only published slugs are guaranteed to be unique in any container)
- Changing the BlogPost publish action to POST only
- Changing how BlogPosts are published on create to get the publishing/published events fired (temp workaround)
- Adding unique slug generation on publish for out of the editor for a unique published slug guarantee

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045793
2010-01-21 20:17:40 +00:00
skewed
a592fae1c3 - Re-enabled (and rewrote) some of the RoutableService tests
- RoutableAspect's slug field taken out of tab order w/ JS (when the slugifier is going to do its thing)

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045777
2010-01-21 16:54:00 +00:00
rpaquay
78fd2dd28d 2 bug fixes
* Display correct post count in blog summary (admin): display total number of posts and total number of post not yet published
* Display correct comment count in blog post summary (admin and front-end): display the number of _approved_ (vs pending) comments only.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045769
2010-01-21 07:27:47 +00:00
loudej
be83ae475a Ignoring Package.txt during commit if present in folder
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045760
2010-01-20 23:58:24 +00:00
loudej
7968aad284 Disabling sandbox by default
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045758
2010-01-20 23:45:23 +00:00
rpaquay
b88fe2667d Fix blog post count in front-end
BlogPostCount per blog is now recomputed from the list published blog whenever there is a change in any posts of the blog. This is more deterministic than trying to keep incrementing/decrementing when the changes happen.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045749
2010-01-20 21:55:49 +00:00
jowall
3291efeb71 Updated theme thumbnail files and removed old images. Commented out helper text on manage pages and manage blogs. Adjusted some margins in admin.
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045746
2010-01-20 20:52:00 +00:00
skewed
d0e00a91ed - Making client slug generation (via POST) container aware to aid in unique slug generation
- Changing Slugify URL (from /common/routable/slugify) to /admin/common/routable/slugify

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045745
2010-01-20 20:50:09 +00:00
rpaquay
4a5bfc2dfd Adding "Flush" method to content manager
This is needed when you need to make queries that rely on state changed inside the session UOW.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045743
2010-01-20 20:29:49 +00:00
loudej
6c6b67af2b Refactoring permissions. First stage is renaming and collapsing some fine-grained permissions.
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045742
2010-01-20 20:18:42 +00:00
suhacan
135ce3d661 - Blogs: Fixing publish now button on Blog Details page throws 404 issue, and other inconsistencies related to publish now button visibility and the Draft/publish date information in that view.
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045740
2010-01-20 19:50:42 +00:00
loudej
90cd0451c8 Dialing back the debug output
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045738
2010-01-20 19:09:39 +00:00
skewed
5285b24733 - Adding the RoutableAspect editor template's permalink slug prefix display based on container slugs
- Got the rest of the hard coded prefix usage out of the RoutableAspect's editor template

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045731
2010-01-20 09:26:33 +00:00
rpaquay
1ae1770b0d Initial work to support loading MVC Areas as Orchard modules
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045728
2010-01-20 06:43:39 +00:00
skewed
03d7d076f2 - Slug generation (for Blog, BlogPost and Page) reworked so a page can set its own slug rules and all content types get better AJAX-ified slug generation now that it is (and can be) content type aware (except for BlogPost, it needs some context about its parent so it can gen a unique slug for a post within a given blog)
- Page edit actions changed over to use id instead of slug (others should follow suit since slug uniqueness is only guaranteed among published content items...where applicable, there is no notion of a "published" blog)

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045722
2010-01-20 01:19:16 +00:00
jowall
28cb6715af Updated themes and admin and added a delete icon.
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045720
2010-01-20 00:16:48 +00:00
suhacan
7170b74f6c - Blogs: When saving a draft post, should redirect to/Edit admin URL for that post
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045708
2010-01-19 19:52:08 +00:00
suhacan
f4c22d37ee - Fix for bug: When publishing a post from the “edit post” page, should redirect to the list of posts
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045707
2010-01-19 19:35:27 +00:00
loudej
1920138e57 Some renames and cleanup related to feed code
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045702
2010-01-19 18:27:51 +00:00
jowall
507f3ecab7 Removed <h1> tag and text from the top of the list of blogs page.
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045701
2010-01-19 17:45:47 +00:00
loudej
0df2ac484c Wiring up comments module support for feeds... Adding rss urls to headers in some blogs module actions...
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045678
2010-01-19 06:29:58 +00:00