Jump to:

22977 Posts in 11733 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » getting (title="img name") to show up

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 721 Views
  • JPG
    Avatar
    Community Member
    53 Posts

    getting (title="img name") to show up Link to this post

    Hi - right, as it states in the title.

    I have a gallery that has been built and now I am trying the get the "title" curser-pop up to appear, it seems to refuse when I add it to either the <a> or <img> tags that I add it to (my use of the <img> is in conjunction with <a> in this case, I have tried every combination of where to house the "title" tag).

    Here is a link to my example - please note that this is the live version that does not have the tags in use - I am experimenting with change on my local devserver.

    http://www.zenz.net
    (the links that I cannot get to behave are the gallery images that serve as links to other pages in the main content - I know the links are not working at the moment either - also as you can see the title tags work in the main navigation...)

    In case it proves too much a pain to find the relevant files and code from the live site (and I think it will be), here is the ripped out code from the files that control the img and anchors from the home page.

    <div id="primaryContent">
    <div class="innerpad">
    <div id="Content">
    <% if URLSegment = home %>
    <h2>architecture building design making</h2>
    <div style="float:left;width:380px;font-size: 14px;line-height: 1.5;color: #AAA;" class="galleryDescription">
    $Content</div>
    <% else %>
       

       <div class="content-gal-div"> <h2>$Title</h2>
    <% if AlbumTitle %>
       <% control CurrentAlbum %>
       <p class="galleryDescription">$Description</p>
       </div>
       <% end_control %>
       <% end_if %><% end_if %>
       
          

             

                <div id="galleria">
                   <% control GalleryItems %>
                         <div >
                      

                    <% if ImageLink %><a id="ViewLink-$ID" rel="$RelAttr" class="$ClassAttr" title="$Caption" href="$ImageLink" >
                      <% else %>
                       <a href="#" title="$Title" ><% end_if %>
                       <img src="$ThumbnailURL" alt="$Caption" title="$Title" /> </a>
                       <span>$Description</span>
                         
                         </div>
                   <% end_control %>
                   
                </div>   
       
    </div>
    </div>
    </div>

    Many thanks

  • JPG
    Avatar
    Community Member
    53 Posts

    Re: getting (title="img name") to show up Link to this post

    Shameless bump - still no joy...

  • JPG
    Avatar
    Community Member
    53 Posts

    Re: getting (title="img name") to show up Link to this post

    Okay - so I have noticed on a few sites that have the same function (of a gallery type main content) seem to be missing this function. Is it actually the case that SS is over-writing the tags of the IMGs that are in the gallery/main content and rendering the "title=" section of the <img> and <a> tags useless as I STILL cannot get them to appear when the mouse id hovering...

    721 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.