IPB

Welcome Guest ( Log In | Register )

Movable Type

We're moving to movabletype.org!

At long last, we're moving to forums powered by, well, Movable Type itself. You'll want to bookmark http://forums.movabletype.org/ for future reference, and in the meantime you can view these old forums as a read-only archive of past posts. Thanks for being part of the community!

2 Pages V  < 1 2  
Reply to this topicStart new topic
> Mt4 As A Cms, Your tips and tricks
bruce21
post Apr 28 2008, 12:46 AM
Post #17





Group: Members
Posts: 911
Joined: 24-January 04
From: Ontario Canada
Member No.: 20,182



QUOTE
For anyone serious about using MT as a CMS, I'd advise looking at the default templates provided, then ditching them and starting fresh.


Cariboo, how refreshing to see this comon sense approach! And so true, one can replace the default templates quite easily, even going back to indiv, monthly and category archives sim to 3x, but even more simplified.
Your tutorials are encouraging me that one shouldn't give up or be negative towards MT, simply change what bugs one smile.gif


--------------------
Go to the top of the page
 
+Quote Post
caribou sue
post Apr 28 2008, 07:18 AM
Post #18





Group: Members
Posts: 125
Joined: 15-August 07
From: Canada
Member No.: 43,938



QUOTE (bruce21 @ Apr 28 2008, 12:46 AM) *
QUOTE
For anyone serious about using MT as a CMS, I'd advise looking at the default templates provided, then ditching them and starting fresh.


Cariboo, how refreshing to see this comon sense approach! And so true, one can replace the default templates quite easily, even going back to indiv, monthly and category archives sim to 3x, but even more simplified.
Your tutorials are encouraging me that one shouldn't give up or be negative towards MT, simply change what bugs one smile.gif


Thanks, fellow Ontarian! I find the default templates way too complicated for someone dipping their toes into MT for the first time. Heck, I've been using it for 4 years, and I have trouble following them.


--------------------
Go to the top of the page
 
+Quote Post
deeleea
post May 1 2008, 03:08 AM
Post #19





Group: Members
Posts: 30
Joined: 10-June 05
From: sydney, australia
Member No.: 31,649



QUOTE (caribou @ Apr 17 2008, 01:49 PM) *
Hi deeleea,
You can do this using MTIf to give the current page a different CSS class. Here's how I did something similar on a site:

First, I set some variables on the page archive template.
CODE
<MTSetVarBlock name="thispage"><MTPageTitle></MTSetVarBlock>
<MTSetVarBlock name="thisfolder"><MTPageFolder><MTFolderLabel></MTPageFolder></MTSetVarBlock>


In the subnavigation for each page, the page we're currently on is given the class "current".
CODE
<ul>
  <MTPages folder="$thisfolder">
  <MTSetVarBlock name="listpage"><MTPageTitle></MTSetVarBlock>
     <MTIf name="thispage" eq="$listpage">
     <li class="current"><MTPageTitle></li>
        <MTElse>
        <li><MTPageTitle></li>
        </MTElse>
    </MTIf>
  </MTPages>
</ul>


Since you're listing top level folders instead of pages, you would just need to tweak your variables accordingly.
Hope that helps!



Wow, great stuff, thanks heaps!


--------------------
Those who can do; those who can't end up here...
Go to the top of the page
 
+Quote Post
deeleea
post May 25 2008, 04:21 AM
Post #20





Group: Members
Posts: 30
Joined: 10-June 05
From: sydney, australia
Member No.: 31,649



QUOTE (caribou @ Apr 17 2008, 01:49 PM) *
Hi deeleea,
You can do this using MTIf to give the current page a different CSS class. Here's how I did something similar on a site:

First, I set some variables on the page archive template.
CODE
<MTSetVarBlock name="thispage"><MTPageTitle></MTSetVarBlock>
<MTSetVarBlock name="thisfolder"><MTPageFolder><MTFolderLabel></MTPageFolder></MTSetVarBlock>


In the subnavigation for each page, the page we're currently on is given the class "current".
CODE
<ul>
  <MTPages folder="$thisfolder">
  <MTSetVarBlock name="listpage"><MTPageTitle></MTSetVarBlock>
     <MTIf name="thispage" eq="$listpage">
     <li class="current"><MTPageTitle></li>
        <MTElse>
        <li><MTPageTitle></li>
        </MTElse>
    </MTIf>
  </MTPages>
</ul>


Since you're listing top level folders instead of pages, you would just need to tweak your variables accordingly.
Hope that helps!



Sorry for the late reply, finally got things where I want them. Really appreciate the advice thanks heaps!


--------------------
Those who can do; those who can't end up here...
Go to the top of the page
 
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 11.24.09 - 11:56 PM