Jump to content

Recommended Posts

Posted

I found in MT Forums the tag to be inserted in my home page http://bloggy.biz recalling all recently updated posts in the blogs hosted.

 

The problem is that it doesn't recognize MT Tag outside of the indexes.

 

I try to explain... if l add to my main index (http://blackcat.bloggy.biz) this tag:

 

<MTSQLEntries query="select entry_id from mt_entry where entry_status=2 order by entry_created_on desc limit 10" unfiltered="1">

<a href="<MTEntryLink>"><MTEntryTitle></a> (<MTBlogName>)<br />

</MTSQLEntries>

 

this displays my last 10 entries.

 

On my main page it doesn't display anything...

 

I understand that l should specify my blog path in the html code of my home page, but how can l do this? I know pretty good how to use and implement MT, but l still have some difficulties in using html codes.

 

Thanks everybody for the help :)

Posted

To include a list of entries on a page NOT generated by MT you would need to use some form of SSI, I prefer php.

 

You don't need MTSql to list the last 10 entries, you can do it by simply finding the default MTEntries container, and find the line

 

><MTEntries>

and change it to look like

><MTEntries lastn="10">

, that's more simple than what you're using.

 

Then, to include it in the main page, you'd need the main page to be blah.php and you could use a php include like this:

 

><?
include ("/home/username/public_html/includes/header.php");
?>

 

wherever you want the entries to appear.

 

The other option is to use an IFrame to pull in the entries.

 

My personal preference on doing this, however, was to move all my pages to be index templates inside MT and then to place the MT tags where I wanted them. That way MT controls everything; which I like, makes things easier.

 

Does that get you off to a start?

Posted

Yes Lisa, you gave me a great help.

Actually l can't make the home page as an index generated by MT.

 

And neither to use it as xxx.php.

 

I'll try to find where l can read explanation about IFrame. This was what l intended to put in my main page.

 

Do you have any suggestion where to look?

Posted
Here are some instructions on using Iframes:

 

http://www.cs.tut.fi/~jkorpela/html/iframe.html

 

They are not MT specific, but you'd just replace the file name with the outputted frile from MT.

 

Just be aware that iframes are terrible for search engines.

 

Hope that helps!

Yep! It works!

 

Now, all l have to do is modify it in order to obtain my list, finally!

 

Thank you Lisa :hug:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...