Help - Search - Members - Calendar
Full Version: Glue and Prev/Next with Categories
Movable Type Community Forum > Additional Resources > Tips and Tricks
bmk
If you don't want the categories together on one line, you would not use "glue".  How about something like this:
CODE
<MTEntryCategories>
<a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a><br />
</MTEntryCategories>


With the category prev/next links, I'm pretty sure there's a php solution for this.

Brenna
bmk
You don't have to *know* php.  Just change your pages over and start using snippets you find here and there.  :)

Using MT, you can put the scripts you're testing out in a separate index template.  Then just include it where you want it once it's working.  It also helps to link that template to a file of the same name (for scripts, not using MT tags) then you don't have to rebuild it to see the changes.

Most of the stuff we do on the board here and the tutorial sites are set up for cut and paste.  Then you tweak it some and off you go.  It starts to make more sense the more you look at it.  What I've picked up so far as been from hanging out with the awesome people here and google.  

With the mysql database now, we're going to be doing more and more php I think.  :)

So yeah, why not?  :)
LunarMagic
Okay, two more little things... does it never end?? =P

Okay, first thing, I think i saw it mentioned somewhere but can't remember where.... I know you can make previous/next links on the individual archive pages... but I really want to keep my categories seperate... soooo... is there any way possible to link to the next one in that category?

The toher thing that's been REALLY bugging me is the stupid category links on the individual entry pages. For the ones that have more than one category (GREAT feature, btw!) it lists both, and i've been fiddling with the "glue" function.... but I want the two (or three or however many) to be ON TOP of each other.... not side by side. In essense I want to make
< br > the "glue" function... but of course it won't let me. it won't read it as < br >, and I tried the special characters
and that just came out on the page as < br >, as expected. Grrrrr. Is there ANY way to do that?
LunarMagic
Oh my, that was easier than I ever thought. *sighs* Sometimes my mind skipsall simple solutions, sure it's a hard answer.

I wish I knew PHP... I think I may have to start learning.
LunarMagic
*laughs* Yeah, but I'm a programmer... I *hate* using languages I don't know.
so yesterday I wrote myself some PHP scripts. Wheee. =P It's quite easy.
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.