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

JCR Package without subpages but with order of subpages

Avatar

Avatar
Validate 1
Level 2
Reini-
Level 2

Likes

4 likes

Total Posts

21 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
Reini-
Level 2

Likes

4 likes

Total Posts

21 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
Reini-
Level 2

09-10-2017

Hi,

I have the requirement to create a JCR package of a single page, the package must not contain subpages but the order of the subpages must be included in the package.

I tried to create a package with a filter (e.g. /content/myProject/myPage) and added two rules (exclude /content/myProject/myPage/*.* and include /content/myProject/myPage/jcr:content). After importing this package on an other aem instance the page itself (inlcuding jcr:content) will be installed but the order of subpages will not be changed.

Has anybody an idea how to solve this problem?

regards

Reinhard

Replies

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,115 likes

Total Posts

3,149 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,115 likes

Total Posts

3,149 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

09-10-2017

Hi,

when you have the chance to modify the package manually, you can set the order of the childs of that page in the respective .content.xml file.

Jörg

Avatar

Avatar
Validate 1
Level 2
Reini-
Level 2

Likes

4 likes

Total Posts

21 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
Reini-
Level 2

Likes

4 likes

Total Posts

21 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
Reini-
Level 2

09-10-2017

Hi Jörg,

the problem is not the package itself, because .content.xml file contains name of subpages in the right order, but when I run an import on a system with not order subpages, the order in .content.xml does not get respected with my filter/rule settings.

regards

Reinhard

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,115 likes

Total Posts

3,149 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,115 likes

Total Posts

3,149 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

10-10-2017

Have you already played with the different modes, especially "update"?

Jörg

Avatar

Avatar
Validate 1
Level 2
Reini-
Level 2

Likes

4 likes

Total Posts

21 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
Reini-
Level 2

Likes

4 likes

Total Posts

21 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
Reini-
Level 2

10-10-2017

Hi Jörg,

yes I did, but I can't find any difference in the behavior in my case if I change mode to update or whatever.

Maybe I can explain my problem once again with an simple example using we-retail (this is only an example to explain the problem but is not my usecase because I know I can solve this problem e.g. by publishing /content/we-retail/language-masters):

  • I have a new installation of AEM 6.3 author and publish which contains we-retail project
  • By default the order of subpages of /content/we-retail/language-masters is de, en, es, fr, it
  • I changed the order on author to en, es, fr, it, de (moved de from top to bottom)
  • I created a package (which should only contain page /content/we-retail/language-masters without subpages but the package must including sorting of subpages) on author with filter
    • root path: /content/we-retail/language-masters
    • Rules:
      • exlucde /content/we-retail/language-masters/*.*
      • include /content/we-retail/language-masters/jcr:content
  • I downloaded package from author, uploaded package to publish
  • I installed package on publish

Result is that order on publish was not changed and it doesn't matter which modes I used. You can find used packages at [1] (package with default mode replace) and [2] (package with mode update).

regards

Reinhard

[1] .. we-retail-order.zip - Box

[2] .. we-retail-order-update.zip - Box