コミュニティアチーブメントバーを展開する。

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Custom Link Transformer for non prod environments

Avatar

Level 1

Hi All - I have run into an issue where i have implemented a custom link transformer which needs to be run on non prod environment ( qa, stage, local). I tried adding rewrite config under /apps/<project>/config.<runmode> but my LinkTransformer is not getting called. My linktransformer works fine when added under apps/<project>/config. I need suggesstion on how can i achieve this requirement of running link transformer only on specific environment.

 

Thanks in advance.

1 受け入れられたソリューション

Avatar

正解者
Community Advisor

Hi @praja1987 

 

Unfortunately the rewriter definition does not support runmodes. So you need to have your rewriter configured in all environments; and then add some runmode based logic in java implementation, which disables the actual rewriting process on prod.

 

https://sling.apache.org/documentation/bundles/output-rewriting-pipelines-org-apache-sling-rewriter.... 

 

Arun Patidar

AEM LinksLinkedIn

元の投稿で解決策を見る

2 返信

Avatar

正解者
Community Advisor

Hi @praja1987 

 

Unfortunately the rewriter definition does not support runmodes. So you need to have your rewriter configured in all environments; and then add some runmode based logic in java implementation, which disables the actual rewriting process on prod.

 

https://sling.apache.org/documentation/bundles/output-rewriting-pipelines-org-apache-sling-rewriter.... 

 

Arun Patidar

AEM LinksLinkedIn

Avatar

Administrator

@praja1987 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni