Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Problems converting a Theme


Go to End


3 Posts   2392 Views

Avatar
theharshone

Community Member, 4 Posts

26 May 2009 at 6:06am

Hello,
I am trying to convert the Widgetlike theme to SS format. Unfortunately, my admin panel has disappeared after my crappy job of converting it. So, what pieces of code should be in the Page.ss file other than $Layout?
Thanks.

Avatar
Steelx01

Community Member, 4 Posts

26 May 2009 at 7:39am

$Form

Avatar
theharshone

Community Member, 4 Posts

26 May 2009 at 6:49pm

Edited: 26/05/2009 6:56pm

So I need both $Layout and $Form? The login box shows up fine. I'll add both and see what happens. Thanks :D

Edit:: It didn't work. Perhaps my code is wrong.

this is my Page.ss:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">                                                                                
<!--                                                                                                                                                                                         

Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License

Name       : WidgetLike
Description: A two-column, fixed-width design featuring black content area background.
Version    : 1.0                                                                      
Released   : 20081016                                                                 

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>                                     
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Modi's Business Center Taxes</title>                          
<meta name="keywords" content="" />                                  
<meta name="description" content="" />                               
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
</head>                                                                      
<body>                                                                       
<div id="bg1">                                                               
        <div id="header">                                                    
                <h1><a href="#">Professional<sup>taxes</sup></a></h1>        
                <h2>By <a href="http://www.tax.modisbc.com/">Modi's Business Center</a> <!--+ <a href="http://www.freecsstemplates.org/">FreeCSSTemplates</a></h2>-->
        </div>                                                                                                                                                       
        <!-- end #header -->                                                                                                                                         
</div>                                                                                                                                                               
<!-- end #bg1 -->                                                                                                                                                    
<div id="bg2">                                                                                                                                                       
        <div id="header2">                                                                                                                                           
                <div id="menu">                                                                                                                                      
                        <ul>                                                                                                                                         
                                <% control Menu(1) %>                                                                                                                
                                                                                                                                                                     
<li>                                                                                                                                                                 
<a class="$LinkingMode" href="$Link" title="Go to $Title">$MenuTitle</a>                                                                                             
</li>                                                                                                                                                                
                                                                                                                                                                     
<% end_control %>                                                                                                                                                    
                        </ul>                                                                                                                                        
                </div>                                                                                                                                               
                <!-- end #menu -->                                                                                                                                   

        </div>
        <!-- end #header2 -->
</div>                       
<!-- end #bg2 -->            
<div id="bg3">               
        <div id="bg4">       
                <div id="bg5">
                        <div id="page">
                                <div id="content">
                                        <div class="post">
                                                <div class="title">
                                                        <h2><a href="#">$Title</a></h2>
                                                        <p>$Breadcrumbs</p>            
                                                </div>                                 
<div id="typography">                                                                  
$Content                                                                               
$Form                                                                                  

</div>
</div>

                                        </div>
                                        <div class="post">
                                                <div class="title">
                                                        <h2><a href="#"></a></h2>
                                                        <p>$Time</p>             
                                                </div>                           
                                                <!--<div class="entry">          
                                                        <p>Sed vel quam. Vestibulum pellentesque. Morbi sit amet magna ac lacus dapibus interdum. Donec pede nisl, gravida iaculis, auctor vitae, bibendum sit amet, mauris. Cras adipiscing libero et risus. Donec rutrum tempus massa. Proin at mauris <a href="#">sed elit venenatis</a> porttitor. Morbi quam nisl, fringilla quis, sagittis nec, adipiscing at, elit. Maecenas sed sem sit amet lectus mattis molestie. Integer quis eros lorem ipsum dolor sit amet veroeros consequat.</p>
                                                </div>-->
                                                <!--<div class="meta">
                                                        <p class="credit">Posted by <a href="#">Someone</a> on October 11, 2008</p>
                                                        <p class="links"><a href="#" class="comments">Comments (18)</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="#" class="more">Read more</a></p>
                                                </div>-->
                                        </div>
                                </div>
                                <!-- end #content -->
                                <div id="typography">
                                        <ul>

                                                                                        <li>
                                                        <!--<h2>Further Actions</h2>-->
                                                        <ul>
<!--                                                            <% control Menu(2) %>
<li>
<a class="$LinkingMode" href="$Link" mce_href="$Link" title="Go to $Title">$MenuTitle</a>
</li>
<% end_control %>  -->
                                                        </ul>
                                                </li>
                                        </ul>
                                </div>
                                <!-- end #sidebar -->
                                <div style="clear: both; height: 40px;">&nbsp;</div>
                        </div>
                        <!-- end #page -->
                </div>
        </div>
</div>
<!-- end #bg3 -->
<div id="footer">
        <p>(c) 2008 modisbc.com. Design by <a href="http://www.nodethirtythree.com/">nodeThirtyThree</a> + <a href="http://www.freewpthemes.net/">Free CSS Templates</a></p>
</div>
<!-- end #footer -->
</body>
</html>