%asset_assetid% not available in some nested divs

I have a layout that has 2 nested content divs in it.


The first nested content div is an asset listing showing all children of the current asset and is using %asset_assetid% as the root. When i print %asset_assetid% to the screen it shows up correctly, and the list is working as expected.



The second nested content div, on the same layout, is an asset builder designed to create a new child of the page currently being edited. If I print %asset_assetid% to screen the keyword is recognised and replaced, but replaced with nothing. As the asset builder does not seem to have access to the asset id it is failing when trying to add the new asset as it doesn't know where to put it.



Having it work in one and not the other seems a little odd, is this behaving the way it is meant to, if so is there some way to get %asset_assetid% working properly in the asset builder, or alternativly is there some other way to get an asset builder to recognise the asset currently being edited so that it can use it as a create location?

[quote]is there some other way to get an asset builder to recognise the asset currently being edited so that it can use it as a create location?
[right][post=“15398”]<{POST_SNAPBACK}>[/post][/right][/quote]



You need to use the Additional Create Locations to tell the Asset Builder to create new assets under the current asset. This can be found at the bottom of the Create Locations screen for your asset builder. Remember to set the submission URL (on the Details screen of the Asset Builder) to the Current URL.

What you need to do is use the additional create locations section at the bottom of the create locations screen in the asset builder. Set up an additional create location and use current asset.

Dammit Avi. Beat me to it:)

That's what I am trying to do already.


The submission URL is set to the current URL.



In Additional create locations I have chosen the current asset as an additional location, this gives me the option of either using the asset id or a keyword. If I select asset id it doesn't work, if I select keyword and put in asset_assetid it also doesn't work.



If the builder is nested in a standard page then it does work properly and creates a new child of that page. It is only when the builder is nested in a layout in the simple edit that it refuses to work.



The asset_assetid does not print to screen when it is in the standard page either so that seems to have been a red herring though.

[quote]If the builder is nested in a standard page then it does work properly and creates a new child of that page. It is only when the builder is nested in a layout in the simple edit that it refuses to work.
[right][post=“15402”]<{POST_SNAPBACK}>[/post][/right][/quote]



You cannot nest Asset Builders in simple edit – once you’re in edit mode, the Asset Builders no longer work. Asset Builders are designed only to work outside of simple edit mode.

So it doesn't work by design. I guess I will stop trying to get it to work then.


Out of interest, is there a reason why they are designed not to work in edit mode?



Thanks for the quick responses.

[quote]Out of interest, is there a reason why they are designed not to work in edit mode?
[right][post=“15411”]<{POST_SNAPBACK}>[/post][/right][/quote]



We don’t Create and Edit assets at the same time. I enable my asset builders when users are logged in, but not when in simple edit (i.e. I hide the buttons while in /_edit mode).