Re: migrating a site to cps

Andrius <[email protected]>
Newsgroups gmane.comp.web.zope.cps.devel
Message-ID <[email protected]>
> 
> should look like this:
> 
> ##########################################
> <tal:block condition="python: display == 'navigation_tree'">
>     <tal:block
>      define="show_icons ds/show_icons;
>              show_icons python: int(show_icons);
>              contextual ds/contextual;
>              end_depth ds/end_depth;
>              folderItems python: context.getNavigationItems(
>                  root_uids=root_uids,
>                  context_rpath=context_rpath,
>                  context_obj=context,
>                  contextual=contextual,
>                  end_depth=int(end_depth),
>                  start_depth=int(start_depth),
>                  display_description=display_description,
>                  display_hidden_folders=display_hidden_folders,
>                  );
> #########################################
> 

You should add one more line: end_depth ds/end_depth;

##########################################
  <tal:block condition="python: display == 'navigation_tree'">
    <tal:block
     define="show_icons ds/show_icons;
             show_icons python: int(show_icons);
             contextual ds/contextual;
             end_depth ds/end_depth;
             start_depth ds/start_depth;
             folderItems python: context.getNavigationItems(
                 root_uids=root_uids,
                 context_rpath=context_rpath,
                 context_obj=context,
                 contextual=contextual,
                 end_depth=int(end_depth),
                 start_depth=int(start_depth),
                 display_description=display_description,
                 display_hidden_folders=display_hidden_folders,
                 );
#########################################

_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.