Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Enhancements to "Usage Browser" #31

Open
hfloyd opened this issue May 20, 2022 · 5 comments
Open

Feature Request: Enhancements to "Usage Browser" #31

hfloyd opened this issue May 20, 2022 · 5 comments

Comments

@hfloyd
Copy link

hfloyd commented May 20, 2022

Hi! It would be great if the "Usage Browser" could include templates as well, to see which Templates are actively being used on Content Nodes.

Perhaps with an additional "Schema Type" column for "Content Type" or "Template". Additionally, including a "Name" column (with searching) in addition to the "Alias" and "Description" columns.

Also, it seems that clicking on the item (which has a tooltip of "View related content") should pull up a filtered list of ONLY the content using that type. In my experience all the Content is displayed in the infinite editor fly-out.

(I'm using version 9.2.2)

@DanDiplo
Copy link
Owner

Hi Heather! Sounds like a good idea; I'll definitely look into this. Can't promise, as it depends on whether I can write the SQL!

@DanDiplo
Copy link
Owner

I've managed to fix the bug where the "view related content" wasn't filtering by the selected document type - so thanks for spotting that bug!

Unfortunately, I just can't seem to find way to incorporate templates into the browser. The Umbraco DB is complex and I couldn't figure out the joins without getting multiple rows returned. For instance, if a doc type had 2 templates it would always bring back both, not just the published one. I just can't figure out how it all joins together!

@hfloyd
Copy link
Author

hfloyd commented May 23, 2022

The way I've done is is by using the Umbraco APIs - the ContentService (IContent) does include info about the Template, I think. If you are doing all via direct SQL, though, I'm not sure how it connects...

@DanDiplo
Copy link
Owner

Yeah, the problem is the ContentService is too slow for what I'm doing; I basically have to use SQL group by to get a count of how many content items are used by a particular content type, and doing that via the ContentService would be extremely slow and require lots of calls. I'll keep digging!

@markadrake
Copy link

Yeah, the problem is the ContentService is too slow for what I'm doing; I basically have to use SQL group by to get a count of how many content items are used by a particular content type, and doing that via the ContentService would be extremely slow and require lots of calls. I'll keep digging!

Looking at an Umbraco 10 database, I believe the umbracoDocumentVersion table has a templateId column. This column also has the published value (1 or 0). Hope I understood the above request correctly and this provides any insight at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants