Commit Graph

44 Commits

Author SHA1 Message Date
Lombiq
15d27043d7 Fixing that some files had line endings mixed up (both LF and CRLF) 2015-12-03 00:00:36 +01:00
Lombiq
7e66c98dd5 Adding the ability to add a menu item under another item directly, #4009 2015-10-21 19:52:03 +02:00
Lombiq
a685517118 Normalizing all catch (Exception ex) lines and adding exception fatality check where applicable, fixes #3949 2015-09-07 00:17:57 +02:00
Sebastien Ros
4157896464 Refactoring menu permissions 2014-08-20 17:12:50 -07:00
Walance
126efc2028 #19861: Implementing menu permissions
Work Item: 19861
2014-08-20 15:34:04 -07:00
Erik Oppedijk
ad35f7d900 remove cast from dynamic to object for medium trust 2013-08-31 15:15:10 +02:00
Sebastien Ros
5223f74571 #19135: Fixing menu item hirerachies deletion
Work Item: 19135

--HG--
branch : 1.x
2012-10-16 17:43:36 -07:00
Sebastien Ros
5208b974f4 Removing error message when previous menu could not be found.
Would happen when deleting a menu.

--HG--
branch : 1.x
2012-08-21 11:47:29 -07:00
Sebastien Ros
c264dc8b78 Preserving current menu on item deletion
--HG--
branch : 1.5.x
2012-07-20 10:23:28 -07:00
Sebastien Ros
fc4a4c79f2 #18845: Persisting menu navigation during postbacks
Work Item: 18845

--HG--
branch : 1.5.x
2012-07-19 13:58:12 -07:00
Sebastien Ros
f659406712 #18769: Fixing menu import/export
Work Item: 18769

--HG--
branch : 1.x
2012-07-06 17:37:49 -07:00
Sebastien Ros
b8ac104474 Progressing on Menu Widget and Menu Part
--HG--
branch : 1.x
2012-05-17 18:03:24 -07:00
Sebastien Ros
5f5cf91421 Fixing compilation issues
--HG--
branch : 1.x
2012-05-17 10:22:20 -07:00
Sebastien Ros
1900aaa01a Implementing Menu Widgets
--HG--
branch : 1.x
2012-05-16 18:07:48 -07:00
Sebastien Ros
ea1e5fba36 Implementing Menu content items
--HG--
branch : 1.x
2012-05-15 18:09:09 -07:00
Sebastien Ros
c7daff1518 #18277: Confirm deletions
Work Item: 18277

--HG--
branch : 1.x
2011-12-15 16:26:54 -08:00
Louis DeJardin
cdfcda40aa Refactoring some Menu concerns
Simplify navigation admin controller for inserting a new menu item
Removed null top-level main menu item
Avoid use of content part in view model for post
Enable HasText to recognize LocalizedString
Flatten TextHint comparison for deduplicating menu items
Remove L1 Crop from NavigationManager

--HG--
branch : dev
2011-02-26 20:04:25 -08:00
Louis DeJardin
4a4ac2ef07 Changing MenuItem .Text to LocalizedString
Updating comparer to avoid collapsing url and routevalue items together
Flattened the navigation admin controller to avoid using MenuItem class in editor model
HtmlEncode the text of the menu item to be displayed
Updated TheMenu templates to use .text and .hinttext properties of LocalizedString

--HG--
branch : dev
2011-02-26 18:29:00 -08:00
Renaud Paquay
ddb728c181 Work Item: 17116
--HG--
branch : 1.x
2011-01-07 22:40:20 -08:00
Nathan Heskew
f2f739d935 Giving the admin menu an overhaul
Mainly consists of changes in top-level section positions and ordering. Also updated the position comparer (and tests) to work with negative numeric position parts.

--HG--
branch : dev
2010-11-01 15:57:20 -07:00
Louis DeJardin
70426a89b9 Overloading ContentPart to optionally have new shape passed in
If lambda takes an argument, it is dynamic, and is an uninitialized shape of the named type
ShapeHelper and IShapeHelperFactory are obsolete - IShapeFactory itself is now dynamic

--HG--
branch : dev
2010-10-15 17:24:30 -07:00
Dave Reed
d4f553fbc4 Refixing :)
--HG--
branch : dev
2010-10-14 15:02:27 -07:00
Sebastien Ros
284576a62a Fixed http://orchardqa.codeplex.com/workitem/96
- Admin menu not appearing on Admin/Navigation
- Dependencies where not resolved correctly

--HG--
branch : dev
2010-10-14 14:41:25 -07:00
Dave Reed
1581886883 Fixes qa#113: Add an empty main menu item causes an error
--HG--
branch : dev
2010-10-14 10:33:47 -07:00
Nathan Heskew
ddca57edd4 Making progress on updating the content manager API fit better with the new dynamic UI composition scheme
- Includes changing display-related implementations (drivers & views) to work with shapes
- Editor implementations still on the old template model
- Orchard.Blogs is currently using a different display type instead of specifying alterations (for Blog and BlogPost)

--HG--
branch : dev
2010-10-11 02:06:01 -07:00
Sebastien Ros
541c6d1e65 Migrating Common and Navigation
--HG--
branch : theming
2010-09-10 15:39:10 -07:00
Nathan Heskew
043bcf54ee Retiring ContentItemViewModel
...and all that entails
- things like IZone and IZoneCollection are barely roughed in

