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!
![]() ![]() |
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 -------------------- |
|
|
|
Apr 28 2008, 07:18 AM
Post
#18
|
|
|
Group: Members Posts: 125 Joined: 15-August 07 From: Canada Member No.: 43,938 |
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 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. -------------------- |
|
|
|
May 1 2008, 03:08 AM
Post
#19
|
|
|
Group: Members Posts: 30 Joined: 10-June 05 From: sydney, australia Member No.: 31,649 |
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...
|
|
|
|
May 25 2008, 04:21 AM
Post
#20
|
|
|
Group: Members Posts: 30 Joined: 10-June 05 From: sydney, australia Member No.: 31,649 |
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...
|
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 11.24.09 - 11:56 PM |