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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Microdata Implementation
Pages: [1]

Author Topic: Microdata Implementation  (Read 2036 times)

ironicsky

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 1.7.3
  • MySQL version: 5
  • PHP version: 5
Microdata Implementation
February 27, 2012, 01:21:02 pm
I am looking to implement Microdata, specifically schema.org on my civicrm based joomla site, as I have done on a lot of my Wordpress based sites. However, I am stumped as to where CiviCRM is storing its template files public_html/components/com_civicrm/views/ seems to be missing a substantial amount of code, considering how complex the program is. Can anyone point me in the right direction as to where things are stored so I can make the appropriate changes?

I'd happily contribute my changes to the project once I finish them on my own site.

Thanks!
Kevin

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Microdata Implementation
February 28, 2012, 02:02:20 am
Hi,

Not too sure where civicrm is put under a joomla site, but the templates are in smarty format under the templates/CRM folder into civicrm folder.

Our chapter about templates should help you:
http://book.civicrm.org/developer/techniques/templates

Which format you want to add? on event or more? I haven't followed this topic since a few years ago, is this more used by browsers or search engines now?
X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Microdata Implementation
February 28, 2012, 03:38:57 am
Look in public_html/components/administrator/com_civicrm/civicrm/templates/ to see the original files. Be sure of course to use a custom directory for your overrides.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

ironicsky

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 1.7.3
  • MySQL version: 5
  • PHP version: 5
Re: Microdata Implementation
February 28, 2012, 09:41:38 am
Quote from: Hershel on February 28, 2012, 03:38:57 am
Look in public_html/components/administrator/com_civicrm/civicrm/templates/ to see the original files. Be sure of course to use a custom directory for your overrides.

Thank you Hershel, when you say use a custom directory for my overrides, how does that work under Smarty? My plan was to go in and just begin editing :-) Will Civicrm pick up the changes from a custom directory to override the original templates?


ironicsky

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 1.7.3
  • MySQL version: 5
  • PHP version: 5
Re: Microdata Implementation
February 28, 2012, 09:42:01 am
Quote from: xavier on February 28, 2012, 02:02:20 am
Hi,

Not too sure where civicrm is put under a joomla site, but the templates are in smarty format under the templates/CRM folder into civicrm folder.

Our chapter about templates should help you:
http://book.civicrm.org/developer/techniques/templates

Which format you want to add? on event or more? I haven't followed this topic since a few years ago, is this more used by browsers or search engines now?
X+

Thanks Xavier!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Microdata Implementation
February 28, 2012, 10:47:41 am
Quote from: ironicsky on February 28, 2012, 09:41:38 am
Thank you Hershel, when you say use a custom directory for my overrides, how does that work under Smarty? My plan was to go in and just begin editing :-)

Yes, you are not the first hacker to discover CiviCRM. But we are prepared for you. :)

Quote from: ironicsky on February 28, 2012, 09:41:38 am
Will Civicrm pick up the changes from a custom directory to override the original templates?

Yes. Check out the Directories wiki page. You can use Smarty code in your templates of course.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Microdata Implementation

This forum was archived on 2017-11-26.