Getting all Entries Linked to an Asset in Movable Type

| 151 Comments | No TrackBacks |
A while ago I needed to be able to display a list of images along with the blog entries in which they occurred.  Movable Type has an <mt:EntryAssets> tag that makes it very easy to show a list of entries with the images in them, but the reverse tag (<mt:AssetEntries>) didn't exist, unfortunately.
My solution

Back then, I solved this with a very convoluted workaround: first, dump all entries (or at least the 1000 most recent ones) using an <mt:entries> tag, then use the <mt:entryassets> tag to get the images in question.  All this was then put into a large hash with the asset id as key, after which I looped over this hash by key and displayed the relevant entry information.

This works fine, as long as the number of entries is not too large, and eventually it becomes slow.

You'll also notice I don't provide a code example.  Here is why:

The better solution

Byrne Reese of Endevver recently released a plugin named 'ExtraTags'. One of the extra tags this plugin adds to your Movable Type installation is... <mt:AssetEntries>.   Thanks to Byrne, no more slow-publishing kludgy workaround templates are needed anymore to get the entries related to an asset.  Which is nice.

No TrackBacks

TrackBack URL: https://www.movabletips.com/cgi-bin/mt/mt-tb.cgi/76

151 Comments

What's up friends, its fantastic paragraph concerning tutoringand completely explained, keep it up all the time.

's not a matter within the police,ray ban pas cher, help this enough,holliste ray ban pas cher r, the rest let the hollister courts resolve things, but also so run back and forth, why bother." Bin hear smile: "This is my fair share of things Yeah, I was in it to help themselves, so that harmony and hollister france peaceful area, not just the

2010 launch,hollister france, the hollister france drama starring Bai Bi hollister ng,hollister, Yang Mi,hollister france, Yao Di,louboutin pas cher, who are now grown into a popular actress.

self-cleaning,abercrombie pas cher, will be hollister france scotched rumors untrue.


As early as the beginning of drama broadcasting,mul

real estate sales management approach" (Minist louboutin ry of Construction air jordan pas cher Order No. 88) the first paragraph of Article 22. City Housing and Urban Construction Commission has ordered to stop the bre hogan outlet ach developer for rectification,louboutin, and its violations punishable by a fine of 30,air jordan pas cher,000

involved,mulberry sale, mulberry sale so louboutin much the better. "(End) (Original title: Wenzhou Mayor: Governance river pollution tackling the problem is everyone's responsibilit hollister y)


To review their own have the responsibility for the pollution, the river cleaning to do what "Chen Jinbiao believes that now is t

's Ueto; second category is louboutin able to bounce groups the child's birth certificate,louboutin, the hollister father or mother imperfect situation that only unilateral information,hollister, or parent information error (intentional fill in error),abercrombie paris, you can abercrombie paris not prove that the child and "father" or

's death "should belong to the medical malpractice"; also p hollister ointed out that the House leadership declared dead until just after emergence. hollister france Mr. Ji party last night to send the case to the micro-Bo,hollister, attracted a lot of attention. Yesterday morning to the day, repeated consultations between do mulberry outlet c

䡩瑴楮朠䵥捨慮楣猺⁂慳敢慬氠䅮搠卯晴扡汬⁆畮摡浥湴慬猠㱰㸠印物湧⁩猠桥牥⁡湤慮礠潦⁴桥楴瑬攠汥慧略⁢慳敢慬氠慮搠晡獴灩瑣栠獯晴扡汬牧慮 barbour outlet 楺慴楯湳⁨慶攠摲慦瑥搠瑨敩爠瑥慭猠慮搠晩湩獨敤⁰牥灡牡瑩潮⁦潲⁴桥楲⁳敡獯渮⁈楴瑩湧Ⱐ浯牥⁴桡渠慮礠潴桥爠慳灥捴映瑨攠条浥Ⱐ楳⁵獥搠瑯⁧慵来⁷桥瑨敲⁴桥⁳敡獯渠睡猠愠獵捣敳猠潲⁦慩汵牥⁢礠瑨攠灡牥湴猠慮搠灬慹敲献⁌整슒猠扲敡欠摯睮⁴桥⁥汥浥湴猠潦⁴桥⁳睩湧⁡湤⁤敳捲楢攠瑨攠灲潰敲散桡湩捳⸼扲㸊㱢爾੔桥⁓瑡湣攺㱢爾੔桥⁢慴瑥爧猠獴慮捥⁩猠瑨攠景畮摡瑩潮⁦潲⁴桥⁳睩湧⸠周攠獴慮摡牤⁢慴瑩湧⁳瑡湣攠灬慣敳⁴桥⁢慴瑥狂鉳⁦敥琠橵獴畴獩摥⁴桥⁳桯畬摥牳⁷楴栠祯

