Tribiq CMS

Choose your language

7.2 Creating an Extranet Template and Content Item

You can create one Extranet Template that controls multiple Signup Models, or you can create multiple Extranet Templates. The choice is yours, but really you will only need to create multiple Extranet Templates if you want them to have different designs or layouts.

We recommend the following process:

Create a Standard Extranet Template. For now, this is likely to be a copy of your HTML-standard.tpl.php.


Paste this snippet to the top of your Base Extranet Template

<?php
$signup_model_id = getSignupModel($cID, $cVersion);
?>


Insert this snippet into your Extranet Template where you would like the Extranet Content, Forms and other areas to appear. It is likely this will come just after a content area, such as content_bodymain.inc.php.


<?php
include "templates/".$template_path."/includes/extranet/model_".$signup_model_id.".inc.php";
?>


Now, when we create our Extranet Content Items, you will notice these options:


 

Notice how you can select an Extranet Template, and also a Signup Model for your Conent Item.

Warning: Don't put Extranet Content Items in the Extranet
Be careful not to make your Extranet Content Items private. Otherwise, your site visitors will not be able to login! If you want to make registration inaccessible, then you should edit your Signup Model (next page).

 

Top of Page