Results 1 to 9 of 9

Thread: How create a Static Pages?

  1. #1
    Join Date
    Jun 2014
    Posts
    5

    Default How create a Static Pages?

    Hi,
    I'd like to create a "event page" for marketing purpose.
    this page will simply describe how the site promo event goes.

    Anyone can tell me how to create a static page?
    eg. http://www.cowtoday.info/privacypolicy
    i need another one: http://www.cowtoday.info/event

    my site: http://www.cowtoday.info/

    Thanks in advance

  2. #2
    Join Date
    Mar 2012
    Posts
    16

    Default

    You can create new php/tpl files:
    Code:
    <?php
    include("include/config.php");
    include("include/functions/import.php");
    $thebaseurl = $config['baseurl'];
    
    $templateselect = "event.tpl";
    $pagetitle = "$lang[fooBar]";
    STemplate::assign('pagetitle',$pagetitle);
    
    //TEMPLATES BEGIN
    STemplate::assign('error',$error);
    STemplate::display('header.tpl');
    STemplate::display($templateselect);
    STemplate::display('footer.tpl');
    //TEMPLATES END
    ?>
    Code:
    <div id="wrapper">
    <div class="post" style="text-align:center;">
    <h3 style="margin: auto;padding: 10;font-size: 14pt;">Events/h3>
    </div>
       
    <div class="clear"></div>
            
    <div class="post">
    <p style="padding: 10px;">
     Some content will go here
     </p>
    </div>
    </div>
    Of if you want to go the admin panel route, I'd start with the settings_static.php file. Hope this helps.

  3. #3
    Join Date
    Jun 2014
    Posts
    5

    Default

    Thanks a million, cwood119

  4. #4
    Join Date
    Nov 2014
    Posts
    2

    Default

    Thanks to the people who commented as they helped alot to me.

  5. #5
    Join Date
    Aug 2015
    Posts
    2

    Default

    Hi All

    Where do we put this code ?

    Cheers



    Quote Originally Posted by cwood119 View Post
    You can create new php/tpl files:
    Code:
    <?php
    include("include/config.php");
    include("include/functions/import.php");
    $thebaseurl = $config['baseurl'];
    
    $templateselect = "event.tpl";
    $pagetitle = "$lang[fooBar]";
    STemplate::assign('pagetitle',$pagetitle);
    
    //TEMPLATES BEGIN
    STemplate::assign('error',$error);
    STemplate::display('header.tpl');
    STemplate::display($templateselect);
    STemplate::display('footer.tpl');
    //TEMPLATES END
    ?>
    Code:
    <div id="wrapper">
    <div class="post" style="text-align:center;">
    <h3 style="margin: auto;padding: 10;font-size: 14pt;">Events/h3>
    </div>
       
    <div class="clear"></div>
            
    <div class="post">
    <p style="padding: 10px;">
     Some content will go here
     </p>
    </div>
    </div>
    Of if you want to go the admin panel route, I'd start with the settings_static.php file. Hope this helps.

  6. #6
    Join Date
    Nov 2017
    Posts
    3

    Default

    thanks man, great help!

  7. #7
    Join Date
    Mar 2018
    Location
    Kraków
    Posts
    10

    Default

    Thanx for the codes need it

  8. #8
    Join Date
    Mar 2018
    Location
    USA
    Posts
    1

    Default

    I think you can use HTML

  9. #9
    Join Date
    Feb 2018
    Posts
    9

    Default

    HTML is good to use too

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •