Page content through standard page builder

is it possible to add the "page content" of a standard page using an asset builder?


i know that we can use %__custom-contents% keyword in simple edit mode but when i use it in a customized layout of an asset bulder, it did not show


No -- the bodycopies don't exist when you create a Standard Page, only afterwards. The only assets that currently allow you to edit their content on the create screen are the News Item and Comment assets.

Try using a News Item asset if you need to do this.


but the page assets are already created. :(

i just made a madata field for the content.

but is there a way to dynamically copy a metadata field value to the page content?
because so far i havent seen such action in the trigger asset

tnx...

The Standard Page asset is created, but all it knows is it's name. The actual content is stored in the Div Contents asset, which is only created [i]after[/i] the standard page is created.

The asset hierarchy is:

Standard Page [A] -> Page Contents [B] -> Bodycopy Div [C] -> Div Contents [D]

Your asset builder is only creating [A], but the content is stored in [D]. This is because a Standard Page can have multiple bodycopies each with different content types (WYSIWYG, Raw HTML , nested content, image, etc).

[quote]but the page assets are already created. :frowning:


i just made a madata field for the content.



but is there a way to dynamically copy a metadata field value to the page content?

because so far i havent seen such action in the trigger asset



tnx…[/quote]



So, using a 2 step form for this would not work for you?



redirection to the simple edit access, is that what you mean?

No, on the thank you page of the asset builder, you could use a trigger to post content to your page contents asset. All of this should be able to be achieved without entering simple edit. Now, printing the WYSIWYG, that is another story...if raw html is fine, then it should work.

i tried looking at the available actions for the trigger..

the closest one i chose would be the "set asset attributes" and on the options, the attributes that i can choose from are only name and short name and no content.

aside from the said trigger action, can you suggest what alternative actions/ways mr. nnhubbard?

You need to Set Asset Attributes on the DIV Content asset that was created, not on the Standard Page.

[quote]i tried looking at the available actions for the trigger…


the closest one i chose would be the "set asset attributes" and on the options, the attributes that i can choose from are only name and short name and no content.



aside from the said trigger action, can you suggest what alternative actions/ways mr. nnhubbard?[/quote]



Hmm…maybe it will not work then. It was only something that I thought would be possible, I have never actually updated the page contents div using a trigger, only asset attributes, which I had assumed page contents were. :frowning:



sorry about that.


Page content is an attribute, but not of the Standard Page asset. It is an attribute of the Div Content asset (assuming a WYSIWYG container is created).

Yes, you are correct. But my example fails because for a trigger, you can only update the attributes of top level assets such as standard page, news item, etc, rather than the child assets that are contained below each parent container asset.

Good point. If we exposed dependant asset types to the trigger conditions and actions, you would be able to do it by targetting the Div Content as it is created.