--HG--
branch : theming
2010-09-03 16:04:42 -07:00
Nathan Heskew
33d47b3c39 Build*Model -> Build*Shape (in process of changing to work with (Clay) shapes instead of ContentItemViewModel)
--HG--
branch : dev
2010-09-02 15:11:33 -07:00
Renaud Paquay
cc8f19196f Remove incorrect line in "IndexPOST" action
The navigation screen doesn't show any part other than "MenuPart".
Calling "UpdateEditorModel" on all the content items in the POST
action causes data loss (slug, title, tags, etc..) when clicking
the "Update All" button.

--HG--
branch : dev
2010-07-31 15:35:08 -07:00
Nathan Heskew
272300f5ef MenuItem -> MenuItemPart
--HG--
branch : dev
rename : src/Orchard.Web/Core/Navigation/Drivers/MenuItemDriver.cs => src/Orchard.Web/Core/Navigation/Drivers/MenuItemPartDriver.cs
rename : src/Orchard.Web/Core/Navigation/Handlers/MenuItemHandler.cs => src/Orchard.Web/Core/Navigation/Handlers/MenuItemPartHandler.cs
rename : src/Orchard.Web/Core/Navigation/Models/MenuItem.cs => src/Orchard.Web/Core/Navigation/Models/MenuItemPart.cs
rename : src/Orchard.Web/Core/Navigation/Models/MenuItemRecord.cs => src/Orchard.Web/Core/Navigation/Models/MenuItemPartRecord.cs
2010-07-23 00:32:51 -07:00
Suha Can
3064a5fcb7 - Making Localizer T properties public so the culture aware localizer can be injected.
- Some improvements to the resource manager.

--HG--
branch : dev
2010-06-02 13:54:50 -07:00
Anthony Steele
4b96ede0be Removed unneeded project references and using statements 2010-04-07 21:40:16 +01:00
Nathan Heskew
8e1207dd6b Fix for bug #16249
- Making removal of a menu item tied to a content item not remove that content item, instead the OnMainMenu bit is flipped
- Changing the text of the remove button to be either "Remove" (for items tied to content) or "Delete" (for standalone items)

--HG--
branch : dev
2010-03-01 00:40:23 -08:00
Louis DeJardin
09be861aaf Correcting some namespaces preparing for admin story
Orchard.Mvc.Filters contains base implementations, not specific functionality
Orchard.Mvc.AntiForgery and Orchard.UI.Admin contain specific functionality

--HG--
branch : dev
2010-02-25 23:45:37 -08:00
Erik Porter
7d543e14d3 Added some hacks to get http get calls to be validated when an attribute exists on a controller action
--HG--
branch : dev
2010-02-16 15:27:30 -08:00
Nathan Heskew
06e36a9a37 Making a ContentItem's menu items URL resolved and not editable
--HG--
branch : dev
2010-02-16 15:17:11 -08:00
Nathan Heskew
32683280df Changing the Main Menu manage form to treat MenuItems differently (editable URL)
--HG--
branch : dev
2010-02-16 14:33:18 -08:00
Nathan Heskew
a645bfa681 Getting the Main Menu item delete hooked up. Needs anti forgery token verification.
--HG--
branch : dev
2010-02-16 14:14:04 -08:00
Nathan Heskew
578cdcb38d Getting the Main Menu management (IndexPOST) wired up. Manage/create still needs validation.
--HG--
branch : dev
2010-02-16 14:04:23 -08:00
Nathan Heskew
a8eb9f6328 A little work on new menu item (in main menu management) validation
--HG--
branch : dev
2010-02-15 16:49:09 -08:00
Erik Porter
0ddf5f70d6 Hooked up a default value for position when a new menu item is added or a menu part is turned on for a content item
--HG--
branch : dev
2010-02-15 14:01:13 -08:00
Nathan Heskew
1c427ed3e7 Some work on "Manage Main Menu". Some controller actions stubbed out and create hooked up (validation lacking).
--HG--
branch : dev
rename : src/Orchard.Web/Core/Navigation/Models/MenuItemDriver.cs => src/Orchard.Web/Core/Navigation/Drivers/MenuItemDriver.cs
rename : src/Orchard.Web/Core/Navigation/Models/MenuPartDriver.cs => src/Orchard.Web/Core/Navigation/Drivers/MenuPartDriver.cs
rename : src/Orchard.Web/Core/Navigation/Models/MenuItemHandler.cs => src/Orchard.Web/Core/Navigation/Handlers/MenuItemHandler.cs
rename : src/Orchard.Web/Core/Navigation/Models/MenuPartHandler.cs => src/Orchard.Web/Core/Navigation/Handlers/MenuPartHandler.cs
2010-02-14 23:17:26 -08:00
Erik Porter
1b6df7a085 Forgot the rest of the files from the last checkin
--HG--
branch : dev
rename : src/Orchard.Web/Core/Navigation/Services/MainMenuFilter.cs => src/Orchard.Web/Core/Navigation/Filters/MainMenuFilter.cs
rename : src/Orchard.Web/Core/Navigation/ViewModels/NavigationIndexViewModel.cs => src/Orchard.Web/Core/Navigation/ViewModels/NavigationManagementViewModel.cs
2010-02-12 13:08:41 -08:00
Suha Can
015b26928f More Navigation backend work.
- MenuPart/record
- Permissions and AdminMenu for the core nav package as well as some placeholders for the upcoming work.

--HG--
branch : dev
2010-02-10 13:23:11 -08:00