{"id":1575,"date":"2003-08-06T20:03:41","date_gmt":"2003-08-07T10:03:41","guid":{"rendered":"http:\/\/michaelhans.com\/eclecticism\/2003\/08\/07\/destinations\/"},"modified":"2019-12-05T13:47:06","modified_gmt":"2019-12-05T21:47:06","slug":"destinations-2","status":"publish","type":"post","link":"https:\/\/michaelhans.com\/eclecticism\/2003\/08\/06\/destinations-2\/","title":{"rendered":"Destinations"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[]'><\/div>\n<p>Not much in the way of posting tonight. Instead, I concentrated on converting the &#8216;Destinations&#8217; section of my sidebar so that all items now have comment and TrackBack ability, and there are archives for items that have scrolled off the page.<\/p>\n<p>Doing this was fairly easy, if a little time consuming.<\/p>\n<p>All I had to do was create a new weblog to hold all the links, instead of using a TypeList (since TypeLists don&#8217;t support archives, comments, or TrackBack). For the weblog itself, I just copied all my templates from Eclecticism so that the visual design matches this one, and then tweaked them a bit so that they linked directly back to Eclecticism&#8217;s main page rather than the new blog&#8217;s main page, as it&#8217;s intended to be a subset of this blog.<\/p>\n<p>I then added a new Index Template that mimics the output of the TypeList. Since TypeLists are simply unordered lists, this was fairly easy to do &#8212; here&#8217;s my <code>destinations.inc<\/code> template:<\/p>\n<pre><code>&lt;h2&gt;Destinations&lt;\/h2&gt;\n&lt;ul&gt;\n &lt;mtentries lastn=\"10\"&gt;\n &lt;li&gt;&lt;a href=\"&lt;$MTEntryBody$&gt;\" title=\"&lt;$MTEntryTitle$&gt;\"&gt;&lt;$MTEntryTitle$&gt;&lt;\/a&gt;\n  &lt;mtentryIfExtended&gt;\n   &lt;br \/&gt;\n   &lt;$MTEntryMore$&gt;\n  &lt;\/mtentryIfExtended&gt;\n  &lt;mtentryIfAllowComments&gt; | &lt;a href=\"&lt;$MTEntryPermalink$&gt;#comments\" title=\"Read comments for '&lt;$MTEntryTitle$&gt;'\"&gt;c:&lt;$MTEntryCommentCount$&gt;&lt;\/a&gt;&lt;\/mtentryIfAllowComments&gt;\n  &lt;mtentryIfAllowPings&gt; | &lt;a href=\"&lt;$MTEntryPermalink$&gt;#trackback\" title=\"See TrackBack pings for '&lt;$MTEntryTitle$&gt;'\"&gt;tb:&lt;$MTEntryTrackbackCount$&gt;&lt;\/a&gt;&lt;\/mtentryIfAllowPings&gt;\n &lt;\/li&gt;\n &lt;\/mtentries&gt;\n &lt;li&gt;&lt;a href=\"http:\/\/djwudi.typepad.com\/destinations\/archives.html\" title=\"Destinations archives\"&gt;Archives&amp;hellip;&lt;\/a&gt; | &lt;a href=\"http:\/\/djwudi.typepad.com\/destinations\/index.rdf\" title=\"Subscribe to Destinations\"&gt;RSS Feed&lt;\/a&gt;&lt;\/li&gt;\n&lt;\/ul&gt;\n<\/code><\/pre>\n<p>Then I altered the code in the <code>sidebar1.inc<\/code> template for Eclecticism so that rather than inserting the Destinations TypeList, it inserted the <code>destinations.inc<\/code> file I had just created.<\/p>\n<p>After that, it was just a matter of copying all the old TypeList entries into posts in the new Destinations weblog. Each post gets a normal title, the URL of the link goes in the main post body, and any descriptive text goes in the extended entry &#8212; very similar to the TypeList method of entry, just in a standard post form.<\/p>\n<p>End result, the same basic functionality of the TypeList I was using before, only now with comments, TrackBack, and archives. Not bad for an evening&#8217;s work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Not much in the way of posting tonight. Instead, I concentrated on converting the &#8216;Destinations&#8217; section of my sidebar so that all items now have comment and TrackBack ability, and there are archives for items that have scrolled off the page.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2040],"tags":[921,599,25],"class_list":["post-1575","post","type-post","status-publish","format-standard","hentry","category-blog","tag-typepad","tag-weblogs","tag-website"],"_links":{"self":[{"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/posts\/1575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/comments?post=1575"}],"version-history":[{"count":0,"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/posts\/1575\/revisions"}],"wp:attachment":[{"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/media?parent=1575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/categories?post=1575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/tags?post=1575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}