[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: Home of WML and other stuff



Hi,
as you're talking of wml-generated sites i want to mention the Site
http://www.freeware.de.

Heiko, our office neighbor and the maintainer/owner of this Site
asked us to help him with the redesign. First we thought of using
PHP-Mysql, but then we decided to use WML :-)

Now Heiko is able to create a bunch of pages while editing one single
file like this:

---------------------------
#include header.inc
<page foo.shtml>
<software ..... >
text
</software>
<software ..... >
text
</software>
</page>

<page bar.shtml>
<software ..... >
text
</software>
...
</page>
#include footer.inc
---------------------

and the detail-pages like this:
----------------------------
#include header.inc
<software_detail ..... >
text
</software>

<software_detail ..... >
text
</software>
#include footer.inc
----------------------------

I think that could be of common interest because the biggest
difficulty was to check how much pages and software_details where used
in META-HTML to prepare the slices.

With this in the footer:

<subst-in-page %AAAAAAAARRGGGG% <get-var slicename>>

and this for the pages(or software_details):

<define-container page>
<set-var slicename="<get-var slicename>S">
%!slice -o<get-var slicename>uUNDEF:%0
[<get-var slicename>:
%body
:<get-var slicename>]
</define-container>

and that for the title of each single page

<define-tag ftitle>
..TITLE>>
<title>Freeware - for free people %0
<:
my $maxpage= length('%AAAAAAAARRGGGG%') || 0;
if($maxpage > 1) {
 foreach(1..$maxpage) { 
  print '[',S x $_,':',$_,':',S x $_,']'; 
 }
}
:>
</title>
<<..
</define-tag>

it worked!

Maybe one can use this somewhere ... somehow ;-) 

Bye 
Paul


-- 
Lang erwartet, endlich da:
Buy-World, E-Commerce fuer alle
http://www.acmedia.de http://www.buy-world.de
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com