Headline Zones Create a New ZoneGenerate Zone Codes
Zones are the places on your site where you want your latest headlines to be displayed and they are analog to categories.
For example you may have a Sports section on your site, You may create a zone called SPORTS where the sports news headlines will be shown, then copy and paste its CODE into the pages where you want the sports headlines to be displayed
Zone Code :
<%dim headlines as string="" do while dr.read() if dr("articlespz")=0 then headlines="Show All" else headlines=dr("articlespz") if instr(allowedzones,"," & dr("zoneid") & ",")<>0 then assigned="(Assigned)" else assigned="" if lvl=2 or instr(allowedzones,"," & dr("zoneid") & ",")<>0 or instr(allowedzones,"," & dr("parentzoneid") & ",")<>0 or instr(allowedparents,"," & dr("zoneid") & ",")<>0 or (lvl=0 and appsettings.pblaccess="") or (lvl=1 and appsettings.edtsearch="") then if dr("parentzoneid")=0 then c=c+1 x=0 if lvl=2 then subzonelink="Create Subzone" %> <%else 'parentonzoneid=0' x=x+1%> <%end if 'parentzoneid%> <%end if '/// Conditions loop dr.close() conn.close()%> <%'/// No ZOnes found : ///' if c=0 then%> <%end if%>
# Zone Name / Description Zone ID Code for Headline Zone Preview Template View / Edit Delete
<%=c%>. "><%=dr("zonename")%> <%=assigned%>
- Template : " target="_blank"><%=dr("template")%>
- Headlines : <%=headlines%>
- Description : <%=dr("description")%><%if dr("subzones")>0 then response.write("

" & dr("subzones") & " Subzones")%>

<%=dr("zoneid")%>
<%=subzonelink%>
,'<%=replace(dr("zonename"),"'","\'")%>')">
Click Preview This Zone
" target="_blank">
View Template
">
Edit zone

)">
Delete Zone

There are no zones registered
Create a New Zone