Mailing List Archive

Once again : Unique URI problem
Hi,
I don't know what I'm doing wrong here:

I have a category /news and
an output_channel , non fixed URI : /categegory/Y/m/d/slug
with an element type news that has oc assigned as primary

and another oc xhtml
with my default element_type default_story , fixed URI, with this oc assigned as primary.

Now when I want to create a default_story in news I get the well know error
message "The URI "/news" is not unique…..

Why? I have two different OC , one fixed another not fixed.
I can see the feature I want on the bricolagecms site :
/news gives me an overview,
/news/Y/m/d/... gives me the individual news.

How can I get this ?

Rolf Schaufelberger
Re: Once again : Unique URI problem [ In reply to ]
On Feb 19, 2011, at 9:22 AM, Rolf Schaufelberger wrote:

> Hi,
> I don't know what I'm doing wrong here:
>
> I have a category /news and
> an output_channel , non fixed URI : /categegory/Y/m/d/slug
> with an element type news that has oc assigned as primary
>
> and another oc xhtml
> with my default element_type default_story , fixed URI, with this oc assigned as primary.
>
> Now when I want to create a default_story in news I get the well know error
> message "The URI "/news" is not unique…..
>
> Why? I have two different OC , one fixed another not fixed.
> I can see the feature I want on the bricolagecms site :
> /news gives me an overview,
> /news/Y/m/d/... gives me the individual news.

Is there a story in the database with that URI already?

David
Re: Once again : Unique URI problem [ In reply to ]
Hi,

Am 19.02.2011 um 19:29 schrieb David E. Wheeler:

> On Feb 19, 2011, at 9:22 AM, Rolf Schaufelberger wrote:
>
>> Hi,
>> I don't know what I'm doing wrong here:
>>
>> I have a category /news and
>> an output_channel , non fixed URI : /categegory/Y/m/d/slug
>> with an element type news that has oc assigned as primary
>>
>> and another oc xhtml
>> with my default element_type default_story , fixed URI, with this oc assigned as primary.
>>
>> Now when I want to create a default_story in news I get the well know error
>> message "The URI "/news" is not unique…..
>>
>> Why? I have two different OC , one fixed another not fixed.
>> I can see the feature I want on the bricolagecms site :
>> /news gives me an overview,
>> /news/Y/m/d/... gives me the individual news.
>
> Is there a story in the database with that URI already?
>
Yep, initially my news story still had the default oc and therefore there was an entry in story_uri table for it.
Deleted it, and works now.

rolf