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
> Link Assets To Entries?, Can the context be referenced?
shenews
post Feb 22 2008, 01:22 AM
Post #1





Group: Members
Posts: 109
Joined: 16-August 05
Member No.: 32,509



Is it possible to link the sidebar thumbnail photos to the entries they are posted in, rather than to their full-size versions as they are now? Can the asset id or link and the entry id or link be associated?

There are a lot of asset tags whose current use isn't entirely clear, but I don't see one called MTAssetContext.


Go to the top of the page
 
+Quote Post
Su-
post Feb 22 2008, 08:48 AM
Post #2





Group: Members
Posts: 1,665
Joined: 15-June 06
Member No.: 35,860



QUOTE (shenews @ Feb 22 2008, 03:22 AM) *
Is it possible to link the sidebar thumbnail photos to the entries they are posted in, rather than to their full-size versions as they are now? Can the asset id or link and the entry id or link be associated?
There are a lot of asset tags whose current use isn't entirely clear, but I don't see one called MTAssetContext.


[Incomplete thoughts]
I haven't played with the asset tags too much yet, but I'm semi-sure you can't do this. At least not so simply.
For one thing, your question seems to assume there's only one "context." What would you expect to happen if the asset was assigned to multiple entries? At best, you could theoretically get a list of what entries an asset belongs to. The system does track this, though there don't appear to be template tags for using it yet. And then you'd have to arbitrarily decide to only use the most recent one.

This post has been edited by Su-: Feb 22 2008, 08:54 AM
Go to the top of the page
 
+Quote Post
shenews
post Feb 22 2008, 07:33 PM
Post #3





Group: Members
Posts: 109
Joined: 16-August 05
Member No.: 32,509



Yes, on this site each image asset will have only one context. I ftp site images; these are blog post image uploads by others, and they aren't reused.

I've thought there might be a way to grab the entry-id, use SetVar, and turn it into a link on the known image filename.

But it is Friday, and I may well be too tired tonight to see it all clearly, unscrambled.

The more I think about this, though, the more it would make sense to put time instead towards using Multiblog to aggregate recent photos from all blogs, and link them back to their originating blogs. Multiblog knows what blog they came from, and If the photos are really recent, the context should be near the top of the blogs' main indexes. That would put the reader in the ballpark.

Thanks for thinking about it.
Go to the top of the page
 
+Quote Post
tkeating70
post Jan 2 2009, 11:03 AM
Post #4





Group: Members
Posts: 18
Joined: 1-April 04
Member No.: 22,998



Actually, I was able to figure out how to link assets to entries.

check it out:

Movable Type Related Entries with Images & Recent Assets Linked to Entries


--------------------
Go to the top of the page
 
+Quote Post
shenews
post Jan 8 2009, 11:48 PM
Post #5





Group: Members
Posts: 109
Joined: 16-August 05
Member No.: 32,509



Very interesting. Unfortunately, I'm in an environment where plugins are generally not allowed, so I probably won't be able to get the MTRelatedEntries tag function unless MT makes it part of the default set.

Nice work putting that together, though.

Go to the top of the page
 
+Quote Post
tkeating70
post Jan 9 2009, 08:05 AM
Post #6





Group: Members
Posts: 18
Joined: 1-April 04
Member No.: 22,998



Actually, you don't need a plugin for linking image assets to entries.

My article goes into a couple tips. Part 1 is all you need for linking image assets to entries without the need for a plugin.

It's all just native MT template code.


--------------------
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 - 09:19 PM