Details
-
Type: Sub-task
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.1.2
-
Fix Version/s: 4.2.0
-
Component/s: None
-
Labels:None
Description
Add a new menu /civicrm/inline
When called /civicrm/inline/
{entity}/
{template}?param1=bbb¶m2=ccc
eg: http://trunk.crm/civicrm/inline/uf/edit_fields?id=1
1) it looks for the template under templates/CRM/Entity/Page/Inline/Template.tpl
eg. templates/CRM/UF/Page/Inline/EditFields.tpl
2) assign param1 param2... to the template
3) get the result and
4) either display the page "normally" or if called from jquery (ajax) returns only the fragment (like snippet=1)
Rationale:
they are more and more ajax functions that only needs to be bootstrapped by calling a bit of html that is either using
to fetch data, or containing html and $.crmAPI() calls.
It could be used for pop-up and other forms.
For the profiles I will use it at least for
a) the snippet to load the profile and its field
b) the snippet to add/remove fields for contacts
c) the snippet to add/remove fields for activities
d) modify exiting option lists for custom fields
(and I can already see myself using it for more stuff in custom dev, that will be awesome)