U4-1303 - UI tooling support for Partial View Macros

Created by Shannon Deminick 08 Dec 2012, 20:27:33 Updated by Shannon Deminick 30 Apr 2013, 23:51:53

Relates to: U4-1364

Partial view macros are in place and working but there is currently no UI tooling support for this. We need to create another tree in the developer section, just like xslt that allows people to create/edit partial view macros. The same script editor should be used for editing MVC views (or at least it should derive from a base class of some sort). The editor should support all of the same things as the MVC editor (which still requires more work too!) except that you cannot specify a layout page and the page that a Partial View macro derives from is of type: Umbraco.Web.Macros.PartialViewMacroPage

Comments

Shannon Deminick 30 Dec 2012, 00:23:04

I have committed some code for this but the UI stuff isn't complete.

There will be 2 new trees: Settings/Partial Views Developer/Macro Partials (though the naming is kind of strange but not sure what else to call it to make it different)

The first tree is simply to be able to edit/create Partial View files that are not macros similar to how you can create js scripts.

The second is the tree to manage Partial views for macros like we manage razor or xslt files. This tree is not there yet but will support the 'new' dialog to create macros from the file just like razor or xslt.


esunxray 30 Dec 2012, 01:04:40

rename as Partial Views Macro


Shannon Deminick 03 Jan 2013, 14:12:51

The tree name in the dev section for partial view macros is "Partial View Macro Files" to be consistent with the other names in that section (i.e. "Xslt files", "Scripting files".


Shannon Deminick 03 Jan 2013, 22:51:35

re-opened as I forgot to add the new create dialog for Partial View macro files which will automatically create a macro for you, like it works with xslt/razor.etc...


Brendan Rice 30 Apr 2013, 18:34:28

I was using Umbraco 4.11.6 and have partial views (under views/partial) but these do not show up in the content tree anywhere. The problem is that the client has an SLA with another company who won't let anyone news the deployed files and charge him £60 every time a change needs to be made. Most of the logic is in the partials so ideally we should be able to edit them in settings or developer.

Any plans to add this into 4.11.x?

http://our.umbraco.org/forum/developers/razor/40565-Partial-Views-in-Umbraco-4116


Shannon Deminick 30 Apr 2013, 23:51:53

That's sort of dependent on this here: U4-1651 and has been reported here: U4-2151

I don't think this will make it in to the 4.x releases, will be a 6.x feature. You can of course easily create your own tree to show partial views just like we show normal views.


Priority: Normal

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category: Editor

Backwards Compatible: False

Fix Submitted:

Affected versions:

Due in version:

Sprint:

Story Points:

Cycle: