-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Added option to select the Target in Link Field #16326
Conversation
src/OrchardCore.Modules/OrchardCore.ContentFields/Indexing/SQL/LinkFieldIndexProvider.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.ContentFields/Views/LinkField.Edit.cshtml
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.ContentFields/Views/LinkField.Edit.cshtml
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.ContentFields/Views/LinkFieldSettings.Edit.cshtml
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.ContentFields/Views/LinkFieldSettings.Edit.cshtml
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.ContentFields/Views/LinkField.cshtml
Outdated
Show resolved
Hide resolved
…eld.Edit.cshtml Co-authored-by: Mike Alhayek <mike@crestapps.com>
…eldSettings.Edit.cshtml Co-authored-by: Mike Alhayek <mike@crestapps.com>
…eldSettings.Edit.cshtml Co-authored-by: Mike Alhayek <mike@crestapps.com>
…eld.cshtml Co-authored-by: Mike Alhayek <mike@crestapps.com>
…eld.Edit.cshtml Co-authored-by: Mike Alhayek <mike@crestapps.com>
…/LinkFieldIndexProvider.cs Co-authored-by: Mike Alhayek <mike@crestapps.com>
src/OrchardCore.Modules/OrchardCore.ContentFields/Views/LinkField.Edit.cshtml
Outdated
Show resolved
Hide resolved
…eld.Edit.cshtml Co-authored-by: Hisham Bin Ateya <hishamco_2007@yahoo.com>
@MikeAlhayek waiting for your approval or I will merge tonight |
Don't we need to update the migration if there is a new field in the index table? |
We had a situation where we wanted to know how and where we used external links in our pages. One example page is this https://worldatwork.org/events I missed the migrations. I will create a PR soon. |
I feel like this is mixing business and ui logic. I would assume these kind of links are specific to a very special kind of entity it's describing, and the fact this external link is opening in a new window is just based on this flag. For instance, a "Vendor" could be "External" and based on that the link to the vendor should use a "_blank" link. This not only would feel right (ok this is a personal opinion) but this would not require this "niche" feature (indexing UI values). Otherwise this opens us to accepting everything in the index. |
@vengi83644 just to try to prove my point, where in your site, as a user, do I see the list of the things that are filtered by this new indexed value? Like is there a page of specific things that open in _blank, or a checkbox/filter for that? |
@sebastienros I think we should have the Target as settings but there is no need for indexing it. |
@sebastienros @MikeAlhayek @Piedone We let our content authors get reports from the CMS for various use cases - examples: contents using certain widgets, certain content types with their title and description, contents of widgets used in different content types, a typical SEO report. Below is the screenshot of the page, I am OK with removing the field from the index as it's not a use case for the larger audience. Thanks. |
OK, thanks, we're removing it, then. Please follow Sebastien's above recommendations instead. |
Fixes #16244