Help - Search - Members - Calendar
Full Version: Changing the code
Movable Type Community Forum > Additional Resources > Tips and Tricks
craig1972
Hi,

For the comments, I see that MT writes code like this --

CODE
<a name="000...">


I want this to be written as follows in order to validate --

CODE
<a id="000...">


Am I talking of some serious hacking here or can this be done easily? I think the tag to blame is <$MTCommentBody$>

Any ideas would be appreciated!

Thanks
craig1972
Or something like this for example:

CODE
<$MTEntryTrackbackLink$>


It comes out with a "mt-tb.cgi" link which I want to convert to a goodlooking url.

Please help.
markpasc
For the name vs id attribute part, there should be a <a name="<$MTCommentID$>"> type thing right in the template. It shouldn't be "inside" MTCommentBody at all.

For the <$MTEntryTrackbackLink$>, you'll have to enter other MT template code to build the URL. I don't think MT lets you set the Trackback link format. I presume you'd be using Rewrite instructions to Apache to rewrite it, so you would replace the TrackbackLink tag with something like:

CODE
<$MTBlogURL$>/trackback/<$MTEntryID$>

according to how you set up the Rewrite rules.
craig1972
Thank you, I have been reading the manual.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.