Home: Tip of The Day: Sub pageing inside parts: 
Tip of The Day - Sub pageing inside parts

You can use the sub-page command inside a Part, but to access defined labels you must use the 'inline' command. The inline command will execute the code defined in the label as if it was written in the current location. For example you could create a page that automatically has a printable version. Code a part called 'NormalPage':

#GorillaScript:
<html>
<head>
<title>inline("Title");
</title>
</head>
<body bgcolor='#000000' text='#FFFFFF'>
inline("Body");
<br>
<br>
subpagelink("Printable","Printable Version");
</body>
</html>

subpage("Printable")
{
<html>
<head>
<title>inline("Title");
</title>
</head>
<body>
inline("Body");
</body>
</html>
}

Then use the part in a page:

part("NormalPage")
{ Title:"My Title";
Body:"The body text of the page.";
}

Now each page has 'Printable' link which makes the background white.
Download  |  Tutorial  |  Documentation  |  Pricing  |  Contact