Hello. I am trying to figure out the templates. Based on a previous thread I started in pre-sales, I have learned more about the concept of how they work.
It seems that the templates are all pieces of the whole. For example: you can begin and end all html documents in LinksSQL in the header and footer, and simply have the body of the html in each of the pages (like home.html, add.html etc).
What was first confusing is that I added a header and footer in LinksSQL and didn't take out the <head> </head> etc out of the individual pages like home.html etc.
Ok. So did I get that right?
Now, I have devised a html page, based on the html anthrorules provided...really just adding some html to it and using the home.html template as a starting ground. When I build, and go to the main page, I see no page. The title says: "Gossamer Threads Inc.: Unknown Tag: 'category_name'"
Looking att he source, the title is all I see.
Here is the html source I used:
-------------
header.txt
-------------
<html>
<head>
<title><%site_title%>: <Êtegory_name%></title>
<%if meta_description%>
<meta name="Description" content="<%meta_description%>">
<%endif%>
<%if meta_name%>
<meta name="Keywords" content="<%meta_name%">
<%endif%>
</head>
<body bgcolor="ffffff">
<div align="center"><center>
<table border="0" width="100%" cellpadding="2" cellspacing="0">
<tr bgcolor="FFFFFF">
<td valign="top" width="50%">
<p><small class="menu">| <a class="menulink" href="<%build_root_url%>">Home</a>
| <%if category_id%> <a class="menulink" href="<Û_cgi_url%>/add.cgi?ID=<Êtegory_id%>">Add
a Resource</a> | <a class="menulink" href="<Û_cgi_url%>/modify.cgi?ID=<Êtegory_id%>">Modify
a Resource</a> | <%endif%> <%ifnot category_id%> <a class="menulink" href="<Û_cgi_url%>/add.cgi">Add
a Resource</a> | <a class="menulink" href="<Û_cgi_url%>/modify.cgi">Modify
a Resource</a> | <%endif%> <a class="menulink" href="<%build_root_url%>/New">What's
New</a> | <a class="menulink" href="<%build_root_url%>/Cool">What's
Cool</a> | <a class="menulink" href="<%build_root_url%>/Ratings">Top
Rated</a> | <a class="menulink" href="<Û_cgi_url%>/subscribe.cgi">Email
Updates</a> | <a class="menulink" href="<Û_cgi_url%>/jump.cgi?ID=random">Random
Link</a> | <a class="menulink" href="<Û_cgi_url%>/search.cgi">Search</a>
| <%if Username%> <a class="menulink" href="<Û_cgi_url%>/browser.cgi">Editors</a>
| <a class="menulink" href="<Û_cgi_url%>/user.cgi?logout=1">Logout</a>
| <%endif%> <%ifnot Username%> <a class="menulink" href="<Û_cgi_url%>/user.cgi">Login</a>
| <%endif%> </small></p>
</td>
<td valign="middle" width="50%">
<div align="center">More header info</div>
</td></tr>
<tr>
<td valign="top" width="100%" colspan="2">
-------------
home.html:
-------------
<%include header.txt%>
<div align="center"><center>
<table border="0" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td valign="top" width="80%">
<h1 class="home"><%site_title%></h1>
<p>Welcome to the Links online demo. Feel free to add your own link, modify
another's or just play around!</p>
<p><font size="3" face="Verdana, Arial, Helvetica, sans-serif" color="#000000"><b>This
is the place where we'd have main content</b></font> </p>
</td>
<td valign="top" width="20%"><Êtegory%>
<p>This is the place for the navigation generated by links.</p>
</td>
</tr>
</table>
</div></center>
<%include footer.txt%>
-----------
footer.txt:
-----------
</td></tr>
<tr align="center">
<td width="100%" colspan="2"> footer info</td>
</tr>
</table>
</div></center>
</body>
</html>
Where did I go wrong?
It seems that the templates are all pieces of the whole. For example: you can begin and end all html documents in LinksSQL in the header and footer, and simply have the body of the html in each of the pages (like home.html, add.html etc).
What was first confusing is that I added a header and footer in LinksSQL and didn't take out the <head> </head> etc out of the individual pages like home.html etc.
Ok. So did I get that right?
Now, I have devised a html page, based on the html anthrorules provided...really just adding some html to it and using the home.html template as a starting ground. When I build, and go to the main page, I see no page. The title says: "Gossamer Threads Inc.: Unknown Tag: 'category_name'"
Looking att he source, the title is all I see.
Here is the html source I used:
-------------
header.txt
-------------
<html>
<head>
<title><%site_title%>: <Êtegory_name%></title>
<%if meta_description%>
<meta name="Description" content="<%meta_description%>">
<%endif%>
<%if meta_name%>
<meta name="Keywords" content="<%meta_name%">
<%endif%>
</head>
<body bgcolor="ffffff">
<div align="center"><center>
<table border="0" width="100%" cellpadding="2" cellspacing="0">
<tr bgcolor="FFFFFF">
<td valign="top" width="50%">
<p><small class="menu">| <a class="menulink" href="<%build_root_url%>">Home</a>
| <%if category_id%> <a class="menulink" href="<Û_cgi_url%>/add.cgi?ID=<Êtegory_id%>">Add
a Resource</a> | <a class="menulink" href="<Û_cgi_url%>/modify.cgi?ID=<Êtegory_id%>">Modify
a Resource</a> | <%endif%> <%ifnot category_id%> <a class="menulink" href="<Û_cgi_url%>/add.cgi">Add
a Resource</a> | <a class="menulink" href="<Û_cgi_url%>/modify.cgi">Modify
a Resource</a> | <%endif%> <a class="menulink" href="<%build_root_url%>/New">What's
New</a> | <a class="menulink" href="<%build_root_url%>/Cool">What's
Cool</a> | <a class="menulink" href="<%build_root_url%>/Ratings">Top
Rated</a> | <a class="menulink" href="<Û_cgi_url%>/subscribe.cgi">Email
Updates</a> | <a class="menulink" href="<Û_cgi_url%>/jump.cgi?ID=random">Random
Link</a> | <a class="menulink" href="<Û_cgi_url%>/search.cgi">Search</a>
| <%if Username%> <a class="menulink" href="<Û_cgi_url%>/browser.cgi">Editors</a>
| <a class="menulink" href="<Û_cgi_url%>/user.cgi?logout=1">Logout</a>
| <%endif%> <%ifnot Username%> <a class="menulink" href="<Û_cgi_url%>/user.cgi">Login</a>
| <%endif%> </small></p>
</td>
<td valign="middle" width="50%">
<div align="center">More header info</div>
</td></tr>
<tr>
<td valign="top" width="100%" colspan="2">
-------------
home.html:
-------------
<%include header.txt%>
<div align="center"><center>
<table border="0" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td valign="top" width="80%">
<h1 class="home"><%site_title%></h1>
<p>Welcome to the Links online demo. Feel free to add your own link, modify
another's or just play around!</p>
<p><font size="3" face="Verdana, Arial, Helvetica, sans-serif" color="#000000"><b>This
is the place where we'd have main content</b></font> </p>
</td>
<td valign="top" width="20%"><Êtegory%>
<p>This is the place for the navigation generated by links.</p>
</td>
</tr>
</table>
</div></center>
<%include footer.txt%>
-----------
footer.txt:
-----------
</td></tr>
<tr align="center">
<td width="100%" colspan="2"> footer info</td>
</tr>
</table>
</div></center>
</body>
</html>
Where did I go wrong?