question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Umbraco Content data source doesn't work on member

See original GitHub issue

Which Contentment version are you using?

1.4.4

Which Umbraco version are you using? For example: 8.14.1 - don’t just write v8

8.13.1

Bug summary

Not sure if this is a bug in Contentment as it is also the behaviour with MNTP.

When using Umbraco Content data source on a member, the data list doesn’t show any data. This is probably because it doesn’t know about the context. I can probably use $root instead of $site when we know only a single site node is used:

image

I suggested this some time ago to make MNTP work on Media and Member types, when current section is not Content section: https://github.com/umbraco/Umbraco-CMS/pull/10049

Steps to reproduce

Create a datatype using Data List and Umbraco Content as datasource. Specify Xpath query using $site and add a property to a member type using this datatype.

When “Add” on member property no content is shown in overlay.

Expected result / actual result

No response

Do you have Umbraco ModelsBuilder enabled?

  • Yes, it is enabled.

What browsers are you seeing the problem on?

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
leekellehercommented, Nov 11, 2021

The main reason for the Umbraco dependency bump was to do with the <umb-icon> directive, (and v8.14 was the latest at the time). Always tricky for a package developer to balance progress/enhancements with maintenance/support. 😬

For now I think a custom data source using Internal og External examine index may be good enough 😊

Feel free to reuse what you need from the Examine data-source - if it helps? e.g. https://github.com/leekelleher/umbraco-contentment/blob/dev/v2.x/src/Umbraco.Community.Contentment/DataEditors/DataList/DataSources/ExamineDataListSource.cs

0reactions
leekellehercommented, Nov 11, 2021

Closing off this issue, (as per the original query). As mentioned above, https://github.com/leekelleher/umbraco-contentment/issues/184#issuecomment-963215362, the “Umbraco Content” data-source was (limited) designed to work within the Content section.

Read more comments on GitHub >

github_iconTop Results From Across the Web

custom member data source - Using Umbraco And Getting ...
I'm in process of converting an old umbraco 7 site with a completely custom user database - it doesn't use membership at all....
Read more >
Add data source for members · Issue #101
Currently it is possible to use Umbraco Content as data source. However it doesn't seems Contentment out-of-the-box has a members data source.
Read more >
Adding content to umbraco?
I recently made the decision to develop our new company website (http://www.idealcode.net:8005/AboutUs.aspx) with Umbraco. I hired an Umbraco ...
Read more >
What is Umbraco CMS?
Umbraco is an open-source content management system built on Microsoft's .NET framework and written in C#. It's a well-established CMS ...
Read more >
Release notes | CMSImport
Fixed: Set default Id information in Umbraco Content data provider. Fixed: Multiple media picker using Umbraco Import provider doesn't work.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found