29
votes
Accepted
How can I disable households?
Households can be disabled globally by disabling that contact type. This is not exposed to the UI but is still pretty easy to do:
From the api explorer (Support -> Developer -> Api Explorer) make the ...
11
votes
How can I disable households?
To remove households from the interface completely:
Delete any households that may have been created and any relationships involving households (shared addresses, Household members, etc).
Update the ...
7
votes
Accepted
Can I create a custom System Workflow Message for a particular Contribution Page?
As I learned from @Nicholai in a previous (unrelated) thread, you can override these templates with some pretty easy logic to add something custom to a single page. For example:
{if $...
7
votes
Accepted
How can I customize the "Fatal Error" screen?
You can configure CiviCRM to use a customized "fatal error" screen by following the steps below. You may want to include specific site administrator contact information or other problem resolution ...
6
votes
Accepted
How can I include a custom template file in an email template using smarty?
I dont think CiviCRM does this by default
However, I do think this is a good idea and makes sense to include it in core for non-civimail mailings (which already have a header/footer)
Might want to ...
6
votes
Accepted
How to include buttons in Civimail
How about link your two buttons to two different URLs (confirmation pages) "Thank you for voting yes"; "Thank you for voting no" and use the CiviMail track open/click through feature to see which ...
5
votes
How do I add fonts to CiviCRM
They are several places where you can use fonts (by order of complexity):
1) web pages (eg contributions)
This one is simple, it's a matter of changing the css and possibly loading an extra bit of ...
5
votes
Civi CRM Expert in Europe wanted
Please refer to this link https://civicrm.org/partners-contributors to get/contact a CiviCRM expert in your area
5
votes
Accepted
Editing RelationshipSelector.tpl section of a UserDashboard
The section is generated using the datatable, and data is called using ajax method.
You could use ajaxsuccess to call after the data is retrieved from ajax.
4
votes
How can I add/rearrange custom fields in the default contact view template?
The template templates/CRM/Contact/Page/Inline/ContactName.tpl does not contain any custom fields. Instead of adding smartyDebug=1 in the url, which dumps variables in the main template, try ...
4
votes
How can I show groups in membership report columns?
The current correct way to create a custom report is to use an extension, rather than the manual process linked to in the question.
Updated documentation for creating a report extension is found here:...
4
votes
Can I override core classes or PHP files with custom versions?
The answer is "yes" but...
Overriding an entire file means upgrades will become difficult, as you'll have to manually diff the contents of that file with the one in the new version, and reapply your ...
4
votes
Adding CSS to extra tpl file
There are 3 solutions on how to achieve this
1 - Adding Javascript in tpl file as mentioned by Demerit
{literal}
<script type="text/javascript">
CRM.$(function($) {
$('.crm-report-form-...
4
votes
Accepted
I modified a template file and now can't remember how
This could potentially be done via Word Replacement - so check there too.
4
votes
Accepted
Add new column to table in field 'selector.tpl'?
You can create a profile with the fields you want to display as a column and set the 'Default Contact Search Profile' in Search Preferences (CiviCRM >> Administer >> Customize Data and ...
3
votes
Where to modify billing information form ≥ 4.6?
Your best option is to do what you were doing previously.
However, you will need to modify your customized template to extract details from the $billingDetailsFields array rather than the hard coded ...
3
votes
How to suppress columns from Manage Group search results
I just learned how to use bVisible = false to suppress columns. I found what I needed at http://legacy.datatables.net/usage/columns, the columns documentation for datatable plugin.
3
votes
Accepted
Is there a way to customize Activity Type screens?
I've handled this with a .extra.tpl file with some jQuery in it. I also used a template override for one or two customizations, but shied away from them because of the overhead of upgrading them. ...
3
votes
How can I show groups in membership report columns?
A better approach might be to use an extension rather than the above. Documentation for report extensions here:
http://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Report-Template+Extension
...
3
votes
Accepted
adding a column to the standard relationships report in Contact Reports
As ErikH stated it is always good practice to create a new extension or create a custom folder to override core files
So In order to add a supplement address in the report you need to add a new ...
3
votes
Accepted
how do I create a new template on civicrm / mosaico
Thanks for this - it helped me out.
I believe the second part of your answer is no longer valid.
The new place to reference your template seems to be in: uk.co.vedaconsulting.mosaico/CRM/Mosaico/BAO/...
3
votes
How can I create custom contribution page (CiviCRM 4.7.25 on Wordpress 4.8?)
Can you please edit your question to add your CMS and CiviCRM version. Depending on your CMS there may be other options for customization.
The yellow section only appears when a user is logged in to ...
3
votes
Accepted
Jquery not affecting custom fields of an activity
In some CiviCRM pages/forms custom fields are loaded/reloaded via AJAX (you will notice that if you have a set of custom fields based on Activity type, the custom fields update/reload when changing ...
3
votes
Accepted
Adding CSS to extra tpl file
You might be able to do it with css but I might use jquery instead:
{literal}
<script type="text/javascript">
CRM.$(function($) {
$('#s2id_groups').hide();
});
</script>
{/literal}
The ...
3
votes
Accepted
How to force a field to be mandatory?
Welcome to SE, You can set contact type mandatory by using hook_civicrm_buildForm something like below
function extension_civicrm_buildForm($formName, &$form) {
if ('CRM_Contact_Form_Contact' ==...
3
votes
Accepted
Event with multiple days - multiple choices
The feature you're looking for is called price sets - in combination with the "multiple register participants" feature.
Set up the price set with Events menu » New Price Set. See screenshot 1 below.
...
3
votes
Accepted
Custom emails automatically generated based on participants filling in drupal forms
The list of tokens you see when editing a template changes depending on where you're editing from. Unfortunately, CiviRules doesn't expose event/participant/contribution tokens in the drop-down - but ...
3
votes
Accepted
Can't load custom template
The Selector.tpl is placed wrong hence its not invoked. It should follow exact path of CiviCRM core module
For example if the Selector.tpl in Core is placed under plugins/civicrm/civicrm/templates/CRM/...
3
votes
Create customized "block" in Mosaico
It is possible to define custom blocks to mosaico templates. To do this, you have to create an extension that provides a custom base template and implements the hook_civicrm_mosaicoBaseTemplates hook ...
3
votes
Where should custom "Region" calls be stored?
You need to implement it in hook, if you are looking to add content on event info page than you will need to implement it in pageRun() hook
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
custom-templates × 61templates × 10
civievent × 7
civimail × 5
custom-fields × 5
extension × 5
smarty × 5
wordpress × 4
mosaico × 4
civicontribute × 3
civimember × 3
email × 3
drupal × 2
contacts × 2
profile × 2
contributions × 2
contribution-page × 2
forms × 2
message-templates × 2
javascript × 2
css × 2
households × 2
jquery × 2
api × 1
civireport × 1