[Cartoweb-users] Misconfiguration or bug concerningeditandexportpdf

Oliver Christen oliver.christen at camptocamp.com
Thu Sep 18 02:50:26 EDT 2008


Hi

if the folder content is there but not visible, it means it's considered hidden by the folder management javascript.

so, either you have two folder with the same id, or two ontop(#) javascript function call with the same # in your cartoclient.tpl

regards
Oliver
  ----- Original Message ----- 
  From: thomas gratier 
  To: cartoweb-users at lists.maptools.org 
  Sent: Wednesday, September 17, 2008 5:56 PM
  Subject: Re: [Cartoweb-users] Misconfiguration or bug concerningeditandexportpdf


  Hello,

  Like you advice, I check the toolbar group and I check the folderId but It don't change anything. I set general.allowedRoles=all in edit and exportpdf  to test the auth plugin impact.
  When I launch my project.php, I  look on my source code and my folder and all the html part seems to be here but I don't see them on the screen. I check the css so I suppose it's a javascript component who change the view on the screen.
  Someone got an idea?

  Thanks

  Thomas G

  Below an extract from my template cartoclient.tpl

  ######### PART leftbar ###########

  <div id="leftbar">
      <div>
        <ul id="tabnav2">
          <li id="label13"><a href="javascript:ontop(13)">{t}Print{/t}</a></li>
          <li id="label11"><a href="javascript:ontop(11)">{t}Layers reorder{/t}</a></li>
          {if $views|default:''}<li id="label8"><a href="javascript:ontop(8)">{t}Views{/t}</a></li>{/if}
          <li id="label5"><a href="javascript:ontop(5)">{t}Help Viewer{/t}</a></li>
        </ul>
        <ul id="tabnav1">
          <li id="label1"><a href="javascript:ontop(1)">{t}Themes{/t}</a></li>
          <li id="label3"><a href="javascript:ontop(3)">{t}Search{/t}</a></li>
          <li id="label12"><a href="javascript:ontop(12)">{t}Edit{/t}</a></li>
          <li id="label6"><a href="javascript:ontop(6)">{t}Outline{/t}</a></li>
          <li id="label7"><a href="javascript:ontop(7)">{t}Query{/t}</a></li>
        </ul>
     </div>
  ######     Part with toolbar   #########
  <td colspan="3" id="toolbar_row" nowrap="nowrap">
            {include file="toolbar.tpl" group="1" header="1"}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            {include file="toolbar.tpl" group="3"}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            {include file="toolbar.tpl" group="4"}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            {if $edit_allowed|default:'' && $edit_layer_selected}
            {include file="toolbar.tpl" group="5"}
            <input type="checkbox" id="snapping" name="edit_snapping" onclick='mainmap.snap("map")' {if $edit_snapping|default:''}checked=checked{/if}/>
            <img src="{r type=gfx plugin=edit}edit_snap.gif{/r}" title="{t}Allow vertex snapping{/t}" alt="{t}Allow vertex snapping{/t}"><br />
            {/if}
            <span {if !$exportPdf}style="display:none; "{/if}>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{include file="toolbar.tpl" group="2"}
            </span>
  ....

  #####  part Folder ########
  <div id="folder12" class="folder" style="height:550px;">
          {if $edit_active|default:''}
            {include file="../plugins/edit/templates/edit.tpl"}
          {/if}
      </div>

  <div id="folder13" class="folder">
        <br />
          {if $exportPdf|default:''}
            {$exportPdf}
          {else}
            <p>
              {t}You are not allowed to print maps{/t},
              {if $auth_active|default:''}
               {t}please{/t} {$auth}.
              {/if}
            </p>
          {/if}
      </div>

  Thomas G



------------------------------------------------------------------------------


  _______________________________________________
  Cartoweb-users mailing list
  Cartoweb-users at lists.maptools.org
  http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080918/be8e23d9/attachment-0001.html


More information about the Cartoweb-users mailing list