I was testing by making my own asset.
I know that printBody() function is used to show the assest content in the front end.
Now i want to make the backend but i don't which function i have to edit in file
e,g in better_user_edit_fns.inc
e,g i want that when some just click on details it should display "hello"
so that i know that i can put some more stuff there
[quote]
I was testing by making my own asset.
I know that printBody() function is used to show the assest content in the front end.
Now i want to make the backend but i don't which function i have to edit in file
e,g in better_user_edit_fns.inc
e,g i want that when some just click on details it should display "hello"
so that i know that i can put some more stuff there
[/quote]
Hi John and welcome to the forum,
The edit_interface_screen_details.xml file defines the fields used in this example.
In order to paint custom contents, custom paint…() functions will need to be declared in the better_user_edit_fns.inc file and referenced from the XML file.
It's worth checking some existing assets as examples. Functions beginning with paint…() and process…() are scattered throughout Matrix and will provide more insight into asset creation.
Also the user community here will be all too happy to assist you with initial steps when building something new.
Actually i copied the paint method in bettr user function and made that empty with only echoing "hello".
But page was still looking unchnaged.
[quote]
Actually i copied the paint method in bettr user function and made that empty with only echoing "hello".
But page was still looking unchnaged.
[/quote]
If you made changes to the xml file, you probably need to run step_03.php and compile_locals.php too. Try that and report back.
I assume you see your asset in the asset map?
Yes i can see my asset in asset map. The front end is working fine but i can't make the backend work.
I tried compliling step 3 again but it remains unchnaged.
Just foo e,g i want to use php to echo hello at backend. which file and function i need to edit.
[quote]
Yes i can see my asset in asset map. The front end is working fine but i can't make the backend work.
I tried compliling step 3 again but it remains unchnaged.
Just foo e,g i want to use php to echo hello at backend. which file and function i need to edit.
[/quote]
If you are editing the Details screen, for your asset does the file edit_interface_screen_details.xml (in your asset's current directory) contain a paintFn() and processFn() with the name of the function you have the echo in? Also do you have a mirroring lang_screen_details.xml located in your asset's locale/en directory (mirroring as in the contents of lang_screen_details.xml has the same contents as edit_interface_screen_details.xml but with the extra <display_name> and <note>)? If so, have you run "php install/compile_locale.php $PWD" to pick up the changes?
Thanks buddy , at last with your help i displayed hello some where.
Where is the function by which i can design the layout which i want to show.
Basically i want the html table with different rows of my data
and when someone clicks on rows light box opens where user can edit that stuff