Signup page component development

Mario Malafronte Posted in Component Development 4 years ago

hi, I am trying to develop a component to replace the default signup page with a layout developed by me. The problem is that I don’t understand how to make my page replace the default one, publish the code so someone with a good heart can help me find the error :) ossn_com.php:
<?php

function ucapital_signup_init(){
ossn_extend_view('css/ossn.default', 'css/style');

}

function ucapital_signup_page($pages){

switch ($pages[0]) {

    case "login":
    
    $guid                = $pages[1];
    
    $title               = ossn_print("com:ossn:signup");
    
    $contents["content"] = ossn_plugin_view("pages/signup", array(
    
    "signup" =&gt; $guid
    
    ));
    
    $content             = ossn_set_page_layout("signup", $contents);
    
    echo ossn_view_page($title, $content);
    
    break;
    
    }

}

?>
thamks

Replies
Indonesian Arsalan Shah Replied 4 years ago

Copy file plugins/default/pages/contents/index.php to your component/NameOFComponent/plugins/default/pages/contents/index.php