folder_listing trumps base_view in 2.4.1

3 messages Options
Embed this post
Permalink
Hedley Roos () folder_listing trumps base_view in 2.4.1
Reply Threaded More More options
Print post
Permalink
Hi all

In ArchetypesGenerator.py we have

4363             if folderish:
4364                 default_view = 'folder_listing'

This means all my folderish types now displays the listing and not
base_view. The workaround is to set tagged value
immediate_view=base_view on every content type, but it is cumbersome.

Is this really the intention?

Hedley

------------------------------------------------------------------------------
_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users
Vincent Fretin () Re: folder_listing trumps base_view in 2.4.1
Reply Threaded More More options
Print post
Permalink
Hi,

I think I made this modification. I was already on archgenxml 2.2 or 2.3.
My modification was to add the 4 views summary view, tabular view,
thumbnail view and standard view (folder_listing) to the display menu
for folderish content. Indeed by default for folderish content now
it's the folder_listing view. I don't remember why I do that actually.
Maybe I should revert to base_view for folderish content. When you
create a folderish content, generally you create some attributes with
it and you want them to be displayed. It's what the base_view do,
right?
I think I will revert the change in the next release if no objection.

Regards
--
Vincent Fretin

On Thu, Apr 2, 2009 at 2:58 PM, Hedley Roos <[hidden email]> wrote:

> Hi all
>
> In ArchetypesGenerator.py we have
>
> 4363             if folderish:
> 4364                 default_view = 'folder_listing'
>
> This means all my folderish types now displays the listing and not
> base_view. The workaround is to set tagged value
> immediate_view=base_view on every content type, but it is cumbersome.
>
> Is this really the intention?
>
> Hedley

------------------------------------------------------------------------------
_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users
Derek Broughton-3 () Re: folder_listing trumps base_view in 2.4.1
Reply Threaded More More options
Print post
Permalink
Vincent Fretin wrote:

> Hi,
>
> I think I made this modification. I was already on archgenxml 2.2 or 2.3.
> My modification was to add the 4 views summary view, tabular view,
> thumbnail view and standard view (folder_listing) to the display menu
> for folderish content. Indeed by default for folderish content now
> it's the folder_listing view. I don't remember why I do that actually.
> Maybe I should revert to base_view for folderish content. When you
> create a folderish content, generally you create some attributes with
> it and you want them to be displayed. It's what the base_view do,
> right?
> I think I will revert the change in the next release if no objection.

That works for me, thanks.  I spent more time than I should have trying to
work out why a content type that was not strictly folderish (but had
inherited from something folderish) wouldn't display my view.
--
derek


------------------------------------------------------------------------------
_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users