<xmod:ScriptBlock ScriptId="xmodQuickStyle" BlockType="HeadScript" RegisterOnce="True" >
<style>
.sm-font {font-size:8px; color:gray;}
.generic-table{width:100%;background:#efeded;border:0 solid #c0c0c0;border-collapse:separate}
.generic-table td{font-family:Arial,Helvetica,sans-serif;font-size:10px;line-height:18px;padding-left:10px}
.generic-headers{font-weight:bold;padding-left:6px;background:#efeded}
.generic-headers th{font-weight:bold;color:#333;padding-top:4px;padding-bottom:4px}
.generic-headers td{font-weight:bold;color:#444;padding-top:4px;padding-bottom:4px}
.generic-items{background:#FFFFFF}
.generic-items-alt{background:#f1f6fa;border-top:1px solid #EFEFEF;border-bottom:1px solid #EFEFEF}
.highlight{background-color:#FFF0F5; border-left:2px solid red; border-bottom:1px solid #EAD4DC; color:#EAD4DC;}
style>
xmod:ScriptBlock>
<xmod:template >
<ListDataSource CommandText="
SELECT TabID, replace(TabPath,'//','/') AS TabPath, ISNULL(ParentId, 0) AS SortOrderVal, ParentId, TabOrder, Level, TabName, ISNULL(NULLIF (Title, ''), '1') AS TitleFlag, Title, ISNULL(NULLIF (Description, ''),
'1') AS DescriptionFlag, Description, ISNULL(NULLIF (KeyWords, ''), '1') AS KeyWordsFlag, KeyWords, SiteMapPriority
FROM Tabs
WHERE (PortalID = @passedPortalID) AND (IsDeleted = 0)
ORDER BY SortOrderVal, Level, TabOrder
">
<parameter name="passedPortalID" value='[[Portal:ID]]' datatype="Int32" />
ListDataSource>
<HeaderTemplate>
<table class="generic-table">
<tr class="generic-headers">
<td width="30"> td>
<td><strong>TabNamestrong>td>
<td colspan="2"><strong>Meta Infostrong>td>
<td><strong>SiteMap Prioritystrong>td>
<td><strong>Resourcesstrong>td>
tr>
HeaderTemplate>
<ItemTemplate>
<tr class="generic-items">
<td rowspan="2">
<xmod:editimage imageurl="~/images/edit.gif" alternativetext="Edit" tooltip="Edit">
<parameter name="TabID" value='[[TabID]]'/>
xmod:editimage>
td>
<td rowspan="2" valign="top">[[TabName]]<br/><span class="sm-font">([[TabId]])span>td>
<xmod:select>
<case comparetype="text" value='[[TitleFlag]]' operator="=" expression="1">
<td colspan="2" class="highlight">
- title missing -
td>
case>
<else>
<td colspan="2">
[[Title]]
td>
else>
xmod:select>
<td rowspan="2">[[SiteMapPriority]]td>
<td rowspan="2">
<xmod:Redirect Display="linkbutton" Target="http://www.webconfs.com/keyword-density-checker.php" Method="post" Text="chk kwds" ToolTip="check the page's content keyword density">
<field name="url" value='[[Join("{0}{1}/TabID/{2}/Default.aspx", [[Portal:Alias]],[[TabPath]],[[TabID]])]]' />
xmod:Redirect>
td>
tr>
<tr class="generic-items">
<xmod:select>
<case comparetype="text" value='[[DescriptionFlag]]' operator="=" expression="1">
<td class="highlight">
- description missing -
td>
case>
<else>
<td>
<nobr><span class="sm-font"><xmod:format type="regex" value='[[Description]]' pattern="(.*)" replacement="$1" maxlength="70" />span>
<xmod:togglelink text="+" target='[[Join("#divMoreInfo_{0}a",[[TabId]])]]' speed="Fast" />nobr>
<div id="divMoreInfo_[[TabId]]a" style="display:none;">
<br/>
<span class="sm-font">[[Description]]span>
div>
td>
else>
xmod:select>
<xmod:select>
<case comparetype="text" value='[[KeywordsFlag]]' operator="=" expression="1">
<td class="highlight">
- keywords missing -
td>
case>
<else>
<td>
<nobr><span class="sm-font"><xmod:format type="regex" value='[[Keywords]]' pattern="(.*)" replacement="$1" maxlength="70" />span>
<xmod:togglelink text="+" target='[[Join("#divMoreInfo_{0}b",[[TabId]])]]' speed="Fast" />nobr>
<div id="divMoreInfo_[[TabId]]b" style="display:none;">
<br/>
<span class="sm-font">[[Keywords]]span>
div>
td>
else>
xmod:select>
tr>
ItemTemplate>
<AlternatingItemTemplate>
<tr class="generic-items-alt">
<td rowspan="2">
<xmod:editimage imageurl="~/images/edit.gif" alternativetext="Edit" tooltip="Edit">
<parameter name="TabID" value='[[TabID]]'/>
xmod:editimage>
td>
<td rowspan="2" valign="top">[[TabName]]<br/><span class="sm-font">([[TabId]])span>td>
<xmod:select>
<case comparetype="text" value='[[TitleFlag]]' operator="=" expression="1">
<td colspan="2" class="highlight">
- missing title -
td>
case>
<else>
<td colspan="2">
[[Title]]
td>
else>
xmod:select>
<td rowspan="2">[[SiteMapPriority]]td>
<td rowspan="2">
<xmod:Redirect Display="linkbutton" Target="http://www.webconfs.com/keyword-density-checker.php" Method="post" Text="chk kwds" ToolTip="check the page's content keyword density">
<field name="url" value='[[Join("{0}{1}/TabID/{2}/Default.aspx", [[Portal:Alias]],[[TabPath]],[[TabID]])]]' />
xmod:Redirect>
td>
tr>
<tr class="generic-items-alt">
<xmod:select>
<case comparetype="text" value='[[DescriptionFlag]]' operator="=" expression="1">
<td class="highlight">
- description missing -
td>
case>
<else>
<td>
<nobr><span class="sm-font"><xmod:format type="regex" value='[[Description]]' pattern="(.*)" replacement="$1" maxlength="70" />span>
<xmod:togglelink text="+" target='[[Join("#divMoreInfo_{0}a",[[TabId]])]]' speed="Fast" />nobr>
<div id="divMoreInfo_[[TabId]]a" style="display:none;">
<br/>
<span class="sm-font">[[Description]]span>
div>
td>
else>
xmod:select>
<xmod:select>
<case comparetype="text" value='[[KeywordsFlag]]' operator="=" expression="1">
<td class="highlight">
- keywords missing -
td>
case>
<else>
<td>
<nobr><span class="sm-font"><xmod:format type="regex" value='[[Keywords]]' pattern="(.*)" replacement="$1" maxlength="70" />span>
<xmod:togglelink text="+" target='[[Join("#divMoreInfo_{0}b",[[TabId]])]]' speed="Fast" />nobr>
<div id="divMoreInfo_[[TabId]]b" style="display:none;">
<br/>
<span class="sm-font">[[Keywords]]span>
div>
td>
else>
xmod:select>
tr>
AlternatingItemTemplate>
<NoItemsTemplate>
Seriously? no pages in a DNN instance, in this portal? not possible is it?
NoItemsTemplate>
<FooterTemplate>
table>
FooterTemplate>
<Pager PageSize="60" PageNumCssClass="CommandButton"
FirstPageCaption="[First]" LastPageCaption="[Last]">
<table>
<tr>
<td>Page <strong>{PageNumber}strong> of {PageCount}td>
<td align="right">{Pager}td>
tr>
table>
Pager>
<SearchSort FilterExpression="TabName LIKE '%{0}%'"
SearchLabelText="Search By TabName:" SearchButtonText="GO"
SortFieldNames="TabId,TabName,Title,Description,Site Map Priority"
SortFieldLabels="TabId,TabName,Title,Description,SiteMapPriority"
ReverseSortText="Reverse Sort Order">
<table>
<tr>
<td style="padding-right:20px; border-right:1px solid silver;" class="sm-font"><strong>{SearchLabel}strong> {SearchBox} {SearchButton}td>
<td align="right" style="padding-left:20px;" class="sm-font">
<strong>{SortLabel}strong> {SortFieldList} {SortButton} - {ReverseSort}
td>
tr>
table>
SearchSort>
xmod:template>