[opencms-dev] How would you create a catalog website?
Arne Schirmacher
nn4l at yahoo.de
Wed Dec 10 08:21:01 CET 2003
I need a book catalog area on my website. Each page
has some text about the book, and a html table with
picture, title, isbn, link to amazon etc.
The data for the picture block is just title, author
and isbn. The isbn number is used to generate the
image url (isbn.jpg), several <a> links to amazon
(image, "order" text link, java script to make the
whole cell clickable) and it is of course displayed as
text too.
Now the problem is how to code this page. I tried
using a standard html page and using the html gallery
for the picture block. But I had to replace all
occurrences of the isbn in the source code editor,
because the isbn number is used in many places in the
html code, including in a "onclick" java script
statement which is not editable in the wysiwyg html
editor.
This is of course error-prone. I would rather use jsp
code or a template here, but I don't see how to fit
this in. Any jsp code entered in the html page is not
executed. And if I start from a jsp page, the html
editor is not available.
The ideal solution would be if the html editor would
be available for jsp pages. I could then use it to
write the book description, and the picture block
would be generated by a java function, taking the book
title, author and isbn as parameters.
Now I have to resort to an external html editor to
write the text part, but other authors don't have it
and therefore could not write book articles.
How would you solve this problem?
__________________________________________________________________
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de
More information about the opencms-dev
mailing list