Skip to content

RedTurtle/example.rtsubsites_theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is only an example Plone theme, to be used for testing in a simple way all the redturtle.subsites features.

For a complete list of the features, and for know how to configure properly Apache in front of Plone, refer to the documentation.

This is a silly Sunburst extensions with:

  • a different logo image
  • an additional image in the logo viewlet
  • a custom CSS (that make all more gray)
  • a custom JavaScript (that display "Welcome To The demo")
  • a customized main_template where the footer has been removed

Let say that you have a Plone site accessible through http://mycompany.com/ , where you didn't applied any Plone theme (so probably Sunburst base theme).

This will be your back-end URL.

Basic Sunburst view of the main site

Basic Sunburst view of the main site

If properly configured, when you access the front-end URL, you will see the new theme with all it's customizations.

The example theme, visiting the Subsite

The example theme, visiting the Subsite

You can also visit a subsite sub-sections:

The example theme, visiting a Subsite folder

The example theme, visiting a Subsite folder

As said in the documentation, the use of the Apache RequestHeader can be optional for some themes. Here how you will see the subsite if not provided properly.

The example theme, visiting the Subsite without the proper RequestHeader

The example theme, visiting the Subsite without the proper RequestHeader

As you can see, all CMF skins customization (site logo and main_template) are lost.

These theme provide a custom logo viewlet that properly use the redturtle.subsites basic ones, as described in the documentation.

You need a new logo viewlet only if you need something different from Plone standard as in this example (where we have two images in the logo).

Disabling this viewlet will show the subsite as follow:

The example theme with disabled custom logo viewlet

The example theme with disabled custom logo viewlet

Here a part of the Apache configuration file for use this theme with a subpath (http://mycompany.com/subsite):

ServerName mycompany.com
ServerAlias www.mycompany.com
ServerAdmin ...

...

RewriteEngine On

SetEnvIf Request_URI "^/subsite(.*)" SUBSITE
RequestHeader append plone_skin "redturtle.subsites.example" env=SUBSITE

RewriteRule ^/(.*) \
"http://127.0.0.1:8080/VirtualHostBase/http/%{SERVER_NAME}:80/Plone/VirtualHostRoot/$1" [L,P]
ProxyPassReverse / http://127.0.0.1:8080/

...

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

About

An example theme that simply help understanding redturtle.subsites features

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors