Help - Search - Members - Calendar
Full Version: Trying To Do, "posted On Aug 25, 2006 In <em>category</e
Movable Type Community Forum > Using Movable Type > Entries and Archives
CaptainMorgan
(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
justG
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
:kate:
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
CaptainMorgan
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
deeleea
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~
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-2008 Invision Power Services, Inc.