Key words replacement

Hi there,


We are using %__custom-contents% to display the asset content in se-contents interface section.

As all our assets have the same structrue of bodycopy Divs, just wondering is there any keywords that we can use to display its Container Name of each div in se-contents before the div content?



Thanks!

[quote]
Hi there,



We are using %__custom-contents% to display the asset content in se-contents interface section.

As all our assets have the same structrue of bodycopy Divs, just wondering is there any keywords that we can use to display its Container Name of each div in se-contents before the div content?



Thanks!

[/quote]



There is no specific keyword to do this. All you can do, with keyword, is get the asset Id of the Page. Although if you view the source of you simple edit interface, there is div tag which looks like

    
just before the content of the page. May be with javascript you will be able to extract the name of the Bodycopy Div container here.

Other option I could think of was using Javascript API to get children assets of the Page. This would have the information you are after.



Hope this helps.



Ash

[quote]
There is no specific keyword to do this. All you can do, with keyword, is get the asset Id of the Page. Although if you view the source of you simple edit interface, there is div tag which looks like

    
just before the content of the page. May be with javascript you will be able to extract the name of the Bodycopy Div container here.

Other option I could think of was using Javascript API to get children assets of the Page. This would have the information you are after.



Hope this helps.



Ash

[/quote]





Hi Ash,



Do you know if there’s a simple edit keyword for a form submission result? (this is to only display an answer to a custom web form question)

[quote]
Hi Ash,



Do you know if there's a simple edit keyword for a form submission result? (this is to only display an answer to a custom web form question)

[/quote]



You should be able to use the globals keywords here. Say your question id is 123456:q2 whos answer you want to print, you can use %globals_question_answer_123456_q2%.



Hope that helps.



Ash

[quote]
You should be able to use the globals keywords here. Say your question id is 123456:q2 whos answer you want to print, you can use %globals_question_answer_123456_q2%.



Hope that helps.



Ash

[/quote]





Hi Ash,



Unfortunately that didn't work for me. It seems contradictory to use specific question id's if its a global keyword that I'm suppose to use.



I tried using %log-S_submissions% from the simple edit keywords list (under 'form') and I get the following warning message:


[quote]edit_interface_screen_log.xml not found for Asset Type "form_submission" [SYS0065][/quote]



Do you know what this warning message means?

[quote]
Do you know what this warning message means?

[/quote]



Whenever you use a %log-S_submissions% it can be slit into 3 parts : 'log', 'S', 'submissions'. This is a way Matrix will try and figure out what to paint. Here we are asking Matrix to paint submissions(denoted by last part in keyword) section (denoted by 'S') of the 'log' screen of the asset.



The log screen is on Form asset and not the Form submission asset. Seems like you tried the keyword on the simple edit interface for form submission, hence the error.



Ash

[quote]
Whenever you use a %log-S_submissions% it can be slit into 3 parts : 'log', 'S', 'submissions'. This is a way Matrix will try and figure out what to paint. Here we are asking Matrix to paint submissions(denoted by last part in keyword) section (denoted by 'S') of the 'log' screen of the asset.



The log screen is on Form asset and not the Form submission asset. Seems like you tried the keyword on the simple edit interface for form submission, hence the error.



Ash

[/quote]



Hi Ash,



Thanks for your reply however I think I need to clarify further.



I'm using the simple edit interface to extract form submissions as our Admin staff will need to edit the responses of the form submissions. So it's not only printing the results but we need to somehow edit the results as well.



Do you know if this is possible?



Thanks,

Adeline

[quote]
There is no specific keyword to do this. All you can do, with keyword, is get the asset Id of the Page. Although if you view the source of you simple edit interface, there is div tag which looks like

    
just before the content of the page. May be with javascript you will be able to extract the name of the Bodycopy Div container here.

Other option I could think of was using Javascript API to get children assets of the Page. This would have the information you are after.



Hope this helps.



Ash

[/quote]



Thanks!!!