Bert Leunis pushed to branch feature/create-content at cms-community / 
hippo-essentials-components


Commits:
23f583be by Bert Leunis at 2018-01-18T11:40:47+01:00
ESSCOM-29 components of features that store documents in year/month folders 
supply attributes to the request

This supports the manageContent tags to create new documents in the channel 
manager.

- - - - -


2 changed files:

- 
hst/src/main/java/org/onehippo/cms7/essentials/components/EssentialsEventsComponent.java
- 
hst/src/main/java/org/onehippo/cms7/essentials/components/EssentialsNewsComponent.java


Changes:

=====================================
hst/src/main/java/org/onehippo/cms7/essentials/components/EssentialsEventsComponent.java
=====================================
--- 
a/hst/src/main/java/org/onehippo/cms7/essentials/components/EssentialsEventsComponent.java
+++ 
b/hst/src/main/java/org/onehippo/cms7/essentials/components/EssentialsEventsComponent.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014 Hippo B.V. (http://www.onehippo.com)
+ * Copyright 2014-2018 Hippo B.V. (http://www.onehippo.com)
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -28,6 +28,7 @@ import org.hippoecm.hst.core.component.HstResponse;
 import org.hippoecm.hst.core.parameters.ParametersInfo;
 import org.hippoecm.repository.util.DateTools;
 import 
org.onehippo.cms7.essentials.components.info.EssentialsEventsComponentInfo;
+import org.onehippo.cms7.essentials.components.utils.ComponentsUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -52,6 +53,7 @@ public class EssentialsEventsComponent extends 
EssentialsListComponent {
             return;
         }
         super.doBeforeRender(request, response);
+        ComponentsUtils.addCurrentDateStrings(request);
     }
 
     @Override


=====================================
hst/src/main/java/org/onehippo/cms7/essentials/components/EssentialsNewsComponent.java
=====================================
--- 
a/hst/src/main/java/org/onehippo/cms7/essentials/components/EssentialsNewsComponent.java
+++ 
b/hst/src/main/java/org/onehippo/cms7/essentials/components/EssentialsNewsComponent.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014 Hippo B.V. (http://www.onehippo.com)
+ * Copyright 2014-2018 Hippo B.V. (http://www.onehippo.com)
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -28,6 +28,7 @@ import org.hippoecm.hst.core.component.HstResponse;
 import org.hippoecm.hst.core.parameters.ParametersInfo;
 import org.hippoecm.repository.util.DateTools;
 import 
org.onehippo.cms7.essentials.components.info.EssentialsNewsComponentInfo;
+import org.onehippo.cms7.essentials.components.utils.ComponentsUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -52,6 +53,7 @@ public class EssentialsNewsComponent extends 
EssentialsListComponent {
             return;
         }
         super.doBeforeRender(request, response);
+        ComponentsUtils.addCurrentDateStrings(request);
     }
 
     @Override



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-essentials-components/commit/23f583be5290ef0d69323c10db0bce795bc39a06

---
View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-essentials-components/commit/23f583be5290ef0d69323c10db0bce795bc39a06
You're receiving this email because of your account on code.onehippo.org.
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to