Asset builder, set link value

We just upgraded to 3.16.6 to get the great new features. I was excited about the new set link value option for an asset builder, but I am having some difficulty setting it up.


Basicly, I have 2 asset builders, the first is a news item, the second is a image. I want the news item to be created, then using additional create locations, I want to create the image under news item, and create a notice link, with the value of thumbnail. Now, I tried just having a link type of NOTICE, but that did not work. As I you cannot just have a notice link and nothing else. Would I need to have 2 create locations, once of a normal type_1 or type_2, and then a second, NOTICE type link, which will set the link value to thumbnail?



I am guess I am just confused on the set up of this…


Yes, that's it -- the TYPE_1 or TYPE_2 link determines where in the asset tree the thumbnail is stored and the NOTICE link will create the actual thumbnail link to the News Item.

Ok, but is there a way to add both the type_1 link and the NOTICE link, using the Additional Create Locations? I tried to use 2 different GET variables, but this did not seem to work. Or is this only set up to work in conjunction with a Fixed, Selectable, or Dynamic create location?

I had tried: (having NOTICE as the default for Additional Create Locations)

    Add Image


And:

    Add Image


But each time it would only create the type_2 link, and not the notice link.

I suspect the only way is with a Fixed create location for the TYPE_1 or TYPE_2 link and using the Additional Create Location to create the NOTICE link. Can you test that to see if it works?

I don't know Avi. I am thinking there might be a bug going on here. Any which way I try it I am getting no output after trying to upload the image which should create a type_1 link and the NOTICE link. It is like the asset builder freaks out when trying create a NOTICE link, no matter if it is in the static, dynamic, or additional create locations.

Can I ask how this was used for the client that requested this feature? I assume they would want to use it in a similar way, to give link values, which usually is a NOTICE link, correct? And also, how was this tested when it was added to Matrix?

I just want to be sure that I am not trying something that this set link value was not created to do.

I'm not sure that the Asset Builder was extended with this specific action in mind, but we assumed that it would be possible. Can you log it as a bug so that the developers can test it?

Ok, well, I am keeping my fingers crossed, and have submitted a bug report. 2906

Does anyone know if setting a NOTICE link even works with an asset builder at all? It would seem that it would not, since you would have to create a type_1 or type_2 first…

Well, this is what I was told when I submitted a bug report:

[quote]The Set Link Value feature was created to add the link value to the primary link only. To allow a link value on a NOTICE link would require further changes.[/quote]



So, I guess we are back to square one with trying to somehow link the image to its parent with asset builders.



What about that new listing engine update. In the past it was not possible to have an asset listing, with a paint layout (which would have another asset listing nested in the paint layout, which would look 1 level down and find that image), and be allowed to nest that inside another page. It would loose where it was getting the image from and mess up. Has this been fixed? I know we talked about this in the past…but I can't find the post.


Yes: the asset listing now sets a session variable of the asset ID of the currently painting asset. You can then use dynamic parameters on the nested asset listing to use the asset id of the session variable as the root node.

Any help on setting this up? What would the session variable name be?

The name is list_current_asset_id


Thanks Greg.

I have to say, this is finally the solution that I have been looking for. I am able to print the image tag for an image which is the child of an asset, and list this in an asset listing.

Thanks Squiz for making such an awesome product, and adding such a great new feature!

This one was courtesy of Bruce Aylward from NZ:

http://forums.matrix.squiz.net/index.php?showuser=2280

[quote]This one was courtesy of Bruce Aylward from NZ:
http://forums.matrix.squiz.net/index.php?showuser=2280[/quote]



A big thanks to Bruce Aylward!!