473,324 Members | 2,246 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

HTML loop using ePages back office

I'm struggling to debug a simple loop in ePages back office. My knowledge of HTML is all self taught, copying and pasting bits of code from here and there, so I'm not too up on the finer points, but I'm not too bad.

This piece of code should show a list of items in three columns, but it is only showing a single column. I can't figure out what is wrong.

I don't understand what the setTLE function is doing and also where it gets #productcount from. I've tried displaying the #productcount variable, but it only shows as text.

Please help. It's doing my head in!


#LOOP(#Products)
#IF(#productcount EQ "0")
<TR>
<TD>
First column here
</TD>
<td>
#BEGIN
SetTLE("#productcount","1");
#END
#ELSE
#IF(#productcount EQ "1")
<TD>
Second column here
</TD>
<td>
#BEGIN
SetTLE("#productcount","2");
#END
#ELSE
<TD>
Third column here
</TD>
</tr>
<td>
#BEGIN
SetTLE("#productcount","0");
#END
#ENDIF
#ENDIF
#ENDLOOP
Jan 18 '07 #1
6 1807
drhowarddrfine
7,435 Expert 4TB
I don't know what this ePages program is but it needs to be trashed. It's producing awful code.

Every <td> tag needs a matching/ending </td> tag. Match those up and see if that solves it.
Jan 18 '07 #2
AricC
1,892 Expert 1GB
I'm struggling to debug a simple loop in ePages back office. My knowledge of HTML is all self taught, copying and pasting bits of code from here and there, so I'm not too up on the finer points, but I'm not too bad.

This piece of code should show a list of items in three columns, but it is only showing a single column. I can't figure out what is wrong.

I don't understand what the setTLE function is doing and also where it gets #productcount from. I've tried displaying the #productcount variable, but it only shows as text.

Please help. It's doing my head in!


#LOOP(#Products)
#IF(#productcount EQ "0")
<TR>
<TD>
First column here
</TD>
<td>
#BEGIN
SetTLE("#productcount","1");
#END
#ELSE
#IF(#productcount EQ "1")
<TD>
Second column here
</TD>
<td>
#BEGIN
SetTLE("#productcount","2");
#END
#ELSE
<TD>
Third column here
</TD>
</tr>
<td>
#BEGIN
SetTLE("#productcount","0");
#END
#ENDIF
#ENDIF
#ENDLOOP
What is ePages? All of that #... will print as plain text is that what you are aiming for? Here is the proper layout for a table:

[html]
<table>
<tr>
<td>
1 column
</td>
<td>
2 column
</td>
<td>
3 column
</td>
</tr>
</table>
[/html]
Jan 18 '07 #3
drhowarddrfine
7,435 Expert 4TB
I think all that extra stuff is code for the ePages program, like PHP, and it gets interpreted.
Jan 18 '07 #4
ePages is a modern version of Intershop

The code is probably my fault as I copied and pasted it from a larger page and I've probably missed part of the table.

The table layout is not important as I know how that works, it is the #LOOP(#Products) and #IF(#productcount EQ "0") code that is confusing me.
Jan 23 '07 #5
drhowarddrfine
7,435 Expert 4TB
Never heard of Intershop either.
Jan 23 '07 #6
AricC
1,892 Expert 1GB
Never heard of Intershop either.
Neither have I...
Jan 23 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Curtis Justus | last post by:
Hi, My back is against the wall and I've tried to figure out something to do. Here is my scenario: I have an automated process running in a service that generates HTML files. Each resulting...
4
by: Max | last post by:
Hi, I would like to have a button and a combo box with options to select various versions of Microsoft Outlook: 2002, 2003. The user selects the email client and clicks the button. The only...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
1
by: Andrew | last post by:
I'm adding this as it to me a while to figure out all the pieces to be able to do this without using Microsoft.Office.Interop which caused me problems on the web-server. Streaming is the easy...
6
by: Joerg Battermann | last post by:
Hey there, mmmm does anyone know a library or anything I can use to convert plaintext to html real quick and vice-versa? Regex surely would do the trick to a certain level, but maybe there's...
1
by: Little | last post by:
Could someone start me on putting in a table into this code, and some HTML tags. I would to make the table below the map and have a header at the top. Thanks for the help. """ Publisher example...
5
by: kewalmehra | last post by:
Hi All, I have a requirement of saving Excel files as HTML using C#. I have managed to write code for saving as HTLM file. however this seems to be not working in the once perticular case . ...
52
by: MP | last post by:
Hi trying to begin to learn database using vb6, ado/adox, mdb format, sql (not using access...just mdb format via ado) i need to group the values of multiple fields - get their possible...
1
by: Wandering | last post by:
I know you guys are heavy duty coders, while I do ad-hoc analysis, and rarely write code. And, I may be in the wrong groups because this is about an install issue, and I don't think it's a code...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.