U4-776 - umbraco:item xslt property not rendering in template

Created by Josiah Thoen 08 Sep 2012, 01:25:54 Updated by Ben Tice 06 Nov 2012, 21:01:02

Subtask of: U4-760

The following worked in 4.8.1, it is not working in 4.9.0:

<umbraco:Item runat="server" field="highSchoolNode" xslt="concat('<a id="highSchoolCmd" class="xgrid_12" href="', umbraco.library:NiceUrl({0}), '">')" xsltDisableEscaping="true" />

High School High School

4 Attachments

Download Resources.Designer.diff

Download ItemRenderer.diff

Download inlinexsltfix490.zip

Download inlinexsltfix491.zip

Comments

Emilie 13 Sep 2012, 13:11:51

The same goes for me. It's really perfect when you for example want to format DateTime directly in the template without having to create a macro or write an inline razor macro.

Is this something that has been removed in 4.9 or is it just a bug?


Michael Wulff Nielsen 14 Sep 2012, 12:53:56

I have the same bug. This is the error reported:

ItemRenderer Error rendering Item 1 (NodeId '' : headline). Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Umbraco.Web.umbraco.templateControls.Resources.resources" was correctly embedded or linked into assembly "umbraco" at compile time, or that all the satellite assemblies required are loadable and fully signed. at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName) at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark) at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark) at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) at System.Resources.ResourceManager.GetString(String name, CultureInfo culture) at Umbraco.Web.umbraco.templateControls.Resources.get_InlineXslt() in C:\Users\mwn\Desktop\umbraco\src\Umbraco.Web\umbraco.presentation\umbraco\templateControls\Resources.Designer.cs:line 81 at umbraco.presentation.templateControls.ItemRenderer.XsltTransform(String xpath, String itemData, Boolean disableEscaping) in C:\Users\mwn\Desktop\umbraco\src\Umbraco.Web\umbraco.presentation\umbraco\templateControls\ItemRenderer.cs:line 236 at umbraco.presentation.templateControls.ItemRenderer.Render(Item item, HtmlTextWriter writer) in C:\Users\mwn\Desktop\umbraco\src\Umbraco.Web\umbraco.presentation\umbraco\templateControls\ItemRenderer.cs:line 61


Michael Wulff Nielsen 14 Sep 2012, 13:08:03

This two diffs solve the problem. Apply in the: src\Umbraco.Web\umbraco.presentation\umbraco\templateControls folder.


Sebastiaan Janssen 14 Sep 2012, 13:34:28

Fixed in changeset [3648b5423437|http://umbraco.codeplex.com/SourceControl/changeset/3648b5423437], thanks Micheal! A patched umbraco.dll to fix this in umbraco 4.9 can be found here: http://dl.dropbox.com/u/3006713/inlinexsltfix490.zip


esunxray 15 Sep 2012, 00:36:53

take so long time to find out how to solve this problem last night, but it's useless. thanks for this patch. I can't download this patch from dropbox, can you upload it here? thanks.


Sebastiaan Janssen 15 Sep 2012, 10:03:48

Sure thing, attached now


esunxray 15 Sep 2012, 10:37:06

thank you.


Ben Tice 01 Nov 2012, 20:24:54

Applied the fix in 4.9, but the issue reappeared in 4.9.1. Is there an updated dll? Thanks!


Michael Wulff Nielsen 02 Nov 2012, 15:53:32

It is fixed in 4.10.0. Which has new been released to testing, it will be out in a few days AFAIK.


Ben Tice 05 Nov 2012, 20:04:17

Yes, looks like it's in 4.10.0. I'm just apprehensive to make that jump too quickly as there seem to be major changes on the way. Looks like working around it with macros is the way to go for now.


Sebastiaan Janssen 06 Nov 2012, 16:54:00

Sorry, forgot to apply this fix to 4.9.1. Attached new umbraco.dll for 4.9.1.


Ben Tice 06 Nov 2012, 21:01:02

You're the man, Sebastiaan! Thanks!


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category: UI

Backwards Compatible: True

Fix Submitted: Patch

Affected versions: 4.9.0, 4.9.1

Due in version: 4.10.0

Sprint:

Story Points:

Cycle: