We’re rewarding the question askers & reputations are being recalculated! Read more.

Hot answers tagged

12

CiviCRM itself provides no mechanism for customizing any URL aliases, or for generating them automatically. This is handled in the CMS or at the webserver level through URL Rewrite on IIS, mod_rewrite on Apache, ModRewrite in Lighttpd, and so on. By the book, manual aliases or redirects for contribution pages or any other CiviCRM pages are to be handled at ...


9

reset=1 clears the current local session variables as well as the smarty cache. For instance, if you have a form that is getting reused, reset=1 will clear the form's fields (whereas, without it, the form may contain values carried over from it's prior invocation). If you don't use it, and it's a public, anonymous facing page, I suspect you may get away ...


8

The URL formula is different for each CMS. The most accurate approach is to open a CiviCRM page and examine its URL. For example, I logged into the public demo sites for v4.5, navigated to "Contributions => Dashboard", and the URL of each page: WordPress: http://wp45.demo.civicrm.org/wp-admin/admin.php?page=CiviCRM&q=civicrm/contribute&reset=1 ...


5

In Drupal 7, the book is a bit out of date, as URL aliases work now. Navigate to Configuration > Search and metadata > URL aliases > Add alias (this leaves you at /admin/config/search/path). Enter the CiviCRM url (without the domain part) in Existing system path, eg civicrm/contribute/transact?reset=1&id=1 Enter the desired alias in Path alias, eg ...


5

I just found this, so thought I'd post it :) The URL to clear all Civi caches in Drupal is [site-url]/civicrm/clearcache The URL to clear all Civi caches in Wordpress is: [site-url]/wp-admin/admin.php?page=CiviCRM&q=civicrm/admin/job&action=export&id=13&reset=1 this can be found by going to "Administer > System Settings > Scheduled Jobs" ...


4

Also at Administer > System Settings > Cleanup Caches and update Paths at this path civicrm/admin/setting/updateConfigBackend?reset=1


4

There two ways a field which can be used as link. Contact's website field This is field is available for Contact of all type i.e Individual, Org etc. on new contact form or can also be added to profile. Custom field of type link CiviCRM provides custom fields for different type. You can use custom field of type link if you want it to be used as link as ...


4

You can do this via full text search which gives you slightly different results than contact, but might meet your needs. If you are logged in to the demo server,check: http://d45.demo.civicrm.org/civicrm/contact/search/custom?csid=15&reset=1&text=joe&table=Contact&force=1


3

For WordPress there are a couple of options: Embed the form into a standard WordPress page with a shortcode. You can then use the WP URL of your choosing, in the standard WP way. Install a plugin such as Redirect Editor.


3

Most pages don't support this out of the box because securing inputs is tricky. CiviReports supports this, and search pages are starting to support this (it works for a handful of fields and more are coming) but for now, if you want to do this, you should probably write a bit of jQuery to parse the url argument and fill the field in. EDIT: See this Github ...


2

You may need to set up two things for your extensions, and you need to convert the shortform 'URL' provided into a full URL that goes to correct page under your CMS. The image appears to indicate you're running WordPress so I am using URLs for that CMS. Navigate to Administer > System Settings > Directories (http://yourWordpressSite.org/wp-admin/admin.php?...


2

The advice in the documention is fairly old and much of it is no longer appropriate. In the most recent CiviCRM versions, more and more of the url settings are automatically calculated from the 'base url' and are relatively easy to update just by editing the CIVICRM_UF_BASEURL in your civicrm.settings.php file, and then clearing your caches for good measure. ...


2

It depends what you mean by "all records", but the custom search called full-text search (under Search - Custom Searches) can be made to run via url like so: https://dmaster.demo.civicrm.org/civicrm/contact/search/custom?csid=15&text=894-1515&table=Contact&force=1&reset=1 That will bring up the contact with phone 894-1515. If you want to ...


2

Check how this bug was fixed elsewhere https://github.com/veda-consulting/uk.co.vedaconsulting.pcpteams/pull/216


2

We have done this for Drupal in the past just with a Views Block on the /user page, or wherever they go when they log in. There is a write up about such a View (to show the users Membership details) in this blog


2

There is no easy way to do this. You might be able to create a drupal module that is able to get the myOrg urls and then renders the CiviCRM version of it. But then you still have the problem that the internal links that CiviCRM creates will be in the /civicrm/* form. To solve that you could first get the CiviCRM page as a string in the drupal module, ...


2

Please check that you the base page here: https://example.org/wp-admin/admin.php?page=CiviCRM&q=civicrm/admin/setting/uf&reset=1 The value here Should be an existing published WP Page. I would then revisit the permalinks page. That should 'fix' it.


2

This is a known issue for a quiet a long time and has been no progress on it. Alternate way of doing this would be to use global text (or use the event title field) and rewrite the output as a link and generate the link as civicrm/event/info?reset=1&id=[id]. HTH Pradeep


1

LAE, You can do this in many ways As suggested by Demerit you can use Full text search and append in url. If you are using Drupal, then you can use Views to create list of contact and then use CONTEXTUAL FILTERS to filter based on arguments from URL HTH Pradeep


1

Other than the issue of the "Other' radio button not being selected, the answer here should work for Other too: https://civicrm.stackexchange.com/a/12977/96


1

Unfortunately, there is no setting for this. You would indeed need to create an extension that pre-fills the field in teh way you need it. If you have not done so yet, you may have a look at the CiviCRM Developer Guide and/or get in contact with other developers: https://chat.civicrm.org/civicrm/channels/dev-newcomers


1

You should look at log the load balancer. the 503 might be generated there (ie. the LB can't reach the backend) or it might be that the LB can reach the real servers hosting civi, but they can't process the request Assuming you trust amazon (a big assumption), you might want to say that the https LB can talk to an unsecure civi server (via http). Otherwise ...


1

Sorry I forgot to put a response here... Just to let those know who may have this issue Adding "Options -MultiViews" to the .htaccess fixed it... Simple fix but was an environment based issue... There is info about this online but apparently I couldn't put 2 and 2 together!!!


1

welcome to the CiviVerse! Check for the presence of the .htaccess files. Depending on how you cloned the site perhaps these were lost.


1

This might be tricky because the export csv button actually runs functions to compile the file and force the download using php header() and content-disposition attachment. See line 224 etc here to look at how it is working: https://github.com/civicrm/civicrm-core/blob/master/CRM/Report/Utils/Report.php. You could probably write an extension that invokes ...


1

Extention is probably the best and right way to do it : I have seen that the API is able to get the Contact Id. I have to learn how to make an Extension. Thanks to all of you for your answers


1

Another is convert your external program to an extension, then make api calls.


1

For a domain change, look at the civicrm.settings.php file the 'CIVICRM_UF_BASEURL' is the field you are looking for. For CiviCRM version 4.7.x this will be in wp-content/uploads/civicrm/ For CiviCRM versions 4.6.x and lower this will be in wp-content/plugins/civicrm/ You may also need to make changes for WP, but this is what you'll need to start with for ...


1

Try using a question mark instead of an ampersand: 'url' => 'civicrm/profile?gid=20'


1

Setting up a new database isn't necessary. For folks who encounter similar issues in the future: after checking your BASE_URL setting in civicrm.settings.php, delete your templates_c folder (found here), clear all CiviCRM caches, and rebuild your menus. Details on the latter two items are available here.


Only top voted, non community-wiki answers of a minimum length are eligible