Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
Hello! I trying to use jquery toolset, when I hover mouse over text I want the img show.

Normal <img src="" /> working, but when i try to use <cms:show img /> is just a blank img.

my code is:

Code: Select all
<cms:pages masterpage="movies.php" limit="20">
    <table style="width:100%">
        <tr>
          <td>
            <a id="toolimg" href="<cms:show k_page_link />" title=""><cms:show k_page_title /></a>
          </td>
          <td class="views-right">
            <cms:show my_vote />
          </td>
        </tr>

    </table>
    </cms:pages>



jQuery toolset:

Code: Select all
<script>
  $( "#toolimg" ).tooltip({ content: '<img src="<cms:show vimage />" width="200" height="200" />' });
</script>
You'll have make sure that the editable-region (image in this case) you are trying to display is indeed available in context where you are showing it.

In a page-view, all the regions are brought into context automatically.
For other places, we use <cms:pages> to explicitly bring the pages data in context.

I think at the place you are using <img src="<cms:show vimage />", the 'vimage' variable is not available (test it by placing a <cms:dump /> near that place to see a list of all the variables available for use).
KK wrote: You'll have make sure that the editable-region (image in this case) you are trying to display is indeed available in context where you are showing it.

In a page-view, all the regions are brought into context automatically.
For other places, we use <cms:pages> to explicitly bring the pages data in context.

I think at the place you are using <img src="<cms:show vimage />", the 'vimage' variable is not available (test it by placing a <cms:dump /> near that place to see a list of all the variables available for use).


When I dump, I can just see the img link from localhost/couch/uploads/image/.........

I gonna try fix it later, need to go to work now.
3 posts Page 1 of 1
cron