Help - Search - Members - Calendar
Full Version: Some help integrating MT in an existing site...
Movable Type Community Forum > Additional Resources > Tips and Tricks
MonaCK
I'm hoping someone out there can help me. I did a search of the archives, but I didn't find quite the answer that I needed.

I am a bit of a neophyte, but I can follow instructions well. My site was designed in dreamweaver, and I am comfortable installing and adjusting the backend of sites that are created using PHP/MySQL, but am a little worried about doing actual coding.

Also, I am not 100% sure how to get the pages in dreamweaver and anything with PHP code to talk to each other, so some help with that would be great as well.

Okay -- here is what I'm looking to do.

I currently use livejournal embedded into a web page to update the news section of my site. I am looking to move away from that. Here is where that page currently resides:

http://www.thirdwatch.net/news.html

What I would also like to do is have that top piece of news show up on the main page of the site:

http://www.thirdwatch.net

Is this something that is possible with MT?

And if so -- how do I do it? I really do need step by step instructions, including how to imbed the PHP code into a page in dreamweaver...

Thank you all so much.. smile.gif
MonaCK
Is there anyone that can help with this...? smile.gif
MisCi
Hi there =)

To have the top - or, in this case, the latest - piece of news on the index.html page, just use <MTEntries lastn="1"> ... entry tags ... </MTEntries>.

Okay. I'm not so good with dreamweaver, but I took a look at your news.html page and the MT code you'd need for that template is:

CODE
<MTEntries>
[<MTEntryDate format="%Y/%m/%d %H:%M %p">]<BR>
<MTEntryTitle>
<BR><BR>
<MTEntryBody>
<HR>
</MTEntries>


The PHP to include this would be something like

CODE
<? include ('filename.php'); ?>


where filename.php is the output file of that index template with the code above.

I hope at least SOME of this helps tongue.gif
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.