1
I am trying to modify the static block so it doesn't show the Submitter name, but rather the user1 (Defineable) info.
Here is the code:
<table width="100%" cellspacing="1" align="center">
<{if $block.position == 1}>
<tr>
<{foreach item=pic from=$block.pics}>
<td align="center" class="odd" style="padding: 10px;vertical-align: middle;">
<a href="<{$xoops_url}>/modules/xcgal/<{$pic.link_tgt}>"><{$pic.image}>a><br />
<{$pic.caption}>
td>
<{/foreach}>
tr>
<{else}>
<{foreach item=pic from=$block.pics}>
<tr>
<td align="center" style="padding: 10px;vertical-align: middle;">
<a href="<{$xoops_url}>/modules/xcgal/<{$pic.link_tgt}>"><{$pic.image}>a> <br />
<{$pic.caption}>
td>
tr>
<{/foreach}>
<{/if}>
table>
I thought by changing ($pic.caption) in both locations to ($pic.user1) it would change what gets displayed. Since both Caption and User1 are field names. But when I change it, the space is blank. When I change it back to "CAPTION" is goes back to normal.
Anyone have any thoughts?