Help - Search - Members - Calendar
Full Version: Code Too Long
Movable Type Community Forum > Additional Resources > Tips and Tricks
noelgreen
I'm using an extreme amount of code for my category archives because each category has seperate layouts... so I'm doing things like this...

CODE
<MTIfCategory pattern="m/(Home|Thanks)/i">    
   
<div id="content">

<div class="blog">


<MTEntries>
<$MTEntryTrackbackData$>

So on and so on....


However, because the code is SO long, I can now no longer paste it from my text editor into the "Category Archive" window in the MT user interface.

Does anyone know a way around this?
Is there a "hack" somewhere to make the window accept larger amounts of text?

Thanks!
girlie
Maybe setting up Per Category Templates would be a better way to manage this.
noelgreen
I actually figured out that by only doing the "MTIfCategory" on the areas I needed it, and not on the entire page, I cut down on my code extensively!

The Per Category thing would be good, but then you have multiple files to deal with. Since all the pages are the same, except the "sub-navigation" which is based on the category/section you're in, having one file is a lot easier for me to manage. smile.gif

Thanks for the tip though!

Here's the site btw.
Springfield Regional Arts Council

If that link doesn't work just remove the "new"... depends on if I pushed it live or not. smile.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.