[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] usertag image: Does it work?
I am still working on this component for
this template I have been working on.
My goal is to have the image usertag
work like it says in the perldoc.
here is the component I am working on.
<!-- image start 1 --> is where I have
been placing the image information at.
Remember this is not pretty.
#################################
[comment]
ui_component: category_page
ui_component_type: content
ui_component_group: category
ui_component_label: Full Category Page
titlebar:
label: Top Banner Title
widget: text
width: 40
banner_text:
label: Top and Bottom banner
default:
widget: textarea
width: 70
height: 8
advanced: 1
prodgroup:
label: Term in product group search to use
widget: text
width: 40
catyesno:
label: Search category as well for
product group term?
widget: yesno
rows:
label: How man rows to display, or
display all products
widget: select
options: ALL*,1,2,3,4,5,6,7,8,9,10
cols:
label: Columns to display
widget: select
options: 1,2,3,4*
[/comment]
<!-- BEGIN COMPONENT [control component
category_page] -->
<br>
[calc]
my $len = length("[control titlebar]");
$Scratch->{title_bar_width} =
$len * 9;
return;
[/calc]
[title-bar width="[scratch
title_bar_width]" size="4"
color="green"]<center>[control
titlebar]</center>[/title-bar]
<br>
[comment] Bottom table with information
[/comment]
<!-- Begin top comment -->
<table width="95%">
<tr>
<td width="10%">
</td>
<td>
<br>
<font size="+1">
<BLOCKQUOTE>
[control banner_text]
</BLOCKQUOTE>
</font>
</td>
<td width="10%">
</td>
</tr>
</table>
<br>
<hr>
[comment]
<table>
<tr>
<td align="center"><h1><small></small></h1>
</td>
</tr>
</table>
[/comment]
[table-organize
cols="[control cols 4]"
pretty=1
columnize=0
embed=lc
tr.0='valign="top" align="center"'
table='width="95%"'
]
[if type=explicit compare="[control
catyesno]"]
[loop search="
se='[control prodgroup]'
os=yes
sf=prod_group
sf=category
"]
[else]
[loop search="
se='[control prodgroup]'
os=yes
sf=prod_group
"]
[/else]
[/if]
[sort products:prod_group products:category]
<!-- end top table -->
<td>
<TABLE WIDTH="95%" BORDER="1"
ALIGN="CENTER" CELLPADDING="10"
CELLSPACING="0">
<TR>
<TD VALIGN="TOP" ALIGN="CENTER"
HEIGHT="100" WIDTH="227">
<!-- image start 1 -->
[image [loop-code]]
<!-- image end 1 -->
[comment]
[if-loop-field image]
<br>
<a href="[area [loop-code]]">
<IMG SRC="thumb/[loop-field image]"
ALT="[loop-filter
entities][loop-description][/loop-filter]"
BORDER="0"></a>
[/if-loop-field]
[/comment]
<br>
<b>[loop-field prod_group] -
[loop-field category]</b><br>
[loop-description]<br>
<br>
<a href="[area [loop-code]]"> Item:
[loop-code]</a><br>
<br>
[if-loop-field sale_price]
<STRIKE>Regular Price: $[loop-field
price]</STRIKE><br>
<B>Your Price: $[loop-field
sale_price]</B><br>
[else]
Price: [loop-field price]
<br>
[/else]
[/if-loop-field]
<br>
<DIV ALIGN="LEFT">
[filter op="240
chop_boundary"][loop-field
comment][/filter]... <a
href="[area [loop-code]]">More info</a>
</DIV>
<br>
<br>
</TD>
</TR>
</TABLE>
<td>
</td>
[/loop]
</td>
[/table-organize]
[comment] Bottom table with information
[/comment]
<!-- Begin bottom comment -->
<table width="95%" cellpadding="0"
cellspacing="0">
<tr>
<td width="10%">
</td>
<td align="center" width="80%">
<br>
<br>
<br>
<font size="+2">
[control banner_text]
</font>
</td>
<td width="10%">
</td>
</tr>
</table>
<!-- END COMPONENT [control component
category_page] -->
--
-------------------------
Philip S. Hempel
debian/rules