Sorting inherited template fieldsSitecore SXA Search Result Sorting by dateSXA: When is configuration in web.config necessary vs only in templates?SXA Search SortingSort SXA search results by date without SXA sorting renderingSitecore SXA Access Template fields inside a Variant Nvelocity templateMissing or presenting body-tag placeholder in SXARendering cloning | item fields are not as per their templateHow to display page list based on query against a dynamic sxatag valueDisplay list of items with a dynamic query set by content editorsSXA autosuggest results sorting
Trying to write a shell script that keeps testing a server remotely, but it keeps falling in else statement when I logout
The cat ate your input again!
First amendment and employment: Can a police department terminate an officer for speech?
create a tuple from pairs
How does "Te vas a cansar" mean "You're going to get tired"?
Why is transplanting a specific intact brain impossible if it is generally possible?
What is the maximum number of PC-controlled undead?
Is it okay for a ticket seller to grab a tip in the USA?
Why isn’t SHA-3 in wider use?
Existence of weak limit of measures
Y2K... in 2019?
constant evaluation when using differential equations.
Are differences between uniformly distributed numbers uniformly distributed?
How can Radagast come across Gandalf and Thorin's company?
Write an interpreter for *
Email address etiquette - Which address should I use to contact professors?
(11 of 11: Meta) What is Pyramid Cult's All-Time Favorite?
CTCI Chapter 1 : Palindrome Permutation
Multirow in tabularx?
Adding CSV file with lat/long to map in different CRS in QGIS
Who are these characters/superheroes in the posters from Chris's room in Family Guy?
If "more guns less crime", how do gun advocates explain that the EU has less crime than the US?
Some concentration spells give you a special action. Does the War Caster feat let these be used instead of opportunity attacks?
Does a code snippet compile? Or does it get compiled?
Sorting inherited template fields
Sitecore SXA Search Result Sorting by dateSXA: When is configuration in web.config necessary vs only in templates?SXA Search SortingSort SXA search results by date without SXA sorting renderingSitecore SXA Access Template fields inside a Variant Nvelocity templateMissing or presenting body-tag placeholder in SXARendering cloning | item fields are not as per their templateHow to display page list based on query against a dynamic sxatag valueDisplay list of items with a dynamic query set by content editorsSXA autosuggest results sorting
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have a page template inheriting from base templates.
But when I go to edit those from Experience Accelerator, Page metadata, Other dialog, they are in a strange order. It seems like its grabbing the first item from each template, then the second item from each template and so on... but not in the displayed template order above.
I tried applying sort order but that only applies to the content editor tree - it has no impact on this dialog at all.
I want each block of fields below to remain as a block together, so it makes more sense when editing.
Using Sitecore 9.1 and SXA 1.8.
sxa
add a comment |
I have a page template inheriting from base templates.
But when I go to edit those from Experience Accelerator, Page metadata, Other dialog, they are in a strange order. It seems like its grabbing the first item from each template, then the second item from each template and so on... but not in the displayed template order above.
I tried applying sort order but that only applies to the content editor tree - it has no impact on this dialog at all.
I want each block of fields below to remain as a block together, so it makes more sense when editing.
Using Sitecore 9.1 and SXA 1.8.
sxa
You need to use different section names.List
,Pair
andLinks
for instance, instead ofContent
.
– Mark Cassidy♦
Apr 15 at 5:24
@MarkCassidy Ah - great thanks :) Feel free to post as a proper answer so I can accept.
– Jen
Apr 15 at 5:26
add a comment |
I have a page template inheriting from base templates.
But when I go to edit those from Experience Accelerator, Page metadata, Other dialog, they are in a strange order. It seems like its grabbing the first item from each template, then the second item from each template and so on... but not in the displayed template order above.
I tried applying sort order but that only applies to the content editor tree - it has no impact on this dialog at all.
I want each block of fields below to remain as a block together, so it makes more sense when editing.
Using Sitecore 9.1 and SXA 1.8.
sxa
I have a page template inheriting from base templates.
But when I go to edit those from Experience Accelerator, Page metadata, Other dialog, they are in a strange order. It seems like its grabbing the first item from each template, then the second item from each template and so on... but not in the displayed template order above.
I tried applying sort order but that only applies to the content editor tree - it has no impact on this dialog at all.
I want each block of fields below to remain as a block together, so it makes more sense when editing.
Using Sitecore 9.1 and SXA 1.8.
sxa
sxa
asked Apr 15 at 5:20
JenJen
4443 silver badges15 bronze badges
4443 silver badges15 bronze badges
You need to use different section names.List
,Pair
andLinks
for instance, instead ofContent
.
– Mark Cassidy♦
Apr 15 at 5:24
@MarkCassidy Ah - great thanks :) Feel free to post as a proper answer so I can accept.
– Jen
Apr 15 at 5:26
add a comment |
You need to use different section names.List
,Pair
andLinks
for instance, instead ofContent
.
– Mark Cassidy♦
Apr 15 at 5:24
@MarkCassidy Ah - great thanks :) Feel free to post as a proper answer so I can accept.
– Jen
Apr 15 at 5:26
You need to use different section names.
List
, Pair
and Links
for instance, instead of Content
.– Mark Cassidy♦
Apr 15 at 5:24
You need to use different section names.
List
, Pair
and Links
for instance, instead of Content
.– Mark Cassidy♦
Apr 15 at 5:24
@MarkCassidy Ah - great thanks :) Feel free to post as a proper answer so I can accept.
– Jen
Apr 15 at 5:26
@MarkCassidy Ah - great thanks :) Feel free to post as a proper answer so I can accept.
– Jen
Apr 15 at 5:26
add a comment |
1 Answer
1
active
oldest
votes
This dialogue is not the most flexible of sorts. But what happens is, it shows an aggregate of your templates and their fields, with little way of controlling the order they appear in.
One thing you can do however, is organise the fields under different section names. You currently use Content
for all of them, meaning all the fields will end up in the same grouping.
By organising the fields differently, e.g. use List
, Pair
, and Links
, as section names - this dialogue will organise the fields more to your liking I believe.
And yes, you can use the __Sort order
on the section items to control the order of how these sections appear in the dialogue as well.
Additional Reference: Field Ordering When Inheriting Sitecore Templates
Edited to add
I actually think you can sort all of the fields even if you remain in the same section name. But you would need to manipulate the __SortOrder
of the fields directly. So on the fields under one template, you set their sort order to 10
, 20
, 30
and so on. In the next template, to 100
, 200
, 300
etc. And so on. Generally Sitecore would respect the overall sort order - this is why it's "interleaving" the fields to begin with.
That said, I think it's easier to just group by different section names. That's one of the only reason sections exist, after all.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "664"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f18113%2fsorting-inherited-template-fields%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This dialogue is not the most flexible of sorts. But what happens is, it shows an aggregate of your templates and their fields, with little way of controlling the order they appear in.
One thing you can do however, is organise the fields under different section names. You currently use Content
for all of them, meaning all the fields will end up in the same grouping.
By organising the fields differently, e.g. use List
, Pair
, and Links
, as section names - this dialogue will organise the fields more to your liking I believe.
And yes, you can use the __Sort order
on the section items to control the order of how these sections appear in the dialogue as well.
Additional Reference: Field Ordering When Inheriting Sitecore Templates
Edited to add
I actually think you can sort all of the fields even if you remain in the same section name. But you would need to manipulate the __SortOrder
of the fields directly. So on the fields under one template, you set their sort order to 10
, 20
, 30
and so on. In the next template, to 100
, 200
, 300
etc. And so on. Generally Sitecore would respect the overall sort order - this is why it's "interleaving" the fields to begin with.
That said, I think it's easier to just group by different section names. That's one of the only reason sections exist, after all.
add a comment |
This dialogue is not the most flexible of sorts. But what happens is, it shows an aggregate of your templates and their fields, with little way of controlling the order they appear in.
One thing you can do however, is organise the fields under different section names. You currently use Content
for all of them, meaning all the fields will end up in the same grouping.
By organising the fields differently, e.g. use List
, Pair
, and Links
, as section names - this dialogue will organise the fields more to your liking I believe.
And yes, you can use the __Sort order
on the section items to control the order of how these sections appear in the dialogue as well.
Additional Reference: Field Ordering When Inheriting Sitecore Templates
Edited to add
I actually think you can sort all of the fields even if you remain in the same section name. But you would need to manipulate the __SortOrder
of the fields directly. So on the fields under one template, you set their sort order to 10
, 20
, 30
and so on. In the next template, to 100
, 200
, 300
etc. And so on. Generally Sitecore would respect the overall sort order - this is why it's "interleaving" the fields to begin with.
That said, I think it's easier to just group by different section names. That's one of the only reason sections exist, after all.
add a comment |
This dialogue is not the most flexible of sorts. But what happens is, it shows an aggregate of your templates and their fields, with little way of controlling the order they appear in.
One thing you can do however, is organise the fields under different section names. You currently use Content
for all of them, meaning all the fields will end up in the same grouping.
By organising the fields differently, e.g. use List
, Pair
, and Links
, as section names - this dialogue will organise the fields more to your liking I believe.
And yes, you can use the __Sort order
on the section items to control the order of how these sections appear in the dialogue as well.
Additional Reference: Field Ordering When Inheriting Sitecore Templates
Edited to add
I actually think you can sort all of the fields even if you remain in the same section name. But you would need to manipulate the __SortOrder
of the fields directly. So on the fields under one template, you set their sort order to 10
, 20
, 30
and so on. In the next template, to 100
, 200
, 300
etc. And so on. Generally Sitecore would respect the overall sort order - this is why it's "interleaving" the fields to begin with.
That said, I think it's easier to just group by different section names. That's one of the only reason sections exist, after all.
This dialogue is not the most flexible of sorts. But what happens is, it shows an aggregate of your templates and their fields, with little way of controlling the order they appear in.
One thing you can do however, is organise the fields under different section names. You currently use Content
for all of them, meaning all the fields will end up in the same grouping.
By organising the fields differently, e.g. use List
, Pair
, and Links
, as section names - this dialogue will organise the fields more to your liking I believe.
And yes, you can use the __Sort order
on the section items to control the order of how these sections appear in the dialogue as well.
Additional Reference: Field Ordering When Inheriting Sitecore Templates
Edited to add
I actually think you can sort all of the fields even if you remain in the same section name. But you would need to manipulate the __SortOrder
of the fields directly. So on the fields under one template, you set their sort order to 10
, 20
, 30
and so on. In the next template, to 100
, 200
, 300
etc. And so on. Generally Sitecore would respect the overall sort order - this is why it's "interleaving" the fields to begin with.
That said, I think it's easier to just group by different section names. That's one of the only reason sections exist, after all.
edited Apr 15 at 13:36
answered Apr 15 at 5:32
Mark Cassidy♦Mark Cassidy
18.7k5 gold badges41 silver badges87 bronze badges
18.7k5 gold badges41 silver badges87 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Sitecore Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f18113%2fsorting-inherited-template-fields%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You need to use different section names.
List
,Pair
andLinks
for instance, instead ofContent
.– Mark Cassidy♦
Apr 15 at 5:24
@MarkCassidy Ah - great thanks :) Feel free to post as a proper answer so I can accept.
– Jen
Apr 15 at 5:26