Loading...
 
Skip to main content

Custom CSS values which overrides chosen CSS (and are kept in database to be future-proof)

Status
Closed
Subject
Custom CSS values which overrides chosen CSS (and are kept in database to be future-proof)
Version
4.x
Category
  • Feature request
Feature
Theme: Look & feel, Styles, CSS, Theme Control Center
Profile Manager
Resolution status
Fixed or Solved
Submitted by
Marc Laporte
Volunteered to solve
Jonny Bradley
Lastmod by
Marc Laporte
Rating
(0)
Description

I pick one of the themes included in Tiki (Codex.css for example). It is almost perfect for my needs. I would like to make a few modifications, which are not appropriate to share with the Tiki project.

A- If I edit the styles/codex.css, I will have to redo my change again at each upgrade.
B- If I duplicate styles/codex.css to styles/mycustomtheme.css, I will not be taking advantage of any future enhancements to the theme.

It is not possible to put CSS information as Custom code in Site Identity.

The other benefit is to distribute css adjustments via profiles, like:
http://profiles.tikiwiki.org/site_width

1- Smarty doesn't like the curly brackets used in CSS. {literal} bla bla {/literal} could be used to get around this
2- It is not in <head> </head>

I jsut tested by putting the code below as Custom code in Site Identity and it works 😊

Image
Copy to clipboard
{literal} <style type="text/css"> body { background-color: blue; } p { color: yellow; } </style> {/literal}



Entering CSS "as-is" with curly brackets in Site Identity and having it render as internal CSS could be a solution.
http://www.tizag.com/cssT/internal.php

or maybe a custom.css should be maintained, and cached from this data.


Related:
http://dev.tikiwiki.org/tiki-view_tracker_item.php?itemId=1014
http://dev.tikiwiki.org/tiki-view_tracker_item.php?itemId=1178

Solution

For 4.0, we have custom head code now.
Custom CSS and Custom JS fields in Tiki5

Workaround

In Tiki 3.0:
http://tikiwiki.svn.sourceforge.net/viewvc/tikiwiki?view=rev&revision=17331

Importance
9 high
Priority
45
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
1320
Created
Sunday 19 August, 2007 13:51:37 UTC
by Unknown
LastModif
Sunday 02 May, 2010 09:21:53 UTC


Show PHP error messages