瑯潬扡爠捲敡瑯爠坩瑨⁴桥⁳異灯牴 scarpe hogan 映捵牬楮朠楲潮⁲潬氠瑨攠桡楲⁩湴漠瑨攠扡牲敬⁲敬潣慴楮朠瑯睡牤猠瑨攠獣慬瀮⁉琠湥敤⁴漠湯琠瑯畣栠瑨攠獣慬瀠瑯⁰牥癥湴⁴桩猠畳攠愠捯浢Ⱐ獯⁴桡琠獣慬瀠摯敳⁧整⁴桥⁨敡琮⁔桥⁩牯渠牥慬汹⁳桯畬搠扥⁨敬搠景爠湵浢敲映獥捯湤⁡猠桥慴⁰敮整牡瑥猠瑨攠桡楲⸠周攠浯浥湴⁴桩猠楳⁤潮攠畮睩湤⁴桥⁨慩爠捡牥晵汬礠慮搠牥灥慴⁴桥⁡灰牯慣栠癡物潵猠獥捴楯湳映桡楲⸼扲㸼扲㹃畲汳敥搠瑯⁢攠捯潬敤畳琠扥景牥⁳瑹汩湧⁴桥⁨慩爮⁕獥⁣潭戠潲⁦楮来牳⁴漠扡牲敬⁣畲氠瑨攠桡楲⁡湤⁵獥⁨慩爠獰牡礮㱢爾㱢爾䥴⁩猠湯牭慬汹⁦慲⁢整瑥爠瑯⁣桥捫⁴桥⁣畲汩湧⁩牯渠慨敡搠潦⁡灰汹楮朠浡楮汹⁢散慵獥⁨

is probably the next earthquak ray ban e collapsed township hospitals!" Conducted in a panel di abercrombie scussion on the day before yesterday,ray ban, the CPPCC National Committee,abercrombie, vice mayor of Ningde City,hollister france, Fujian Int hollister france ervention Made excitedly said: "I doubt it,air jordan pas cher, health M

's cooking in many prescription, and hogan outlet was discovered not only failed to rep abercrombie pas cher entance also plausibly: "Mom cares about me,hogan outlet, but also from I'm not open,abercrombie pas cher, but she did not know, I was creating op abercrombie portunities for her. "Provincial Children's Hospital child protection, deputy ch

abercrombie 's husban abercrombie d explained that for the sake of change Date of Birth Yaomou physical health.

1993 Yaomou suffering from hollister france kidney disease, so the family debt.

In this regard,abercrombie, users put forward two views, one, Yaomou 12 years old to work, and shows a privilege.

And a "work

's college graduates louboutin pas cher enter the job peak of the occasion,louboutin pas ch hollister france er, the General Office of the Ministry of Education recently issued "on the strengthening of college graduates employment infor abercrombie pas cher mation service of the notice." Notice requires all,hollister france, the university campus recruitmen

51" period,hogan outlet, Guilin low temperatures, rainy days above nor hogan outlet mal, normal to above normal rainfall. April hogan 30 to May 3,hogan, by the weak cold air and warm air combined effect of Guilin will appear moderate to heavy rain, locally heavy precipitation process,abercrombie france, and may be acc abercrombie france o

's hollister france self and dignity are respected,h hollister france ollister france, while in the fast collision fast-paced life will lose something. Fashion is an era of reaction,ho air jordan pas cher llister france, at this stage of China is a rapidly developing country,air jordan pas cher, has a huge demand for fashion and desire. This week,abercro

But Zhang felt,gucci outlet,http://www2.u-netsurf.ne.jp/~haruka/aska/aska.cg gucci outlet i, an http://www2.u-netsurf.ne.jp/~haruka/aska/aska.cgi yway,http://jy-life.net/forum.php?mod=viewthread&tid=667600,mulberrry sale,http://home.z4bbs.com/?mod=spacecp&ac=blog&blogid=, he has long been economically independent,veste barbour,http://www.2000gtr.com/bbs_cgi/j http://jy-life.net/forum.php?mod=viewthread&tid=667600 oyfu

'clo mulberry outlet ck yest abercrombie erday morning,mulberry outlet, Baiyun District,abercrombie, Village, a woman suddenly turned fence, jumped int hollister france o the river Ishii edge of the village. Three rivers sanitation workers were working on seeing this, immediately rushed to rescue the drowning woman rescued. Save people who said:

Accordi hollister ng to the family of the deceased reflected Daimou, Hwang are with the f hollister france amily in the earlier altercation occurred,hollister, the Department committed suic louboutin ide two preliminary determination.

Longgang street scene, a staff member said,hollister france, because no family over treatment, tw

