We created a custom asset that extends the page asset. Right now when I create an asset the only field that shows up is the name, then, after the asset is created, there are a bunch more fields that can be filled in.
It has been a while since I have messed with this, so I am wondering what file needs to be edited in order to move those fields into the "Create" screen, so that all that information can be entered on creation, rather than after. The main reason for this being that when using an asset builder, the only field that will print is the name field, so I figured this was the remedy that I needed. Is this correct?
Asset Creation Screen
You need to add fields and sections into the edit_interface_create.xml file.
Take a look at core/assets/users/user/… for an example of how the user asset displays a couple of sections from the Details screen on its create screen.
[quote]You need to add fields and sections into the edit_interface_create.xml file.
Take a look at core/assets/users/user/… for an example of how the user asset displays a couple of sections from the Details screen on its create screen.[/quote]
Strange, I must be doing something wrong.
in my edit_interface_create.xml screen I have:
I then ran compile locals and step_3, but nothing changed on the create screen. And yes, those custom field names do exist for the asset...
Does any other file need to be configured?
I am thinking that I did something wrong here as I tried it again from scratch and it is still not working. Was I suppose to run step_2?
You need to re-run compile_locales.php -- also, make sure you update the locale/en/*.xml files to match the create screen XML files. This wasn't mentioned higher up in the thread.
Perfect. Thanks Avi, that did it, I got it working on the create screen. :)
Now, getting those input fields to show up in an asset builder is another story, is there another screen that needs to be created for this? We have the custom keywords for each field, but those are not printing anything.
Anyone willing to comment on why the asset fields would show up on the creation screen, but the keywords themselves (or the section keyword) do not print any field when using an asset builder. I would assume this would have worked once I got the fields added to the create screen, which I have.
Thanks.
Update:
I figured it out. I realized that I needed to add limbo_access="1" to my sections, two of my sections did not have this, so fields within those were not allowed to print their fields in the asset builder.
It is working now.
Sorry Nic, you are 100% right. Not sure why nobody figured that out for you, but glad you sorted it yourself.