Posts Tagged ‘Pro tricks’

Pro tricks 3

June 18, 2008 - 12:17 pm No Comments

Proximedia header page

Keep the header page clean and simple like the example they provide us with from 1 of their projekt.

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<%
if request(”DocID”) = “” then
CMSdocid = “43849″       <!– change to the index ID –>
else
CMSdocid = request(”DocID”)
end if

if request(”langue”) = “” then
CMSlangue = “NL”
else
CMSlangue = request(”langue”)
end if
%>
<!– #include virtual=”../modules/CMS.asp” –> <!–Otherwise it will not work with the CMS–>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<title>><%getMeta “33776″,”NL”,”Title”%></title>
<meta name=”Customer” content=”03023813“>
<META name=”Author” content=”Pro”>
<meta name=”geography” content=”Stad, land, postcode”>
<META name=”Description” content=”<%getMeta “33776″,”NL”,”Description”%>” lang=”nl”>
<META name=”Keywords” content=”<%getMeta “33776″,”NL”,”Keywords”%>” lang=”nl”>
<meta name=”language” content=”<% =”NL”  %>“>
<meta name=”Copyright” content=”Pro”>
<meta name=”publisher” content=”Pro”>
<META name=”Revisit-After” content=”15 days”>
<meta name=”robots” content=”ALL”>
<META http-equiv=”imagetoolbar” content=”no”>
<link href=”style.css” rel=”stylesheet” type=”text/css” />
<script language=”JavaScript” src=”js/plan.js“></script>
</head>

Usually the header is split with some part of the body piece, mostly with the header image, banner, logo, etc…If changes are to be done in the header I will update immediately.

Pro tricks 2

June 18, 2008 - 12:08 pm No Comments

ASP code for Page.asp in “pro”:

If you manage to contruct a simple if and els statement in asp this would not be a problem to construct the page.asp pages for “pro” clients.
Example:

  • To receive the content from a activated ID in the CMS:    
    <% getBloc CMSdocid,CMSlangue,”Info” %>
  • To display the contact form page:
    <% if CMSdocid = “43857″ then %>
    <% getBloc CMSdocid,CMSlangue,”" %>
    <table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″>
    <tr>
    <td valign=”top”> <!– #include file=”ContactForm.asp” –> </td>
    </tr>
    </table> <% end if %>
  • To display the photogallery in “pro”:
    <% if CMSdocid = “43856″ then %>
    <% getBloc CMSdocid,CMSlangue,”" %>
    <% getGallery “33776″,CMSlangue,”" %>
    <% end if %>

So for a complete list to display the content and modules in “pro”:

<% if CMSdocid = “43856″ then %>
<% getBloc CMSdocid,CMSlangue,”" %>
<% getGallery “33776″,CMSlangue,”" %>
<% elseif CMSdocid = “43857″ then %>
<% getBloc CMSdocid,CMSlangue,”" %>
<table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″>
<tr>
<td valign=”top”> <!– #include file=”ContactForm.asp” –> </td>
</tr>
</table>
<%  else  %>
<% getBloc CMSdocid,CMSlangue,”Info” %>
<% end if %>

As you can see for combining 3 requested content we use the if, then, ifelse, endif statement in ASP page.
Stay up to date for more content code for the upcoming devastating asp code for proximedia.

Pro tricks 1

June 18, 2008 - 11:50 am No Comments

Html to ASP:

We are developing and designing websites for “pro”. “Pro” uses a CMS for all websites of the clients. This CMS uses asp code and where the website should be very strict under “pro” requirements. For example: “pro” logo (with hyperlink), huge banner (most website), etc…

For developing the ASP page the html page will be devided mostly in:

1. header.asp
2. navigation.asp
3. page.asp
4. footer.asp
5 adres.asp (sometimes)

For including asp pages we use:

<!–#include file=”header.asp”–>
<!–#include file=”navigation.asp”–>
<!–#include file=”footer.asp”–>