'my home' boutique hotel a man and a wom mulberry sale an were killed,mulberry sale, 28-year-old male , 26-year-old hollister female, Wenling men said China and Thailand the Jiaojiang Branch of the Bank Account Manager, open room with the original female colleagues,hollister, initial hollister france ly identified as homicide. "alleged, both

Contr hogan act, to enjoy the first payment to become a member matchmaking services, mulberry outlet and paid in two steps,hogan, first to pay 24,800 yuan, and the remaining costs are filled with men before the meeting, or be deemed a waiver of servic abercrombie pas cher e.

"This is a matchmaking company belongs to foreign affairs dep

New semester, party aunts sent her new bag.

Last year, Zhangxue barbour sale Rui suffering mulberry sale from pneumonia, the doctor recommended hospitalization.

Today, after hanging up the breastplate, the village more than 20 members formed spontaneously re barbour outlet moval teams, with their own means of transport, are n

When talking about China's cu barbour pas cher rrent economic and social de parajumpers velopment,barbour pas cher, Wu pointed out that China is strengthening and improving macro-control,parajumpers, to the scientific deve mulberry sale lopment as the theme,mulberry sale, to accelerate the transformation of economic development as the main line

Learned that the S parajumpers pas cher eoul Nuclear Security Summit will be issued a communique, the leaders reaffi mulberry sale rm commitment to nuclear safety and to strengthen nuclear safety and deepen international cooperation to propose specific measures and recommendations.


Jiang Yu said that hollister france China is developing nuclea

, hollister france hollister france
Burned hollister uk vehicle even replacement,hollister uk.

's interests,piumini moncler, funded by the de piumini moncler alership for repair vehicles for customers,hollister france,

相关的主题文章:


For a long time

's nest

"Shanxi early as three years ago

's goal is to urban workers and residents to participate in Medicare n barbour sale umber reached 395 millio abercrombie pas cher n people,barbour sale, with the NCMS 800 million people,abercrombie pas cher, a whole year there will be more than 1.2 billion Chinese citizens to enjoy basic medical insurance.

Hu Xiaoyi said that mulberry sale

Without authorization will be named Mao Wang Lijun case piumini moncler s of national security authorities f mulberry sale or investigation-related information posted on the Internet,piumini moncler, deliberately leaked national security secrets, resulting in adverse effects.


30 noon" to Chengdu,mulberry sale, a hotel compa hollister outlet n

June 1975 joined t moncler outlet he Chinese Communist Party.

(Sou barbour sale rce: China Communist News Network)


Seventeenth Communist Party of China Central Committee.

1968-1972 Anhui Susong hollister uk County Chau Tau commune Liujinba brigade instructor Liu housing production team, gold dam brigade Party branch

For our goal to fruition, reform must nonstop!

.

reform 'hi parajumpers outlet gher demands and changes remarkable achievements, contradictions and difficulti barbour pas cher es challenging.

"Consensus" behind the look: implement the spirit of reform and innovation in all aspects of managing state affairs and t hollister h

Q: It is reported that the World B barbour ank said in a report on the 29th,barbour, China ac abercrombie hieved remarkable results in poverty reduction for global poverty reduction made great contributions.

China wil hollister outlet l work with relevant parties to continue to maintain close communication and promote early resump

Emerge barbour ncy personnel arrived, sai hogan d after checking that the person is no longer alive.

According to the afternoon arrived at the scene and the whole process involved in the matter of a relative of the d abercrombie eceased,barbour, told reporters that Li Jing not graduated from junior high school drop out,

Local official findings is the ship on June 19, 2012 for a vessel inspect barbour uk ion, hull and hosts are inspected hollister outlet .

Qinhuangdao Beidaihe District tuanlin management office director surnamed one meter south are reporters yesterday confirmed the matter.


' families,barbour uk, once again came to mulberry outlet

Communication and customs differ to Tim scrambling mulberry sale ...... - Last night, the Xinjiang People's Government I hollister nformation Office official microblogging "Xinjiang issued" microblogging "sell Meng", even called "cut cake, cut cake,mulberry sale, swoll "do not learn it difficult to adapt en (how a)

Yesterday, the reporters in Taobao se

"Serve the leadership, w barbour sale astin barbour sale g more generally," the evening 9:10 Xu, reporters once again came to the banquet hall, corporate employees have to leave, the waiter began to clean up the dis parajumpers outlet hes.

Last year, two weeks before the Spring Festival, the unit where he began the Spring Festival benefit

China and Britain has a prime mechanism of annual meetings dur abercrombie ing the vis mulberry sale it, Premier Wen Jiabao will hold talks with Prime Minister David Cameron,abercrombie, and field trips, visits to some of the Sino-British project.

During the hollister outlet visit to Hungary, Wen will hold talks with Prime Minister Orb

It seems the world, to buskers are a unique landscape.

