birdahonk

Displaying Custom Fields in MT 4.36

Vote 0 Votes

I'm struggling to find an explanation of how to display custom fields in MT 4.36 so I'm not sure if I'm missing something obvious, or if it's not possible in the version. Here's what I'm trying to do, and help anyone can provide would be greatly appreciated.

I'm creating a photo blog where I'll be posting photos from various locations. I'm trying to use custom fields to assign metadata to each photo as it's being uploaded and posted. For example, for each photo I'd like to assign the Country, State/Province, City, Neighborhood, Street Address, or ZIP/Postal Code of where the photo was taken. So far, I've got that set up and working as a set of Entry Custom Fields.

You might be asking yourself, "why not just use Categories for that classification?" Well, on the home page of the blog, I need to be able to just display a list of all the countries (or possibly cities). I can't use the categories (or tags for that matter) to delineate between a Country, City, State, etc.

My question is, assuming that my posts all include a value for the Country field, how can I display all of the countries of the photos without it repeating the country name over and over as it loops through the MTEntries container tag?

My current custom field for the country is:

System Object: Entry
Name: Country
Type: Single-Line Text
Required: Yes
Basename: country
Template Tag: entrydatacountry

Any thoughts? I tried the MTBlogCustomField container, but that part of MT5, and I'm still on MT4.36.

Thanks, and let me know if there's more info that would help.

Reported on Movable Type 4.3

2 Replies

| Add a Reply

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

695 2912

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

190 568

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012