Morten Christensen
169db0c15f
Fixes U4-1368 so the FileHandlerData doesn't handle setting properties for Document and Media.
...
Properties using the UploadField will have its value as well as related values updated in a BeforeSave event.
2013-01-02 14:28:15 -01:00
Shannon Deminick
e9f581bb51
Fixes #U4-1366 - conflict with partial view macro engine.
2013-01-01 00:42:20 +03:00
Sebastiaan Janssen
173d5552c0
U4-1376 Remove internal dependencies on GlobalSettings.DbDsn
2012-12-31 13:57:29 -01:00
Morten Christensen
f4706fcfb7
Fixes U4-1370 for ContentTypes thats loading using new api meaning that the fix only applies to Content and Media, but currently not Members.
...
For Members there is still an issue with MasterContentTypes, as the full structure is not loaded. Need to make the sql lookup recursive-
2012-12-30 18:26:08 -01:00
Morten Christensen
b3b23e736b
Restructering strategies in folders
2012-12-30 07:17:04 -01:00
Shannon Deminick
e9af1cb865
Fixes #U4-1048 - package installer cleanup, etc...
2012-12-28 19:34:57 +03:00
Morten Christensen
3ae5aa7195
Refactoring nodeSorter to utilize the changes made to the legacy/new api refactor.
...
Making a few of the public properties on CMSNode virtual, so we can override them in the Document and Media classes, which allow us to use the new api for saving changes to these properties instead of having them saved directly to the database.
2012-12-28 13:40:35 -01:00
Sebastiaan Janssen
8ef6ca73f6
Merge with 4.11.2
2012-12-28 09:02:45 -01:00
Sebastiaan Janssen
1e4361ed2f
Merge with 6.0.0-LegacyApi-Refactor
2012-12-28 08:45:40 -01:00
Sebastiaan Janssen
bf78334290
Realized I was doing the added Save in the wrong place
2012-12-27 17:53:23 -01:00
Sebastiaan Janssen
c97085f9bb
Fix errors and wrong display of subnodes under and unpublished node showing as
...
published. Also fixes error message where it says on the subnode:
This document is published but is not visible because the parent '???' is unpublished
2012-12-27 17:29:54 -01:00
Sebastiaan Janssen
140c1db66a
Fixing umbEnsureUniqueName not being ran for a document copy
2012-12-27 15:39:37 -01:00
Sebastiaan Janssen
77f279eb53
Make move from recycle bin work again, pretty hacky
2012-12-27 13:42:31 -01:00
Sebastiaan Janssen
ef32ed50c4
Fix sorting
2012-12-27 12:03:51 -01:00
Sebastiaan Janssen
fae949145e
Remove more non-audit logtypes for U4-7
2012-12-26 14:39:27 -01:00
Sebastiaan Janssen
16289b8f2d
U4-7 - Finish logging refactor
2012-12-26 11:59:51 -01:00
Sebastiaan Janssen
dc111768e3
Slight MediaFactory refactors, mostly to fix issue U4-1344 where files wouldn't
...
upload if the "magic" umbraco props don't exist (witdth, height, bytes)
2012-12-23 11:46:04 -01:00
Sebastiaan Janssen
2d68f3547a
Merge
2012-12-20 16:24:10 -01:00
Sebastiaan Janssen
9334f55fa6
When trying to query the umbracoApp table, check if it exists first
...
In the package installer, after creating a docType, also save it (now required)
In DocumentType, use the whole contentType to new-up a docType and check if the
allowedtemplate isn't null
Properties can have empty strings as values, can't convert those to int/datetime
Seperator character in ExpressionHelper was string.Empty, got malformed queries
2012-12-20 16:20:56 -01:00
Morten Christensen
8b5a85d98f
Removing comments and old code from DocumentType class.
2012-12-20 14:33:45 -01:00
Morten Christensen
9f2d41286c
Fixing MasterContentType for DocumentTypes.
...
Adding ParentId "listener" to the repositories that uses ParentId, so we can ensure that the path is updated correctly.
Fixing how AllowedTemplates are saved upon creation of a new DocumentType.
Ensuring DocumentType.Save is called when creting a new DocumentType.
Fixing Publish/RePublish of Content with previously published children.
Removing UpdateDocumentCache in the save event of editContent.aspx.cs as its now handled in the new api.
Rewiring template methods on DocumentType class to use the new api.
2012-12-20 14:29:08 -01:00
Morten Christensen
2952990ad4
Refactoring the legacy base ContentType class to better allow the usage of both new and old api.
...
A few of the shared properties are now saved by the new api for DocumentType and MediaType, whereas the MemberType still uses the old style.
2012-12-19 10:13:56 -01:00
Morten Christensen
3742a0b731
Refactoring legacy MediaType class to use new public api.
...
Adding remove Template method to new ContenType class.
2012-12-19 08:50:35 -01:00
Morten Christensen
2535438978
Starting refactor of DocumentType, MediaType and the base ContentType class.
2012-12-18 14:50:26 -01:00
Morten Christensen
d8da990080
Refactoring legacy Media to use new Public API.
2012-12-18 13:55:19 -01:00
Morten Christensen
bae4352e77
Refactoring the saving of properties, so that its consistent for Content, Media and Member that all use the ContentControl.
...
Adding a clear cache call in the MediaType and DocumentType Save method to ensure the correct loading of properties/propertytypes.
Adding IsPublishable method to ContentService, so we have a way to check if a content can be published depending on the state of the ancestors.
2012-12-18 11:46:05 -01:00
Morten Christensen
806c2a7ea4
Refactoring legacy Content, Property and propertytype though still a WIP.
2012-12-17 15:07:08 -01:00
Morten Christensen
30d7381ee3
Correcting all usages of getProperties to GenericProperties since its marked as Obsolete and shouldn't be used anymore.
...
Starting refactor of legacy Content class.
Refactoring DefaultData to use new datalayer.
Updating usages of the ServiceContext after as its no longer a singleton.
Correcting a few merge issues.
2012-12-17 11:16:09 -01:00
Morten Christensen
0cce4a1a9e
Updating DefaultData and ContentControl to better support saving through the new api.
...
DataTypes doesn't save directly to the db, but keeps the value in-memory so the save can be handled by the new api.
Correcting the usage of versioning in the ContentRepository.
2012-12-14 11:43:16 -01:00
Morten Christensen
22c15bc0ba
Merge with 6.0.0
2012-12-14 07:27:42 -01:00
Sebastiaan Janssen
a41e0323df
Merge
2012-12-13 16:11:56 -01:00
Stephan
06952833ef
U4-1212, U4-1312 - fix Document.PathPublished
2012-12-13 15:48:46 -01:00
Stephan
3a93da6256
U4-1212, U4-1312 - fix Document.PathPublished
2012-12-13 15:48:46 -01:00
Sebastiaan Janssen
b1091f91dc
Fixes U4-1320 - Dictionary delete query isn't paremterized
2012-12-13 15:48:18 -01:00
Morten Christensen
207c651743
Refactoring the Document class for publishing and unpublishing.
...
Bumped into an issue with nullable datetime and petapoco, which now has a workaround in our IMapper.
Fix a few issues around the Published state on previous versions.
2012-12-13 13:05:23 -01:00
Morten Christensen
0cdb7af3eb
Adding internal constructor overloads to Document, Content and CMSNode for better setup of legacy objects using new objects.
2012-12-12 18:44:55 -01:00
Morten Christensen
3f35f1df00
Refactoring Document class to use new public api.
...
Adding Obsolete attributes to methods in Document class that has been updated.
Updating the PublishingStrategy to fire final event after content and xml has been properly updated in the db.
Adding a few new methods to the ContentService.
2012-12-12 15:17:48 -01:00
Morten Christensen
29762e227a
Refactoring the usage of Copy in the ContentService, so that it could be implemented in the Document class.
2012-12-12 10:22:58 -01:00
Morten Christensen
6c7484a1bf
Merge with 6.0.0
2012-12-12 09:01:26 -01:00
Morten Christensen
1eaa117883
Adding HasChildren check to ContentService and ContentTypeService.
...
Correcting an issue with loading of template ids in DocumentType class.
2012-12-11 14:27:18 -01:00
Morten Christensen
64b91ae1e4
Refactoring DocumentType class to use new public api in the following methods:
...
MakeNew
setupNode
GetByAlias
GetAllAsList
2012-12-11 13:34:00 -01:00
Morten Christensen
170293da41
Adding a few new methods to the ContentService and refactoring a few quirks.
...
Refactoring following methods in the Document class:
setupNode
MakeNew
GetRootDocuments
GetDocumentsOfDocumentType
GetDocumentsForExpiration
GetDocumentsForRelease
Rollback
GetVersions
GetPublishedVersion
GetDescendants
MoveToTrash
2012-12-11 12:15:37 -01:00
Morten Christensen
6516041617
Merge with 6.0.0
2012-12-11 08:55:45 -01:00
Shannon Deminick
56b70ad229
Updated a ton of Error logging calls to use the new LogHelper but there are still plenty more to go; #u4-7
2012-12-10 05:03:28 +05:00
Shannon Deminick
1e19c4b65b
Converted much of the old logging to use the new logging. All calls for log types: Login, Logout,
...
LoginFailure, Debug. There's still a bunch to convert though. #U4-7
2012-12-10 04:22:29 +05:00
Shannon Deminick
73414f4504
Merge with default
2012-12-07 19:56:40 +05:00
Morten Christensen
e1896319ec
Initial refactoring of the Document class to use the new public api.
...
And some experiments with medium trust and dynamic method.
2012-12-07 08:48:46 -01:00
Shannon Deminick
2a90e93a6f
Updated partial view macro engine to support storing the files in the App_Plugins/[packagename]/Views/MacroPartials
...
so they can be stored with a package and not pollute the main file system.
2012-12-07 07:04:11 +05:00
Shannon Deminick
8e4644568b
Updated loghelper to be able to Warn and also trace Warn with an exception. Updated the macro control to check for the
...
Partial View Macro, added Partial View macro to the enum.
2012-12-04 05:58:24 +05:00
Shannon Deminick
e0a71830fa
Updated macro editor to support Partial view macros. Improves the JS in the editor (no more c# based js) which auto clears
...
other fields and drop downs when other files are selected.
2012-12-04 05:42:15 +05:00