Commit Graph

553 Commits

Author SHA1 Message Date
ErikPorter
ad16a2e051 Made archives ui render on archives page.
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045991
2010-01-26 18:58:05 +00:00
loudej
27e87db9f3 Adding http://meyerweb.com/eric/tools/css/reset/reset.css to lib folder
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045980
2010-01-26 05:06:31 +00:00
rpaquay
99a38bf865 Update comment counts to be consistent with post count:
In admin, display total # of comments (active+pending) following (optionally) by the number of pending comments

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045979
2010-01-26 05:05:05 +00:00
rpaquay
1b780e242e Fix pages slug to not be case sensitive when used in url
There was one line of code left to be resurrected from the old cms pages module

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045978
2010-01-26 05:03:55 +00:00
loudej
ac483d511e Adding jquery to lib folder
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045977
2010-01-26 05:01:41 +00:00
loudej
1db442e2dc Mapping permissions into default role stereotypes
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045975
2010-01-26 01:17:04 +00:00
rpaquay
cc079a8aa4 Bug fix
Re-activate the slug constraint for pages. Published pages now should get their friendly slug on the front-end.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045974
2010-01-26 01:08:58 +00:00
loudej
c026cb9e34 Small rename in utility method
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045958
2010-01-25 18:23:38 +00:00
loudej
60b4db7cbb Initial placeholder http context to be used in background tasks
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045949
2010-01-25 06:58:37 +00:00
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