Hello,

Working on the community apps, we need to use an oracle DB in place of the 
current HSQL. 
Is it possible to get the complete DbSchema ? If anyone has an experience 
with another Db than HSQL (especially oracle), your remarks are welcome 
;-)
I'm not really deep in code so I was wondering if it will be possible to 
personalize the newsletter according to the receiver. Example put an 
introduction 'Dear mister Calcus’ for the newsletter sends to Mister 
Calcus ;-) I not quiet sure it's possible but ... it will be an very nice 
easter egg !

Many thanks,

David Calcus
Smals -  F. Manini - Web Content Management
Rue du Prince Royal 102, 1050 Bruxelles
[EMAIL PROTECTED]
+32 (0)2 787 54 92
______________________________________________________________________________________________
Smals sluit elke aansprakelijkheid uit in verband met de juistheid, de 
volledigheid of het tijdig toekomen van de informatie in deze e-mail. Aan 
deze e-mail kunnen geen rechten worden ontleend en deze e-mail houdt in 
geen geval een erkenning van welkdanige aansprakelijkheid in.
Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht 
niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden 
en het bericht te vernietigen.

Smals décline toute responsabilité quant à l'exactitude, à l'exhaustivité 
et au délai de transmission des informations contenues dans cet e-mail. 
Aucun droit ne peut être revendiqué sur cet e-mail et cet e-mail 
n'implique en aucun cas une reconnaissance de responsabilité, quelle 
qu'elle soit.
Ce message s'adresse uniquement au destinataire. Si ce message ne vous est 
pas destiné, nous vous prions de nous le signaler immédiatement et de 
détruire le message. 



Jasha Joachimsthal <[EMAIL PROTECTED]> 
07/03/2008 08:56





To
Hippo CMS development public mailinglist <[email protected]>
cc
[EMAIL PROTECTED]
Subject
RE: [HippoCMS-dev] community apps






Hi David, 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: donderdag 6 maart 2008 9:38
> To: Hippo CMS development public mailinglist
> Cc: [EMAIL PROTECTED]
> Subject: [HippoCMS-dev] community apps
> 
> Hi folks,
> 
> We are using the hcamanager and more specifically the 
> newsletter manager into one of our project. The community 
> apps is still running in our cms but we are wondering how we 
> can use it and customize it:
> 
>         How can we (un)subscribe the new letter from a front-end site
You'll have to write a custom form for that. Below some flowscript that
handles unsubscribing:

function removeSubscriptions(email){
                 var newsletterService = getFacade("newsletterService");
                 var subscriber = 
newsletterService.getSubscriberByEmail(email);
                 if(subscriber == null){
                                 return
"newsletterform.status.unsubscribe.fail.nosubscriberfound";
                 }
                 else{
                                 var mailgroups =
cocoon.request.getParameter("mailgroup");
                                 if(mailgroups == null || mailgroups 
==''){
                                   return 
"newsletterform.status.fail.nomailgroup";
                                 }
                                 else if(mailgroups instanceof
Packages.java.lang.String){
                                   var mailgroup =
newsletterService.getMailGroup(Packages.java.lang.Integer.parseInt(mailg
roups));
 
newsletterService.removeSubscription(subscriber,mailgroup);
                                 } 
                                 else{
                                   var mailgroupIterator = 
mailgroups.iterator();
                   while (mailgroupIterator.hasNext()){
                     var mailgroup =
newsletterService.getMailGroup(Packages.java.lang.Integer.parseInt(mailg
roupIterator.next()));
        newsletterService.removeSubscription(subscriber,mailgroup);
                   }
 
                                 }
                 }
                 // newsletterService.removeSubscription has silent 
failure
                 return "newsletterform.status.unsubscribe.success";
}



function getFacade(beanName) {
                 var spring =
cocoon.context.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_C
ONTEXT_ATTRIBUTE);
                 return spring.getBean(beanName); 
}


>         Is it possible to custom the sending action (launch a 
> specific pipeline when we send a newsletter)
The sending part is not done from a Cocoon pipeline. What do you want to
achieve? 

>         Is it possible to create a newsletter merging a 
> subset of documents based on a folder.
Yes that's possible. The include transformer is called after the XSL
transformation. The pipeline that renders the content is:

<map:match pattern="repository*body/*/**">
        <map:generate src="repository://{3}"/>
        <map:transform src="cocoon:/newsletter-{1}-{2}.xsl">
          <map:parameter name="self" value="{3}"/>
          <map:parameter name="siteUrl" value="{flow-attr:siteUrl}"/>
        </map:transform>
        <map:transform type="i18n"/>
        <map:transform type="include"/>
        <map:transform type="stripnamespaces"/>
        <map:select type="simple">
          <map:parameter name="value" value="{1}"/>
          <map:when test="html">
            <map:serialize type="html"/> 
          </map:when>
          <map:when test="text">
            <map:serialize type="text" mime-type="text/plain"/>
          </map:when>
        </map:select>
 
      </map:match>

> Unfortunately this part seems to be few documented on the 
> website. So if someboby have had an experience with the 
> hcamanager, his advices will be useful ;-)

Thank you for the questions, it helps us to improve the documentation.
This reminds me we have to put the API documentation for the community
apps online.

Regards,

Jasha Joachimsthal

---------

Hippo
Oosteinde 11
1017 WT Amsterdam
The Netherlands
+31 (0)20 5224466 

[EMAIL PROTECTED]
www.hippo.nl


********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to