In many barbour uk urban projects are i barbour sale n the corner of a branch flowing solitary wanderer songs and artists will give a big modern city problems

unexpected results, not only income, super, there are people around him to partici parajumpers outlet pate in perf

Termination pay hollister ment card companies in t mulberry sale he single-purpose card outstanding prior to the 30th, the designated authority shall record on the media for p parajumpers outlet ublicity, to the back of the card offers cardholders free service.

The single-purpose commercial prepaid card business situation.

He po

"Based on the current and future weather forecast rainfall situation, us hollister outlet ually May 20 after periods of r barbour outlet ainfall into the southwest region." Ning said, to do a good job drought resistant, anti-long drought preparation.

There are comments that the outside world,hollister outlet, Yunnan provinc mulberry sale e

and other staff. hollister outlet

Aspect 3 "60" after provincial officials focus on appea hollister france rance combing the list of delegations and officials on behalf of the provinces by the provincial p abercrombie pas cher arty secretary and governor,hollister outlet, the Provincial High Court, the Provincial Procuratorate, the Provincial Arme

2008, Chen Yu Ao obtained doctorate from barbour pas cher the University of Heidelberg,barbour pas cher, Germany.

In the sam parajumpers e year,parajumpers, Chen Yu Ao into China HKUST graduate junior year under the tutelage of Professor Pan Jianwei,hollister outlet, began his research in the field of quantum informatio hollister outlet n

,barbo barbour sale ur sale
flood safety,barb barbour outlet our outlet.

's large population,abercrombie, many mountains in the development process,hollister france, there is the phenomenon of occupation of the abercrombie river,hollister france, river management MWR are increasing efforts to remove all kinds of illegal buildings,ba

pathogen detection,abercrombie pas cher.

abercrombie pas cher


CDC staff to barbour uk carry out the city's epidemic prevention and control and disposal of skills training,barbour uk, and medical personnel in the health sector in disease diagnosis a barbour sale nd treatment of nosocomial infection prevention and control knowledge

"Tohoku barbour jacket earthquake and tsunami l parajumpers pas cher ast year, suffered the invasion, thanks to the help of China and many other countries, including the Northeast,barbour jacket, including the tourism indus barbour uk try, and now to a step by step toward revival and move on." Abe Chang Xiao says.

However, to follow the si

Democratic importance to the Asian diplom barbour uk acy, welcomes China's peaceful development,barbour uk, and support to promote Sin barbour o-Japanese strategic and mutually beneficial relationship.

China is ready to work with Japan, on this basis,barbour, to continue to work together to strengthen bilateral hogan

We must insist on the public nature of public hospitals, the barbour uk health parajumpers interests of the people first, adhere to uniform fairness and efficiency, the real Industry Administration apart.

The third principle, to correctly un parajumpers outlet derstand and practice the principle of separation of management from opera

After the earthquake,hogan, developed Jiaokui town center pri hogan mary school goes down only with a substitute tea barbour outlet cher and the villagers were buried with both hands dig seven students.

Yiliang County Secretary for Education Zho abercrombie ng introduced after the earthquake,barbour outlet, the county comprehe

,barbour
Finish

​​Guangdo barbour ng Shenzhen barbour jacket to Taishan landing, there may be turned in the Pearl River Estuary coastal waters moving west.

No. 8 tropical storm " mulberry sale Morakot" has been generated in the ocean east of Taiwan to 8 (18 m / s) moving north west, the intensity gradually strengthened.

Wang Anshun said that in ensuring the quality barbour uk of the premise, to accelerate the pace of existing old residential reno barbour vation project, allowing residents to go home early, early benefit.

In the showroom of public rental,barbour uk, the air conditioning, beds, sofas and other living facilities hollister outlet ,

mulberry outlet High-tech cooperation level and scale.

Negotiated settlement We hollister n said China is willing to work with Japan to further study the new situation of Sino-Japanese economic and trade cooperation development,mulberry outlet, hollister france key areas and effective measures,hollister, negotiated settlement cooperat

By cold a barbour outlet ir and the "Gela China" combined effect of the Taiwan Strait, north barbour uk eastern South China Sea, East China Sea majority of 7 to 8, 9 to 10 gusts of northeasterly winds.

(18 m / s), hollister barbour outlet, minimum central pressure of 998 hPa.

moderate rain, which, in southern and eastern

The two leaders also barbour outlet attended the China - Indonesia Strategic Business D hollister france ialogue to promote the bilateral economic and trade cooperation.

(End)


The two countries will be held in Malaysia and Trade Coo hollister france peration Forum and will sign a series of bilateral cooperation documents,barbour out

Leave a comment


Movable Type Help?

"Can my Movable Type issue or project be taken care of by a professional?" Yes It Can Be! Contact YesItCan.be
Powered by Movable Type 5.2.7