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) »
  • themes/look for different pages, and/or content from dynamic pages
Pages: [1]

Author Topic: themes/look for different pages, and/or content from dynamic pages  (Read 1721 times)

anniekin

  • Guest
themes/look for different pages, and/or content from dynamic pages
November 06, 2007, 10:58:34 am
Theming is a big deal for our site.
We use Drupal, which has a lot of nifty modules to help us out. We're already using CiviCRM_theme which gives us one Drupal theme for all our CiviCRM pages.

What I'd like is to be able to theme different CiviCRM pages differently. Is there an easy way to do this that I don't know about?

Knowing how to do this would be generally helpful, but my current goal, which may not really be related at all, is trying to put two pages worth of dynamic content on one page (say, a profile (directory-type) listing and a mapped version of the listing, both of which are dynamically generated and have their own URLs..) Is there an easy way to get just the content without the whole template that comes along with it?

Or, do I just need to start looking more at the APIs?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: themes/look for different pages, and/or content from dynamic pages
November 06, 2007, 12:33:23 pm

1. regarding theming specific civicrm pages, in the past we have extended/hacked the theme's template.php to use a different page based on the url. Check: http://svn.osuosl.civicrm.org/quest/trunk/themes/quest/template.php and search for 'quest_'. I think this was for drupal 4.7, so not sure if the same technique will work

2. including multiple dynamic pages in one new dynamic page is best done via code. i dont think our api's are comprehensive enough to let you do it via API calls. You will need to create a new menu item, invoke the right function which combines the two things you want to do, and probably write a new tpl.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • themes/look for different pages, and/or content from dynamic pages

This forum was archived on 2017-11-26.