Hi,

I am still having trouble with this.  My types matchers is as below:

<match pattern="types:**">
<!-- inside the types:** matcher, it is not necessary to match for the
substring "types:" -->

<!-- Map the news type to anything in njw/news -->
<map:match pattern="*:/content/documents/njw/news/*/**">
<location src="news-category"/>
</map:match>
        
<!-- "catch all" matcher -->
<match pattern="**">
<location src=""/>
</match>
</match>

As soon as I add 'category="news-category"' to my news resource in
'types.xml' the news entry disappears from the drop down in the CMS for
document type.

Is this related to a regular expression issue?  Any ideas ?

Thanks for your help in advance,

regards,

Ross




rossputin wrote:
> 
> Hi guys,
> 
> I seem to have lost my way somewhere between CMS v6.04.x to the latest
> version v6.05.03.  Previously I used an entry in locationmap.xml like:
> 
> <match pattern="*:/content/documents/njw/news/*/**">
> <location src="news-category"/>
> </match>
> 
> this would lookup a 'category' attribute in my types.xml document with a
> value of 'news-category',
> 
> therefore when in the CMS if I tried to add a document under
> /njw/news/2008/02/02, the only entry in the types drop down would be 'News
> Article'.
> 
> I see the types.xsd now has no 'category' attribute, and instead, there is
> 'type' ?
> 
> Can someone point me to the documentation detailing how to use the new
> setup?
> 
> Thanks for your help in advance.
> 
> Regards,
> 
> Ross.
> 
-- 
View this message in context: 
http://www.nabble.com/Using-locationmap.xml-to-map-types-to-folders-in-the-CMS-tp17316631p17341495.html
Sent from the Hippo CMS development public mailinglist mailing list archive at 
Nabble.com.

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

Reply via email to