Google Answers Logo
View Question
 
Q: Simple MovableType template ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: Simple MovableType template
Category: Computers > Internet
Asked by: jhabley-ga
List Price: $5.00
Posted: 15 Oct 2003 12:09 PDT
Expires: 14 Nov 2003 11:09 PST
Question ID: 266583
I'm looking for a VERY barebones MovableType template code:

     DATE 
     Item Title 
     Item Text 
     Comment Link | Trackback link 
 
     [Monthly archive links] 
     [syndicate this site]

I do NOT want any CSS or external stylesheet called (I'll do the
formatting via font tags). Need ASAP.
Answer  
Subject: Re: Simple MovableType template
Answered By: joseleon-ga on 15 Oct 2003 13:02 PDT
Rated:5 out of 5 stars
 
Hello, jhabley:

  Here it's your script, be aware of the word wrapping when copying
and pasting:

<MTEntries>
	<$MTEntryTrackbackData$>
	<MTDateHeader>
	<$MTEntryDate format="%x"$>
	</MTDateHeader>
	<br>
	<$MTEntryTitle$>
	<$MTEntryBody$>
	<MTEntryIfAllowComments>
	<a href="<$MTCGIPath$><$MTCommentScript$>?entry_id=<$MTEntryID$>"
onclick="OpenComments(this.href); return false">Comments
(<$MTEntryCommentCount$>)</a>
	</MTEntryIfAllowComments>
	<MTEntryIfAllowPings>
	| <a href="<$MTCGIPath$><$MTTrackbackScript$>?__mode=view&amp;entry_id=<$MTEntryID$>"
onclick="OpenTrackback(this.href); return false">TrackBack
(<$MTEntryTrackbackCount$>)</a>
	</MTEntryIfAllowPings>
</MTEntries>

<br>
<MTArchiveList archive_type="Monthly">
<a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a><br />
</MTArchiveList>

<a href="<$MTBlogURL$>index.rdf">Syndicate this site (XML)</a>

This is just a list of the blog entries with date, title, body text
(not extended text), a comment link and a trackback link if
applicable. After that, the monthly archive links and the link to
syndicate the site.

As always, request as many clarifications you want, also, I'm going to
be monitoring this question for 2 hours more, but if you need it, I
will be up until you need.

Regards.

Request for Answer Clarification by jhabley-ga on 15 Oct 2003 13:08 PDT
LOL! Glad you grabbed this one. Let me plug it in and see how it works.
P.S. What country are you in?

Clarification of Answer by joseleon-ga on 15 Oct 2003 13:10 PDT
Hello, jhabley:
  Ok, I'm here to see if you have any problem. I'm from Spain.

Regards.

Request for Answer Clarification by jhabley-ga on 15 Oct 2003 13:26 PDT
Thanks - it looks great. I've already started to tweak it -- this is a
great start.

I've noticed that after the ItemTitle and ItemBody, it forces two BRs
(probably a P, actually) and that I can't seem to prevent that from
happening. Is there a way to do this? I want the Body to come on the
line immediately under the title, without a blank line in between.
Seems to force one.

Also, the javascript clicks don't pop anything up. Should I have some
script up top?

P.S. I'm only going to use Comments -- decided to drop TrackBack.

Clarification of Answer by joseleon-ga on 15 Oct 2003 13:50 PDT
Hello, jhabley:
  Yes, the space you see it's a <p>, you can prevent MovableType to
generate these breaks by setting up the convert line breaks option on
each entry, or globally changing then entry body tag to include the
convert_breaks attribute set to 0:
  
  <$MTEntryBody convert_breaks="0"$>
  
After that, you have full control over the body.

Regarding the javascript, you need to add this code, sorry:

<script language="javascript" type="text/javascript">
function OpenComments (c) {
    window.open(c,
                    'comments',
                    'width=480,height=480,scrollbars=yes,status=yes');
}

</script>  

If you still want to add the trackback info, add also this function:

function OpenTrackback (c) {
    window.open(c,
                    'trackback',
                    'width=480,height=480,scrollbars=yes,status=yes');
}

Regards.

Clarification of Answer by joseleon-ga on 15 Oct 2003 14:09 PDT
Hello, jhabley:
  Are you generating the full site? The index.rdf exists? Maybe the
.rdf it's named different on your system.

Regards.

Request for Answer Clarification by jhabley-ga on 15 Oct 2003 14:46 PDT
I am rebuilding the full site, but I'm not sure where I specify the file name.

Request for Answer Clarification by jhabley-ga on 15 Oct 2003 14:48 PDT
I think I've found part of the problem.

Your code specifies:

      <$MTBlogURL$>index.rdf

Which generates:

      http://www.myserver.com/blogs/blogpage.htm/index.rdf

I should probably just have the filename by itself.

Clarification of Answer by joseleon-ga on 15 Oct 2003 15:13 PDT
Hello, jhabley:
  That works on my system correctly, but if you want, you can remove
the <$MTBlogURL$> to point to just the file.

  I'm going to sleep right now, I'll be back in 8 hours ;-)

Regards.
jhabley-ga rated this answer:5 out of 5 stars
Super, works like a charm, thanks. Incidentally, the RDF file isn't
generating. Any ideas?

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy