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 »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • joomla.css
Pages: [1]

Author Topic: joomla.css  (Read 1371 times)

joommaster

  • Guest
joomla.css
June 26, 2007, 10:06:24 pm
I don't know if this is the right forum, but

I have been working with css and found in the joomla.tpl that the joomla.css is
turned off for the frontend.

This gives a different display in the backend than the frontend.

In the joomla.tpl file it says:

{* Only include joomla.css in administrator (backend). Page layout style id's and classes conflict with typical front-end css and break the page layout. *}

We would like the frontend css to look like the backend css.

I have three questions:

1. Is it possible to comment out the code that keeps the joomla.css from governing the frontend?
2. If so, how do I do that? What file, file path, code line, and code changes do I need to know?
3. What are the implications of doing this?

Here's my civi installation details:

MYSQL 5.0.24
PHP 5.2.2
Joomla! 1.0.12
CiviCRM 1.7

Thanks...

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: joomla.css
June 26, 2007, 10:17:54 pm

1. yes

2. edit templates/CRM/common/joomla.tpl and you can remove the conditional  at the top of the file, i.e.

Change:

Code: [Select]
{if ! $config->userFrameworkFrontend}
    <link rel="stylesheet" href="{$config->resourceBase}css/joomla.css" type="text/css" />
{/if}

To

Code: [Select]
<link rel="stylesheet" href="{$config->resourceBase}css/joomla.css" type="text/css" />

3. Not sure, you'll have to experiment with removing it and report back :)

thanx

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

joommaster

  • Guest
Re: joomla.css
June 27, 2007, 08:31:24 am
Making the suggested changes to the joomla.tpl so that the frontend would be linked to the joomla.css worked great. There don't appear to be any problems, but I will report back if some emerge. Thanks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • joomla.css

This forum was archived on 2017-11-26.