[Cartoweb-users] CVS version Views and pot scripts
    Pierre GIRAUD 
    pierre.giraud at camptocamp.com
       
    Wed Aug 10 13:32:40 EDT 2005
    
    
  
frequens a écrit :
>I have a user x2x with a role admin both highlevel and project specific
>
>My client.ini Views section in cartoweb/client_conf
>
>; Views management
>viewOn = true
>viewStorage = file
>viewablePlugins = location, layers, query, outline
>viewMetas = author
>;viewDsn = pgsql://www-data@localhost/cw3_test
>viewAuth = admin
>viewSavedRequest = someRequestVarname
>
>By folder you meant a Tab which should have appeared along other tabs
>like Layers, Print, About...
>
>Or am I missing something ;-)
>
>BR
>
>frequens
>
>_______________________________________________
>Cartoweb-users mailing list
>Cartoweb-users at lists.maptools.org
>http://lists.maptools.org/mailman/listinfo/cartoweb-users
>  
>
You're right, there should be a tab for views.
You must have something like following in your cartoclient.tpl template:
{if $views|default:''}<li id="label4"><a 
href="javascript:ontop(4)">{t}Views{/t}</a></li>{/if}
in your div id=tabnav1.
    {if $views|default:''}
    <div id="folder4" class="folder">
      {$viewsForm}
    </div>
    <!-- end of folder4 -->
    {/if}
in your div id= container.
You'll also need a call to the corresponding javascript file :
  {if $views|default:'' || $viewsList|default:''}<script 
type="text/javascript" src="{r type=js 
plugin=views}views.js{/r}"></script>{/if}
Try a diff between the cartoclient.tpl you modified in your project and 
the main one (updated from CVS) not to forget any view element.
Regards.
Pierre GIRAUD
    
    
More information about the Cartoweb-users
mailing list