default userpic

Asset-to-Entry association independent of embedded assets

Vote 0 Votes

Over the last 3 days, I have studied all I could find about Movable Type assets. The current standard for associating an asset (image) to an Entry is to embed the image enclosed by the MT form tag. Using the form tag by itself does not establish association.

Besides that, tagging assets offers an amazing flexibility in choosing which asset to display where and in what size. The flexibility is such that all of your image thumbs in any Entries/Pages can be recreated automatically in a snap, should the design of the webpage change. This approach to the placement of assets requires the mt:Assets tag. The downside of this approach is that it is slower compared to using context-specific container tags (EntryAsset, PageAsset).

This leads me to the question if you could have the best of both worlds: Flexibel association of assets to Entries and fast retrieval of them. By flexibel I mean that you could establish association between an asset and an Entry/Page regardless of whether that asset (image) is actually embedded in the Entry/Page.

Here are my initial ideas of how assets could be selected and returned faster:

1. Allow the id attribute of the Asset tag to take on multiple ids.

2. Allow assets to be associated to Entries/Pages based on the IDs of Entries/Pages. For example, if I want to associate assets with IDs 1, 2, and 3 to Entry 821, I would tag those assets with entry-821. Now, in place of using regular tags, this would require an extra field I guess.

Reported on Movable Type 4.2

2 Replies

| Add a Reply
  • Hello Alex,

    I was wondering whether in your detailed study you have encountered anything that might be of interest in tackling the issue of system-assets.

    The idea is to be able to upload system-level assets, manage them in the assetmanager, and use them in a system wide fashion and not only a per blog basis...

    I posted the query here on the forum (See http://forums.movabletype.org/2009/02/system-level-assets.html)

    Thank you.

  • I detract from my previously favorable view on Movable Type assets. Assets are problematic because they are:

    1. not implemented globally for an entire Movable Type installation.
    2. to be registered by uploading files, and not by selecting folders from which the application can retrieve files as assets.
    3. not made part of the Entry Import/Export format.
    4. assignable to Entries, while Entries are not assignable to assets.

    MT assets were not conceived to be copied from one blog to another (cloning ignores assets). With the way they are implemented now, you are left to hope that you'll never have to change the directory structure, rename folders or files, clone a blog, or whatever.

    On the upside, once they are in place, use of custom asset fields and asset tags makes authoring easier and image creation adaptable to changing web designs. But who wants to live in a trap to enjoy these benefits?

Add a Reply

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

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

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

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

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

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

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