Loading...
 
Skip to main content

History: AdminCategoriesQuickFix

Preview of version: 10

Quick-Fix for Admin Categories Formatting Issue

METHOD 1


In templates/tiki-admin_categories.tpl change the following:

On Line 19: <div class="tree" id="top">

Change that to <div class="tree">

For this method I edited the template that is used to display the page tiki-admin_categories.php. I just removed the id="top" from the <div> tag, and doing that just removed the styling that was pushing the category navigation section off to the left side of the page. It now centers the category navigation section at the top of the page, while keeping it in the same style.

METHOD 2


In templates/tiki-admin_categories.tpl change the following:

On Line 19: <div class="tree" id="top">

Change that to <div class="cbox">


AND

On Line 20: <div class="treetitle">

Change that to <div class="cbox-title">


For this method I just edited the template to make the category navigation section of the page use the same style as the rest of the boxes on the page.

THE NOT-QUICK FIX


You can go into the .css file for a theme and edit the two styles:

div.tree

AND

div.tree#top

But if you want to change it in the .css files, you'll have to make the changes in the styles/whateverstyle.css file for each and every theme you want to use.

TIPS ABOUT EDITING TEMPLATES


The template used to display a page in Tiki always has a name matching the name of the .php file that generates the page. In this example, tiki-admin_categories.tpl is used to diplay the page tiki-admin_categories.php.

Editing the template like I did in this example changes the way the page looks in all themes, except in specific themes that use a modified version of the template (which would be stored in templates/styles/themename/tiki-whatever_template.tpl).

The template I editied in this example, templates/tiki-admin_categories.tpl, is used by default in all of the standard tiki Themes so it corrects the formatting in all themes without having to mess around in all the .css files.



Let me know if you need more help, I'm happy to help out any time I can.

Colorado

History

Information Version
colorado 11
View
colorado 10
View
colorado 9
View
colorado 8
View
colorado 7
View
colorado 6
View
colorado 5
View
colorado 4
View
colorado 3
View
colorado 2
View
colorado 1
View