Hi Biba,

So ehh, where did you configure the location of the sitemenu then? ;)
(hint: in a website project it's in modules-sitemenu.xconf).

Jasha

 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Biba
> Sent: maandag 29 september 2008 12:21
> To: 'Hippo CMS development public mailinglist'
> Subject: RE: [HippoCMS-dev] Link rewriter
> 
> Hello Jasha,
> 
> Here is content of sitemenulinkrewriter.xconf:
> <xconf xpath="/cocoon" unless="sitemenulinkrewriter">
>   <sitemenulinkrewriter>
>       <!-- 
>       example configuration:
>       <exclude-templates>
>           <template>search</template>
>           <template>newonsite</template>
>     </exclude-templates>    
>     <prefix-unresolvable>leaves</prefix-unresolvable>
>       -->
>   </sitemenulinkrewriter>
> </xconf>
> 
> Content of sitemenulinkrewriter.xroles file:
> <xroles xpath="/role-list"
> unless="[EMAIL PROTECTED]'nl.hippo.cocoon.site.SiteMenuLinkRewriter']">
>   <role name="nl.hippo.cocoon.site.SiteMenuLinkRewriter"
>         shorthand="sitemenulinkrewriter"
>         default-class="nl.hippo.cocoon.site.SiteMenuLinkRewriterImpl"
>   />
> </xroles>
> 
> In hcamanager/newsletter/sitemap.xmap I have added:
> <map:transformer logger="sitemap.transformers" 
> name="sitemenulinkrewriter"
> pool-grow="4" pool-max="32" pool-min="4"
> src="nl.hippo.cocoon.transformation.SitemenuLinkRewriterTranformer"/>
> 
> I call this transformer like this:
> <map:match pattern="repository*body/*/**">
>         <map:generate src="repository://{3}"/>      
>         <map:transform src="cocoon:/newsletter-include-content.xsl">
>           <map:parameter name="self" value="{3}"/>
>         </map:transform>
>         <map:transform type="include"/>
>         <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="sitemenulinkrewriter"/>
>         <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>
> 
> You have suggested that I handle newsletter links in the FE. 
> But I manage newsletter through CMS, so I can't use this tip.
> When I create a newsletter via CMS/Mailings mails are sent 
> automatically. My newsletter-html-internet.xsl (where I call 
> <rewrite:a> tag) is used for formatting email.
> 
> Do you have any other idea for using rewriter in CMS?
> Or can you suggest how can I use FE when sending newsletter 
> mails that are created in CMS?
> 
> Thanks a lot,
> Biba
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Jasha Joachimsthal
> Sent: Friday, September 26, 2008 3:14 PM
> To: Hippo CMS development public mailinglist
> Subject: RE: [HippoCMS-dev] Link rewriter
> 
> Hi Biba,
> 
> What's inside sitemenulinkrewriter.xconf and 
> sitemenulinkrewriter.xroles. Please not that the regular 
> pipeline that calls newsletter-*-*.xsl does not contain a 
> linkrewrite transformation.
> What we usually do is to handle the links from the newsletter 
> paths in the front end. Something like 
> http://mysite/newsletterlink/content/folder/document.xml 
> which does a redirect to http://mysite/articles,folder/document.html
> 
> 
> Jasha Joachimsthal 
>  
> [EMAIL PROTECTED] - [EMAIL PROTECTED]
>  
> www.onehippo.com
> Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam 
> +31(0)20-5224466 San Francisco - Hippo USA Inc. 101 H Street, 
> suite Q Petaluma CA
> 94952-3329 +1 (707) 773-4646
> 
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] On Behalf Of Biba
> > Sent: woensdag 24 september 2008 15:42
> > To: 'Hippo CMS development public mailinglist'; Hippo Helpdesk
> > Cc: Nicu Lazar
> > Subject: [HippoCMS-dev] Link rewriter
> > 
> > Hello all,
> > 
> > I need to use link rewriter in my ' 
> > newsletter-html-internet.xsl ' file.
> > Could somebody tell me what do I need to configure in order 
> > to use rewriter?
> > 
> > I try to add these two files in editor/src/conf:
> > ' sitemenulinkrewriter.xconf ' and
> > ' sitemenulinkrewriter.xroles '.
> > 
> > I defined transformer in hcamanager/newsletter/sitemap.xmap:
> > 
> > <map:transformers>            
> >       <map:transformer logger="sitemap.transformers"
> > name="sitemenulinkrewriter" pool-grow="4" pool-max="32" pool-min="4"
> > 
> src="nl.hippo.cocoon.transformation.SitemenuLinkRewriterTranformer"/>
> >     </map:transformers>
> > 
> > I get this error:
> > 
> > Caused by: 
> org.apache.commons.lang.exception.NestableRuntimeException:
> > javax.xml.transform.TransformerException: 
> > java.lang.NullPointerException
> >     at
> > org.apache.cocoon.transformation.TraxTransformer.endDocument(T
> > raxTransformer
> > .java:604)
> >     at
> > org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLP
> > ipe.java:56)
> >     at
> > org.apache.cocoon.transformation.IncludeTransformer$IncludeXML
> > Pipe.endDocume
> > nt(IncludeTransformer.java:763)
> >     at
> > org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLP
> > ipe.java:56)
> >     at
> > org.apache.cocoon.transformation.IncludeTransformer.endDocumen
> > t(IncludeTrans
> > former.java:380)
> >     at
> > org.apache.xml.serializer.ToXMLSAXHandler.endDocument(ToXMLSAX
> > Handler.java:1
> > 81)
> > ....
> > 
> > I will appreciate any help,
> > Biba
> > 
> > 
> > Met vriendelijke groet / Kind regards,
> > Biljana Boskovic
> > Software Developer/Service Support Manager
> > Levi9 Global Sourcing
> > ===============================================================
> > Adress:    Jan van Goyenkade 8, 1075 HP Amsterdam
> > Tel.:      (+31) (0) 20 6701 947
> > Mobile:    (+381) (0) 64 8509 308
> > Email:     [EMAIL PROTECTED]
> > SkypeID:   b.jovanovic.b
> > Internet:  www.levi9.com
> > 
> > Chamber of commerce Levi9 Global Sourcing BV: 34221951 
> > Chamber of commerce Levi9 Global Sourcing Benelux BV: 
> > 34224746 
> > ===============================================================
> > This e-mail may contain confidential or privileged 
> > information. If you are not (one of) the intended 
> > recipient(s), please notify the sender immediately by reply 
> > e-mail and delete this message and any attachments 
> > permanently without retaining a copy. Any review, disclosure, 
> > copying, distribution or taking any action in reliance on the 
> > contents of this e-mail by persons or entities other than the 
> > intended recipient(s) is strictly prohibited and may be unlawful.
> > 
> > The services of Levi9 are exclusively subject to its general 
> > terms and conditions. These general terms and conditions can 
> > be found on www.levi9.com and a copy will be promptly 
> > submitted to you on your request and free of charge.
> > 
> > 
> > 
> > ********************************************
> > Hippocms-dev: Hippo CMS development public mailinglist
> > 
> > Searchable archives can be found at:
> > MarkMail: http://hippocms-dev.markmail.org
> > Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
> > 
> > 
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
> 
> Searchable archives can be found at:
> MarkMail: http://hippocms-dev.markmail.org
> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
> 
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
> 
> Searchable archives can be found at:
> MarkMail: http://hippocms-dev.markmail.org
> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
> 
> 
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Reply via email to