Tags
No tags for this article
Rate this article
3.00
  • email Email to a friend
  • print Print version
  • Plain text Plain text
Browsing: Home » How-Tos

Themes and templates testing

How-to test your design in progress without disturbing your live site

Creating new design on your live site is usually unacceptable. Here is a short insight on how Vivvo can help you test your work without disturbing your live site.

First of all you must have Vivvo administrator privileges to complete this testing.

Theme testing:

You should create your new theme for your site in separate folder in themes/ (i.e. my_new_theme).

Disable CSS compression in index.php (line 82) by adding PHP comment mark:

PHP Code:

//  define ('VIVVO_CSS_COMPRESOR', VIVVO_THEME . 'css/compress.php?css,');

Point your browser to the page you want to test your new theme on and add following to your Location bar:

?force_theme=my_new_theme 

or if friendly URL is disbaled:

&force_theme=my_new_theme

at the end of URL. Now you should see your page with the new theme.

Context templates testing:

For an example create new article template, make some changes, and point your browser to the article page. Without changing your preferences nothing happens.

For test purposes add following to your URL:

force_template=my_test_template.tpl 

Note: your test template must correspond to the page you are viewing (category template to the category view, article template to the article view....)

You can combine this two testing methods by adding both force_theme and force_template to your URL. 

Comments (1 posted):

Tormod Guldvog on April 14, 2008
avatar
So how is this supposed to work when you want to test a new template AND theme? I get the forced theme in the current layout, it disregards the force_layout item.

You must be registered member of Vivvo.net to post a comment.