CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Custom version of the Profile View screen issue
Pages: [1]

Author Topic: Custom version of the Profile View screen issue  (Read 1580 times)

jahnabi

  • Guest
Custom version of the Profile View screen issue
May 14, 2008, 02:58:32 am
Hi,

I am looking forward to create a customised version of the Profile View screen for a Profile whose ID is 2.
I have followed the instructions mentioned in the following url:
http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in+and+Profile+Screens

I have created a new directory under   
    /usr/local/apache2/htdocs/drupal-5.5/sites/all/modules/civicrm/civicrm_custom
Have entered the above path in the Custom Templates field at Administer CiviCRM » Global Settings » Directories.

My .tpl file for the screen i want to customise is edit.tpl
Have copied the .tpl file to
  /usr/local/apache2/htdocs/drupal-5.5/sites/all/modules/civicrm/civicrm_custom/CRM/Contact/Page/View/Edit.tpl
Then have saved the custom template copy to
  /usr/local/apache2/htdocs/drupal-5.5/sites/all/modules/civicrm/civicrm_custom/CRM/Profile/Page/2/View.tpl

Now when i edit and save the file it makes no difference to my civicrm screen.
Please help me where did i miss.

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Custom version of the Profile View screen issue
May 14, 2008, 05:27:13 am
Hi,

Try moving your custom templates folder out of your civicrm module folder (it is supposed to live outside of CiviCRM).

Try moving it here:

/usr/local/apache2/htdocs/drupal-5.5/civicrm_custom

Then enter that path in the Custom Templates field at Administer CiviCRM > Global Settings > Directories.

Then see if it works.

jahnabi

  • Guest
Re: Custom version of the Profile View screen issue
May 15, 2008, 04:43:25 am


 Hey thanks Emily! ....it works!


orjantorang

  • Guest
Create a Custom Screen trouble
July 01, 2008, 04:08:19 am
I have followed the instruction in http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in+and+Profile+Screens.

Made a directory.
Add it to global settings/directories; Custom Templates (have tried both in www/civicrm_custom and in drupal/files/civicrm_custom)
Found, copied, edited and uploded the Tabbed.tpl-file in my civicrm_custom-folder.
Enabled Debugging and used debugging parameter "&directoryCleanup=1".
Nothing happens.
I remove the original Tabbed.tpl-file, then I get the following message:

user warning: Smarty error: unable to read resource: "CRM/Contact/Page/View/Tabbed.tpl"
in /var/www/drupal/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.


In the debugger message i have found this:
customTemplateDir => /var/www/civicrm_custom/
{$formTpl} default
{$tplFile} CRM/Contact/Page/View/Tabbed.tpl

Someone who can help me?
 ???/Örjan










Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom version of the Profile View screen issue
July 01, 2008, 10:39:51 am
Based on the Custom Templates Directory value you've reported from debugging, your custom version of Tabbed.tpl should be in the following location. Please verify. Also verify that you are using a current version of CiviCRM (2.0.4)

/var/www/civicrm_custom/CRM/Contact/Page/View/Tabbed.tpl
Protect your investment in CiviCRM by  becoming a Member!

orjantorang

  • Guest
Re: Custom version of the Profile View screen issue
July 01, 2008, 11:43:43 pm
I'm using civiCRM 2.0.
I created the missing folders (.../CRM/Contact/Page/View/) and put Tabbed.tpl there and it worked. Great!

It was not obvious to me that it should be like that. Have I misunderstood the intruction or has somthing gone wrong?
Dont put any engergy to this question for my sake, my problem is solved.

Thanks a lot!
 :)/Örjan

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Custom version of the Profile View screen issue

This forum was archived on 2017-11-26.