[[!snippet]]
[[snippet]]
what can i do to optimize Wayfinder/getResources?For a start, make sure these snippets are cached...
[[!php-includes]]<!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>
<title>[[++site_name]] - [[*pagetitle]]</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<base href="[[++site_url]]" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.gSearch-1.0-min.js"></script>
<script type="text/javascript" src="include/drop-list/jquery.dropList.js"></script>
<link href="include/drop-list/drop-list.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(document).ready(function(){
$("#envatoLinks").dropList({
style: "blue",
width: 220,
target: "self",
speed: 500,
});
$(".color").click(function(e){
e.preventDefault();
var color = $(this).attr("id");
$("div").eq(1).removeClass();
$("div").eq(1).addClass("dropList-layout").addClass(color);
});
});
</script>
</head>
<body>
<div class="main">
<div class="header">
<div class="block_header">
<div class="logo"><a href="[[++site_url]]"><img src="images/logo.gif" border="0" alt="logo" /></a></div>
<div class="search">
<form id="form1" name="form1" method="get" action="search.html">
<label><span>
<input name="Q" type="text" class="keywords" id="textfield" maxlength="50" value="" />
</span>
<input name="b" type="image" src="images/search.gif" class="button" />
</label>
</form>
</div>
<div class="menu">
[[!Wayfinder? &startId=`0`&rowTpl=`wrapspan`&innerClass=`active`]]
</div>
<div class="clr"></div>
</div>
</div>
<div class="slider_top">
<div class="header_text2">
<div style="float: right; width 200px; ">
<div style="float: right; width: 250px; padding: 0 8px 10px 0;font-size: 18px; font-weight: bolder; color: #666; text-align: right;">
NEXT EVENT: [[!nextEvent]] Days
<br/><a href="schedule-a-consultation.html?id=[[!next-event-id]]"><img src="images/Sing_up.gif" alt="picture" border="0" /></a>
</div>
</div>
<h2>[[!getResourceField:ifempty=`[[*pagetitle]]` ? &id=`[[*parent]]` &field=`pagetitle`]]
</h2>
<div class="clr"></div>
</div>
</div>
<div class="top_bg2">
<div class="clr"></div>
</div>
<div class="clr"></div>
<div class="body">
<div class="body_resize">
<div class="left">
[[!Breadcrumbs?!]] <p>
[[*content]]
</div>
<div class="right">
[[!Wayfinder?&startId=`[[*parent:ne=`0`:then=`[[*parent]]`:else=`[[*id]]`]]`&level=`0`&outerTpl=`rightnavOuter`&parentRowTpl=`rightnavParent`&innerTpl=`rightnavInner`]]
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>
<div class="footer">
<div class="footer_resize">
<p class="leftt"><table width="960" border="0" align="center">
<tr>
<td width="474" align="left" valign="top"><table width="149" border="0" cellpadding="5">
<tr>
<td><a href="http://www.facebook.com/BaldingBlog" target="_blank"><img src="http://scalpmicropigment.com/images/facebook.png" width="45" height="44" border="0" /></a></td>
<td><a href="http://twitter.com/#!/baldingblog" target="_blank"><img src="http://scalpmicropigment.com/images/twitter.png" width="45" height="44" border="0" /></a></td>
<td><a href="callto://scalpmicropigment/" target="_blank"><img src="http://scalpmicropigment.com/images/skype.png" width="45" height="44" border="0" /></a></td>
</tr>
</table>
<table width="200" border="0" cellpadding="5">
<tr>
<td><a href="http://www.baldingblog.com/" target="_blank"><img src="http://scalpmicropigment.com/images/blog.png" width="130" height="35" border="0" /></a></td>
<td><a href="http://www.baldingforum.com/" target="_blank"><img src="http://scalpmicropigment.com/images/forum.png" width="130" height="35" border="0" /></a></td>
</tr>
</table></td>
<td width="476" align="right" valign="top"><div style="margin-top: 20px;"><object width="230" height="85" data="https://clients4.google.com/voice/embed/webCallButton" type="application/x-shockwave-flash"><param name="movie" value="https://clients4.google.com/voice/embed/webCallButton" /><param name="wmode" value="transparent" /><param name="FlashVars" value="id=bad58be13f4c8baba5a438cdd2bd10e6be1c7bb8&style=0" /></object></div>
</td>
</tr>
</table>
© Copyright 2012. New Hair Institute. All Rights Reserved<br />
<a href="#">Home</a> | <a href="#">Contact</a> | <a href="#">RSS </a></p>
<p class="rightt"><a href="#"><strong> </strong></a></p>
<div class="clr"></div>
<div class="clr"></div>
</div>
</div>
</div>
</body>
</html>
[[Wayfinder...]]