julie Posted August 9, 2005 Share Posted August 9, 2005 I'd like my Individual archive pages to look just like my main page (with the sidebar), but I'm confused about which sections I should by copying, what needs to be changed around. Here is my code for the main index: ><!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> <meta http-equiv="Content-Type" content="text/html; charset=<$MTPublishCharset$>" /> <meta name="generator" content="http://www.movabletype.org/" /> <title><$MTBlogName encode_html="1"$></title> <link rel="stylesheet" href="<$MTBlogURL$>styles-site.css" type="text/css" /> <link rel="alternate" type="application/atom+xml" title="Atom" href="<$MTBlogURL$>atom.xml" /> <link rel="alternate" type="application/rss+xml" title="RSS 1.0" href="<$MTBlogURL$>index.rdf" /> <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<$MTBlogURL$>index.xml" /> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$MTBlogURL$>rsd.xml" /> <MTBlogIfCCLicense> <$MTCCLicenseRDF$> </MTBlogIfCCLicense> </head> <body> <div id="container"> <body> <div id="banner"> <img src="images/mtbanner2.gif"></img> </div> <div id="center"> <div class="content"> <MTEntries> <$MTEntryTrackbackData$> <MTDateHeader> <h2><$MTEntryDate format="%x"$></h2> </MTDateHeader> <h3 id="a<$MTEntryID pad="1"$>"><$MTEntryTitle$></h3> <$MTEntryBody$> <MTEntryIfExtended> <p class="extended"><a href="<$MTEntryPermalink$>#more">Continue reading "<$MTEntryTitle$>"</a></p> </MTEntryIfExtended> <p class="posted">Posted by <$MTEntryAuthor$> at <a href="<$MTEntryPermalink valid_html="1"$>"><$MTEntryDate format="%X"$></a> <MTEntryIfAllowComments> | <a href="<$MTEntryPermalink archive_type="Individual"$>#comments">Comments (<$MTEntryCommentCount$>)</a> </MTEntryIfAllowComments> <MTEntryIfAllowPings> | <a href="<$MTEntryPermalink archive_type="Individual"$>#trackbacks">TrackBack (<$MTEntryTrackbackCount$>)</a> </MTEntryIfAllowPings> </p> </MTEntries> </div> </div> <div id="right"> <div class="sidebar"> <$MTInclude module="Sidebar Main"$> </div> </div> <div style="clear: both;"> </div> </div> </body> </html> and the code for my individual entry archive: ><!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> <meta http-equiv="Content-Type" content="text/html; charset=<$MTPublishCharset$>" /> <meta name="generator" content="http://www.movabletype.org/" /> <title><$MTBlogName encode_html="1"$>: <$MTEntryTitle$></title> <link rel="stylesheet" href="<$MTBlogURL$>styles-site.css" type="text/css" /> <link rel="alternate" type="application/rss+xml" title="RSS" href="<$MTBlogURL$>index.rdf" /> <link rel="alternate" type="application/atom+xml" title="Atom" href="<$MTBlogURL$>atom.xml" /> <link rel="start" href="<$MTBlogURL$>" title="Home" /> <MTEntryPrevious> <link rel="prev" href="<$MTEntryPermalink$>" title="<$MTEntryTitle encode_html="1"$>" /> </MTEntryPrevious> <MTEntryNext> <link rel="next" href="<$MTEntryPermalink$>" title="<$MTEntryTitle encode_html="1"$>" /> </MTEntryNext> <MTInclude module="Remember Me"> <$MTEntryTrackbackData$> <MTBlogIfCCLicense> <$MTCCLicenseRDF$> </MTBlogIfCCLicense> </head> <body> <div id="container"> <div id="banner"> <a href="http://www.aftertastebliss.com"> <img src="http://www.aftertastebliss.com/images/mtbanner2.gif" border=0"></a> </div> <div class="content"> <p align="right"> <MTEntryPrevious> <a href="<$MTEntryPermalink$>">« <$MTEntryTitle$></a> | </MTEntryPrevious> <a href="<$MTBlogURL$>">Main</a> <MTEntryNext> | <a href="<$MTEntryPermalink$>"><$MTEntryTitle$> »</a> </MTEntryNext> </p> <h2><$MTEntryDate format="%x"$></h2> <h3><$MTEntryTitle$></h3> <$MTEntryBody$> <div id="a<$MTEntryID pad="1"$>more"><div id="more"> <$MTEntryMore$> </div></div> <p class="posted">Posted by <$MTEntryAuthor$> at <$MTEntryDate$></p> <MTEntryIfAllowPings> <h2 id="trackbacks">Trackback Pings</h2> <p class="techstuff">TrackBack URL for this entry:<br /> <$MTEntryTrackbackLink$></p> <MTIfNonZero tag="MTEntryTrackbackCount"> <p>Listed below are links to weblogs that reference <a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a>:</p> <MTPings> <p id="p<$MTPingID$>"> » <a href="<$MTPingURL$>"><$MTPingTitle$></a> from <$MTPingBlogName$><br /> <$MTPingExcerpt$> <a href="<$MTPingURL$>">[Read More]</a> </p> <p class="posted">Tracked on <$MTPingDate$></p> </MTPings> </MTIfNonZero> </MTEntryIfAllowPings> <MTEntryIfAllowComments> <h2 id="comments">Comments</h2> <MTComments> <div id="c<$MTCommentID$>"> <$MTCommentBody$> </div> <p class="posted">Posted by: <$MTCommentAuthorLink default_name="Anonymous" spam_protect="1"$> <MTCommentAuthorIdentity> at <$MTCommentDate$></p> </MTComments> <MTEntryIfCommentsOpen> <MTIfCommentsAllowed> <h2>Post a comment</h2> <MTIfRegistrationRequired> <MTIfNonEmpty tag="MTTypeKeyToken"> <div id="thanks"> <p>Thanks for signing in, <script type="text/javascript" src="<MTCGIPath><MTCommentScript>?__mode=cmtr_name_js"></script ><script>document.write(commenter_name);</script>. Now you can comment. (<a href="<$MTRemoteSignOutLink static="1"$>">sign out</a>)</p> (If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.) <form method="post" action="<$MTCGIPath$><$MTCommentScript$>" name="comments_form" onsubmit="if (this.bakecookie[0].checked) rememberMe(this)"> <input type="hidden" name="static" value="1" /> <input type="hidden" name="entry_id" value="<$MTEntryID$>" /> <p><label for="url">URL:</label><br /> <input tabindex="1" type="text" name="url" id="url" /> Remember me? <input type="radio" id="remember" name="bakecookie" /><label for="remember">Yes</label><input type="radio" id="forget" name="bakecookie" onclick="forgetMe(this.form)" value="Forget Info" style="margin-left: 15px;" /><label for="forget">No</label><br style="clear: both;" /> </p> <p><label for="text">Comments:</label><br /> <textarea tabindex="2" id="text" name="text" rows="10" cols="50"></textarea></p> <div align="center"> <input type="submit" tabindex="3" name="preview" value=" Preview " /> <input style="font-weight: bold;" tabindex="4" type="submit" name="post" value=" Post " /> </div> </form> </div> <script language="javascript" type="text/javascript"> <!-- if (commenter_name) { document.getElementById('thanks').style.display = 'block'; } else { document.write('You are not signed in. You need to be registered to comment on this site. <a href="<$MTRemoteSignInLink static="1"$>"> Sign in</a>'); document.getElementById('thanks').style.display = 'none'; } // --> </script> <MTElse> ¡Comment registration is required but no TypeKey token has been given in weblog configuration! </MTElse> </MTIfNonEmpty> <MTElse> <MTTemplateNote value="Case of comments not required"> <MTIfNonEmpty tag="MTTypeKeyToken"> <script type="text/javascript" src="<MTCGIPath><MTCommentScript>?__mode=cmtr_name_js"></script > <script language="javascript" type="text/javascript"> <!-- if (commenter_name) { document.write('Thanks for signing in, ', commenter_name, '. Now you can comment. (<a href="<$MTRemoteSignOutLink static="1"$>">sign out</a>)'); } else { document.write('If you have a TypeKey identity, you can <a href="<$MTRemoteSignInLink static="1"$>"> sign in</a> to use it here.'); } // --> </script> </MTIfNonEmpty> <form method="post" action="<$MTCGIPath$><$MTCommentScript$>" name="comments_form" onsubmit="if (this.bakecookie[0].checked) rememberMe(this)"> <input type="hidden" name="static" value="1" /> <input type="hidden" name="entry_id" value="<$MTEntryID$>" /> <div id="name_email"> <p><label for="author">Name:</label><br /> <input tabindex="1" id="author" name="author" /></p> <p><label for="email">Email Address:</label><br /> <input tabindex="2" id="email" name="email" /></p> </div> <MTIfNonEmpty tag="MTTypeKeyToken"> <script language="javascript" type="text/javascript"> <!-- if (commenter_name) { document.getElementById('name_email').style.display = 'none'; } // --> </script> </MTIfNonEmpty> <p><label for="url">URL:</label><br /> <input tabindex="3" type="text" name="url" id="url" /> Remember Me? <input type="radio" id="remember" onclick="rememberMe(this.form)" name="bakecookie" /><label for="remember">Yes</label><input type="radio" id="forget" name="bakecookie" onclick="forgetMe(this.form)" value="Forget Info" style="margin-left: 15px;" /><label for="forget">No</label><br style="clear: both;" /> </p> <p><label for="text">Comments:</label> <MTIfAllowCommentHTML> (you may use HTML tags for style)</MTIfAllowCommentHTML><br/> <textarea tabindex="4" id="text" name="text" rows="10" cols="50"></textarea></p> <div align="center"> <input type="submit" name="preview" tabindex="5" value=" Preview " /> <input style="font-weight: bold;" type="submit" name="post" tabindex="6" value=" Post " /> </div> </form> </MTElse> </MTIfRegistrationRequired> </MTIfCommentsAllowed> <script type="text/javascript" language="javascript"> <!-- if (document.comments_form.email != undefined) document.comments_form.email.value = getCookie("mtcmtmail"); if (document.comments_form.author != undefined) document.comments_form.author.value = getCookie("mtcmtauth"); if (document.comments_form.url != undefined) document.comments_form.url.value = getCookie("mtcmthome"); if (getCookie("mtcmtauth") || getCookie("mtcmthome")) { document.comments_form.bakecookie[0].checked = true; } else { document.comments_form.bakecookie[1].checked = true; } //--> </script> </MTEntryIfCommentsOpen> </MTEntryIfAllowComments> </div> </div> </body> </html> I'm sure this is simple, but I just can't get it right. Any tips? Thanks so much. Quote Link to comment Share on other sites More sharing options...
thejerm Posted August 10, 2005 Share Posted August 10, 2005 Elise has a tutorial on here site here this is how i figured out what to do. Learning Movable Type Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.