Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello Support,
In umbaco backend the Nodes Order is:
ItemsA
item1
item2
item3
ItemsB
item4
item5
imte6
I am using this code :
@if (!string.IsNullOrEmpty(Request.QueryString["q"])) {
this code is not working properly.
Output should be out same as Umbraco backend:
Thanks.
Try something along this way:
@foreach (var result in Umbraco.TypedSearch(Request.QueryString["q"]).OrderBy(x => x.SortOrder)) { <p>@result.Name (@result.SortOrder)</p> }
It of course only works if the results are in the same folder.
Thanks for reply Anders.
I have used this but it works for same parent folder.
But in this case result is coming from multiple folders and sort order not working there.
It should be look like this :
item1 item2 item3
item4 item5 imte6
ItemsA and ItemsB are parent folders.
thanks.
Sony,
You will have to group them first using by parent then do Anders suggestion of sort.
Regards
Ismail
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to show Node Names with same order as it is in Umbraco backoffice using Examine Search?
Hello Support,
In umbaco backend the Nodes Order is:
ItemsA
item1
item2
item3
ItemsB
item4
item5
imte6
I am using this code :
@if (!string.IsNullOrEmpty(Request.QueryString["q"])) {
-
@result.Name (@result.SortOrder)
}
}@foreach (var result in Umbraco.TypedSearch(Request.QueryString["q"])) {
this code is not working properly.
Output should be out same as Umbraco backend:
ItemsA
item1
item2
item3
ItemsB
item4
item5
imte6
Thanks.
Try something along this way:
It of course only works if the results are in the same folder.
Thanks for reply Anders.
I have used this but it works for same parent folder.
But in this case result is coming from multiple folders and sort order not working there.
It should be look like this :
ItemsA
ItemsB
ItemsA and ItemsB are parent folders.
thanks.
Sony,
You will have to group them first using by parent then do Anders suggestion of sort.
Regards
Ismail
is working on a reply...