default userpic

Having a "Page archive" as the home page

Vote 0 Votes

Hi

I've been using MT for blogging for about 4.5 years, and I'm just in the process of moving my existing blog plus my regular web content into MT 5.01.

I have pretty much everything set up how I want it, down to replicating my old site's navigation (using MT template tags and variables), but one thing is proving hard to sort out: the home page. The default Main Index setup shows only blog entries, and seems to be intended to be entirely automated, whereas I want it to have "normal" content written by me, in addition to automated content.

I have moved the "recent blog entries" widget to a custom sidebar, but I can't see how to customise the rest of the page, short of putting my static text into a template, which is contrary to the CMS way of doing things. I'd like the home page to be (or at least include) a "normal" Page like the rest of my site, so I can quickly and easily edit it rather than poking around in templates.

I naively tried creating a Page 'index.html' in the root folder, but of course that gets overridden by Main Index. I then tried disabling publication of Main Index but it still appears as the home page, even after copying the mt and mt-static directories from the beta site to the real site and republishing everything (FWIW, site Page archives are dynamically published, whilst the blog is static).

Any ideas on how to do this?

Reported on Movable Type 5

4 Replies

| Add a Reply
  • I had something like this once. My trick was to create a page archive with the header/footer stuff stripped out, and then place it on the homepage as an SSI include.

  • Hi, Anne Lyle

    How about this?

    *1 use main index

    Republish your main_index templates and publish your index.html with that again.

    *2 give a "secret tag" to the page you want to use as a top page

    Give a secret tag "@top" or "@index" to your page data. Insert that to a "tag" form.

    The tag beginning from "@" can be used as a discriminate tag, and it won't be displayed in your published page.

    *3 insert a code to your main_index template like this

    <mt:pages tag="@top">
    <$mt:pagetitle$>
    <$mt:pagebody$>
    </mt:pages>
    

    in this code, only tagged by "@top" will be selected from pages and displayed in your main_index template.

    Please give it a shot.

    ----------------------------------
    MTJ
    Information of MovableType and MTOS from Japan

    http://www.mt-j.info
    ----------------------------------


  • Thanks, Nick - your suggestion #3 does exactly what I wanted (except I'm omitting the title, since I don't need one on my homepage).

    Much appreciated!

  • >Anne,

    You're welcome!

    I'm glad my advise is effective for you.

    ----------------------------------

    MTJ
    Information of MovableType and MTOS from Japan

    http://www.mt-j.info
    ----------------------------------

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012