ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

entry mapper and other animals (channels)

August 05, 2013 8:43pm

Subscribe [1]
  • #1 / Aug 05, 2013 8:43pm

    danc

    3 posts

    I have just purchased the new entry mapper from devdemon. I am posting here because as a newbie I feel this is much more an error in my understand of EE tags than an issue with entry mapper:

    <html lang="en">
    <head>
      <meta charset="utf-8" />
      <title>jQuery UI Dialog - Animation</title>
      <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
      [removed][removed]
      [removed][removed]
      
      <style>
    
      input:focus,
      select:focus,
      textarea:focus,
      button:focus {
          outline: none;
      }
      body {
       color: #333
      }
       
      #fixedContainer
      {
        position: fixed;
        width: 960px;
        height: 640px;
        left: 0%;
        top: 0%;
        margin-left: -300px; /*half the width*/
      }
    
      div#links a span {
       display: none;}
       
      div#links a:hover span {display: block;
         position: fixed; top: 250px; left: 250; width: 300px;
         padding: 5px; margin: 10px; z-index: 100;
         color: #AAA; background: black;
         font: 10px Verdana, sans-serif; text-align: left;}
     
     </style>
      
    </head>
    <body>
    {exp:channel:entries channel="staff" limit="1"}
     {exp:entry_mapper:map map_name="map" }
       <div >
           {mapper:image_url}
           {mapper:entries}
        {exp:channel_images:images entry_id="{entry_id}"}
           <span class="entry">
            <div id="links"><a href="#">{mapper:entry_id}<span>{image:url:small}</br>Department: {employee_department}</br></br>Job Title: {employee_job_title}</br></br>ext: {employee_extension} | cell: {employee_cell_phone}</br></br>email: {employee_email}</span></a></div>
           </span>
        {/exp:channel_images:images}
        </div>
          </div>
       {/mapper:entries}
     {/exp:entry_mapper:map}
    {/exp:channel:entries}
    
    
    </body>
    </html>

    The above is my html/EE code. The Template is pulling from the Staff channel and displaying the mapper ID tag on the map (image)

    Hovering over the {mapper:entry_id} is supposed to expose the span containing staff info, photo etc.

    There are currently two entries in the Channel and the map indicates the 2 different mapper:entry_id’s in the correct places, however hovering over the mapper:entry_id brings up the same Entry from the Staff channels for both.

    If I remove the Limit=“1” from {exp:channel:entries channel="staff" limit="1"} the I get Two Maps one after the other the second map showing the same mapper:entry_id’s both with hovering brings up the second Entry from the Staff channels for both.

    I hope this is clear and someone can help

    Many thanks in advance.

  • #2 / Aug 05, 2013 9:28pm

    danc

    3 posts

    Solved. Coffee and some fresh air:

    <body>
    <div id="fixedContainer"> 
     {exp:entry_mapper:map map_name="4th_floor"}
     <div >
         {mapper:image_url}
    
      {exp:entry_mapper:entries map_name="4th_floor"}
      <span class="entry">
       {exp:channel_images:images entry_id="{entry_id}"}
              <div id="links"><a href="#">[0]<span>{image:url:small}</br>Department: {employee_department}</br></br>Job Title: {employee_job_title}</br></br>ext: {employee_extension} | cell: {employee_cell_phone}</br></br>email: {employee_email}</span></a></div>
              <!-- You can use all {exp:channel:entries} variables -->
          {/exp:channel_images:images}
       </span>
      {/exp:entry_mapper:entries}
    
    
     </div>
     {/exp:entry_mapper:map}
    </div>
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases