You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Michael Wechner <mi...@wyona.com> on 2005/11/01 23:33:33 UTC

DocumentIdToPathMapper of 1.2.x

Hi

I am currently trying to use a different Path structure for the default 
publication, something like

LANGUAGE/foo/bar.xml

instead of

foo/bar/index_LANGUAGE.xml

which works so far good if I customize the DocumentToPathMapper, but 
during Document creation I run into trouble and it seems there is 
something else I need to change beside the DocumentToPathMapper.

Any pointers are appreciated.

Thanks

Michi

-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com              http://cocoon.apache.org/lenya/
michael.wechner@wyona.com                        michi@apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: DocumentIdToPathMapper of 1.2.x

Posted by Michael Wechner <mi...@wyona.com>.
Andreas Hartmann wrote:

> Michael Wechner wrote:
>
>> Hi
>>
>> I am currently trying to use a different Path structure for the 
>> default publication, something like
>>
>> LANGUAGE/foo/bar.xml
>>
>> instead of
>>
>> foo/bar/index_LANGUAGE.xml
>>
>> which works so far good if I customize the DocumentToPathMapper, but 
>> during Document creation I run into trouble and it seems there is 
>> something else I need to change beside the DocumentToPathMapper.
>
>
> That looks like a bug, maybe there's a hard-coded index_{language}
> somewhere.


yes, within 
src/java/org/apache/lenya/cms/authoring/DefaultBranchCreator.java

I will replace this by the DocumentIdToPathMapper, whereas I will need 
to add a method
with the publication as additional argument and will deprecate the 
current method.

This way it should stay backwards compatible.

Thanks

Michi

> What exactly is the problem you're running into?
>
> -- Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: DocumentIdToPathMapper of 1.2.x

Posted by Andreas Hartmann <an...@apache.org>.
Michael Wechner wrote:
> Hi
> 
> I am currently trying to use a different Path structure for the default 
> publication, something like
> 
> LANGUAGE/foo/bar.xml
> 
> instead of
> 
> foo/bar/index_LANGUAGE.xml
> 
> which works so far good if I customize the DocumentToPathMapper, but 
> during Document creation I run into trouble and it seems there is 
> something else I need to change beside the DocumentToPathMapper.

That looks like a bug, maybe there's a hard-coded index_{language}
somewhere. What exactly is the problem you're running into?

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org