Expand my Community achievements bar.

SOLVED

Content deleted any time deploy/build project

Avatar

Level 2

Hi all,

Everyt ime I build my test project (AEM WKND) the pages I create below

/content/wknd/language-masters/en are deleted, I also checked the file 
src/main/content/META-INF/vault/filter.xml but to me everything seems as it should, can anyone help me?

 

<?xml version="1.0" encoding="UTF-8"?>
<workspaceFilter version="1.0">
<filter root="/conf/wknd" mode="merge"/>
<filter root="/content/wknd" mode="merge"/>
<filter root="/content/dam/wknd" mode="merge"/>
<filter root="/content/experience-fragments/wknd" mode="merge"/>
<filter root="/content/cq:tags/wknd" mode="merge"/>
<filter root="/content/cq:graphql" mode="merge" />
</workspaceFilter>

Screenshot 2023-03-02 at 14.14.14.png

 

Thanking you in advance!

1 Accepted Solution

Avatar

Correct answer by
Level 2
I solved, I leave here the solution if it can serve
Notes

WKND Sample Content

By default, sample content from ui.content.sample will be deployed and installed along with the WKND code base. The WKND reference site is used for demo and training purposes and having a pre-built, fully authored site is useful. However, the behavior of including a full reference site (pages, images, etc...) in source control is unusual and is not recommended for a real-world implementation.

Including ui.content.sample will overwrite any authored content during each build. If you wish to disable this behavior modify the filter.xml file and update the mode=merge attribute to avoid overwriting the paths.

 

 

 

- <filter root="/content/wknd" />
+ <filter root="/content/wknd" mode="merge"/>

 

View solution in original post

2 Replies

Avatar

Community Advisor

@HybrisAd 

Can you use like this 

 

<filter root="/content/wknd">

    <include pattern="/content/wknd/language-masters/en(.*)"/>

    

</filter>

Thanks,
Siva

Avatar

Correct answer by
Level 2
I solved, I leave here the solution if it can serve
Notes

WKND Sample Content

By default, sample content from ui.content.sample will be deployed and installed along with the WKND code base. The WKND reference site is used for demo and training purposes and having a pre-built, fully authored site is useful. However, the behavior of including a full reference site (pages, images, etc...) in source control is unusual and is not recommended for a real-world implementation.

Including ui.content.sample will overwrite any authored content during each build. If you wish to disable this behavior modify the filter.xml file and update the mode=merge attribute to avoid overwriting the paths.

 

 

 

- <filter root="/content/wknd" />
+ <filter root="/content/wknd" mode="merge"/>