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!

 
Reply to this topicStart new topic
> Trying To Do, "posted On Aug 25, 2006 In <em>category</e
CaptainMorgan
post Aug 25 2006, 08:38 PM
Post #1





Group: Members
Posts: 44
Joined: 3-August 06
Member No.: 36,281



(tried to fix the topic title... not sure why I can't)
Trying to do:
Posted on Aug 25, 2006 in Category.

But I keep receiving this error:

CODE
Build error in template 'Main Index': Error in <MTEntries> tag: Error in <MTIfNonEmpty> tag: You used an <$MTCategoryArchiveLink$> tag outside of the proper context.


when I attempt to do:
CODE
Posted on <$MTEntryDate format="%x"$> in <MTIfArchiveTypeEnabled archive_type="Category"><a href="<$MTCategoryArchiveLink$>" title="<$MTCategoryDescription$>"><MTCategoryLabel></a></MTIfArchiveTypeEnabled>


I also attempted to strip the context tags and simply do <MTCategoryLabel> only, but that didn't work either. For now, only Posted on Aug 25, 2006 works....

What am I missing?

Thanks
-Capt

This post has been edited by CaptainMorgan: Aug 25 2006, 08:41 PM
Go to the top of the page
 
+Quote Post
justG
post Aug 26 2006, 12:11 AM
Post #2





Group: Members
Posts: 301
Joined: 3-June 06
From: LI, NY, US
Member No.: 35,684



You are trying to use MTCategory stuff inside MTEntry stuff, I think. Try MTEntryCategory instead? I'm not sure how you'd link it to the category archive page, though.

- Gita
Go to the top of the page
 
+Quote Post
:kate:
post Aug 26 2006, 04:39 AM
Post #3





Group: Members
Posts: 220
Joined: 30-November 02
From: Historic Virginia
Member No.: 6,126



I've been using this code "forever" with no problems:

CODE
<MTIfNonEmpty tag="MTEntryCategory"> | filed under <MTEntryCategories glue=", "><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a></MTEntryCategories></MTIfNonEmpty>


I use the MTIfNonEmpty tag before the "pipestem" separator (cuz I don't want that to be displayed if the entry is not categorized) and I included the glue statement for entries that are filed under more than one category. (Obviously this code is just the part that shows the category. Place it your "posted" code wherever.)

Hope this helps. :-)

kate

This post has been edited by katymum: Aug 26 2006, 04:42 AM


--------------------
< austen > pray shew me how I might render my plain messages into a form better expressing my sensibilities < /austen >

:: pixelicious v2.1 :: geekmum {movable cafe} ::
Go to the top of the page
 
+Quote Post
CaptainMorgan
post Aug 26 2006, 03:05 PM
Post #4





Group: Members
Posts: 44
Joined: 3-August 06
Member No.: 36,281



QUOTE (katymum @ Aug 26 2006, 08:39 AM) *
I've been using this code "forever" with no problems:

CODE
<MTIfNonEmpty tag="MTEntryCategory"> | filed under <MTEntryCategories glue=", "><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a></MTEntryCategories></MTIfNonEmpty>


I use the MTIfNonEmpty tag before the "pipestem" separator (cuz I don't want that to be displayed if the entry is not categorized) and I included the glue statement for entries that are filed under more than one category. (Obviously this code is just the part that shows the category. Place it your "posted" code wherever.)

Hope this helps. :-)

kate



that's fantastic, thank you!
-Capt
Go to the top of the page
 
+Quote Post
deeleea
post Sep 18 2006, 02:54 AM
Post #5





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



QUOTE (CaptainMorgan @ Aug 26 2006, 11:05 PM) *
QUOTE (katymum @ Aug 26 2006, 08:39 AM) *

I've been using this code "forever" with no problems:

CODE
<MTIfNonEmpty tag="MTEntryCategory"> | filed under <MTEntryCategories glue=", "><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a></MTEntryCategories></MTIfNonEmpty>


I use the MTIfNonEmpty tag before the "pipestem" separator (cuz I don't want that to be displayed if the entry is not categorized) and I included the glue statement for entries that are filed under more than one category. (Obviously this code is just the part that shows the category. Place it your "posted" code wherever.)

Hope this helps. :-)

kate



that's fantastic, thank you!
-Capt


Oh thank goodness... you've saved me a shed load of hassle trying to figure this out~


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

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 - 10:00 PM