Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to make NEW page to appear first

Avatar

Avatar
Give Back 3
Level 1
sd36462524
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Applaud 5
View profile

Avatar
Give Back 3
Level 1
sd36462524
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Applaud 5
View profile
sd36462524
Level 1

25-09-2018

Hi All,

I work on recipe pages, we have different categories under Kitchen(Ex: cupcakes, pies), I have added new cupcake recipe  under kitchen and added tag cupcake the recipe which i added is appearing in cupcakes category but it is appearing in third page under cupcakes category, how do I make it appear in first page under cupcakes category., is there a way to change the order like last modified/added to appear first?

According to the tag which we provide in page properties recipe page appears in that particular category but how do we make sure newly added recipe to display firstin the category?

Thanks!

Replies

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,428 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,428 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

25-09-2018

Can you explain more, where exactly you need sorting inside Tagging or site? Screenshot would be helpful.

Avatar

Avatar
Give Back 3
Level 1
sd36462524
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Applaud 5
View profile

Avatar
Give Back 3
Level 1
sd36462524
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Applaud 5
View profile
sd36462524
Level 1

25-09-2018

Hi Arun,

For example if we go to hersheyskitchen.com

recipes->cakes and cupcakes the product which is showing up in page 27 chocolate peanut butter cupcakes is recently added I want that product to show up  in first page in cakes and cupcakes category, all the recipes are created under kitchen as we are adding tag cupcakes it is visible in cupcakes and cakes section.

How can I can do it? do we need to right a code or something to make last modified to appear in the first page.

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,428 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,428 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

25-09-2018

Hi,

How to add new items in the page? Is it fetching items from somewhere or is it created using component dialog or for each item there is a component. To sort you have to find out something like modified date or created date of node/items, based on that you can sort or if it is based on last added first display then you can just reverse your list while displaying.

Without knowing authoring part, can't suggest appropriate approach.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

25-09-2018

Are you referring to a result set or a component where a collection of results is showing up.

Avatar

Avatar
Give Back 3
Level 1
sd36462524
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Applaud 5
View profile

Avatar
Give Back 3
Level 1
sd36462524
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Applaud 5
View profile
sd36462524
Level 1

25-09-2018

@ smacdonald2008 I am referring to where collection of results is showing up

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

25-09-2018

In that case - if you result set is retrieving nodes - then order them using a date and then place into a map and then display them by that order.

Avatar

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,048 posts

Correct Reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,048 posts

Correct Reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile
Veena_Vikram
MVP

26-09-2018

Is there a query search in your backend code to populate this information ? I assume that when the user hits Cakes & Cupcakes Recipes | Hershey's Kitchens this page , your listing component is sending an Ajax call to https://www.hersheys.com/content/kitchens/en_us/recipes/cakes-cupcakes/jcr:content/main_parsys/genera... . I am not sure how you have handled the logic in the backend, but I assume, if you can sort the JSON before sending the response in the order of last modified  , could be that your problem will be solved

1579939_pastedImage_4.png

Thanks

Veena

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,428 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,428 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

26-09-2018

Yes, Veena is right, you can sort JSON response and return new response based on your requirement.

Avatar

Avatar
Give Back 3
Level 1
sd36462524
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Applaud 5
View profile

Avatar
Give Back 3
Level 1
sd36462524
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Applaud 5
View profile
sd36462524
Level 1

26-09-2018

Thank you everyone.