Ross,

I think it *is* respective of what's in your locationmap. If you assign a category to a resource in types.xml, then you *must* specifically match that category in the locationmap. Currently, you have a "catch all" matcher which resolves to an empty ("") category. This means that for all folders that are not specifically matched in your locationmap.xml (such as the news folder), only those types will be shown which have no category assigned to them in types.xml. This is why types disappear when you assign a category to them: they don't match the empty category anymore. In short, when you return "" in your locationmap, this will select all types without a category.

If you want to restrict the amount of available types in specific folders, but for all other locations you want to show all types, then you have to add a "default" category to every resource like I suggested before, and return "default" instead of "" for the catch all matcher in the locationmap.

hth,
Dennis


rossputin wrote:
Hi Dennis,

thanks for your help.  It seems that once I add a 'category' attribute on to
any resource element, then irrespective of what is in my 'locationmap.xml'
that resource no longer shows up in the drop down.

I must be missing something fundamental here.

I tried a similar test on a brand new 'out the box' version of the v6.05.03,
where I put :

category="text-category"

on to the text resource.  At this point it stopped showing up in the drop
down.

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.



--
Hippo
[EMAIL PROTECTED]

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

www.onehippo.com [EMAIL PROTECTED]

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

Reply via email to