A Flexible One Column Template ¶

Now, when we run our application at  http://localhost/PlantOMatic/ we
see our template in action:

http://docs.model-glue.com/raw-attachment/wiki/Training/Section02/training02-2.png
One Column Layout

---------------------------------------------------------------------------------------------------------------------------------------------------------------------

Primary.cfm
--------------------------------------------------------------------------------------------------------------------------------------------------------------------

<!---I am a blank slate.

You should skin me with <a href="template.html">This Template</a>
--->

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

<!-- ========================================================== -->
<!--    Created by Devit Schizoper                              -->
<!--    Created HomePages http://LoadFoo.starzonewebhost.com    -->
<!--    Created Day 01.12.2006                                  -->
<!-- ========================================================== -->

<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
   <meta http-equiv="content-type" content="text/html;charset=utf-8" /
>
        <meta name="author" content="LoadFoO" />
        <meta name="description" content="Site description" />
        <meta name="keywords" content="key, words" />

        <title>PlantOMatic</title>
        <link rel="stylesheet" type="text/css" href="www/css/style.css"
media="screen" />
        <link rel="shortcut icon" href="favicon.ico" />
        <script type="text/javascript" src="www/js/textsizer.js"></script>
        <script type="text/javascript" src="www/js/rel.js"></script>
</head>

<body>

<div id="wrap">
        <div id="top">
                <h2><a href="/" title="Back to main page">Home</a></h2>
                <div id="menu">
                        <cfoutput>#navigationcontent#</cfoutput>
                        <!-- Create File: views/layout/Layout.Navigation.cfm -->
                        <ul>
                                <li><a href="/PlantOMatic" 
class="current">home</a></li>
                        </ul>
                <!-- End Create File: views/layout/Layout.Navigation.cfm -->
                </div>
        </div>
        <div id="content">
                <div style="float: right;">
                        <!-- Create File: views/layout/Layout.MessageBox.cfm -->
                        <div id="highlightnews">
                                <ul>
                                                <li class="SuccessMessage">You 
have successfully viewed a
template</li>
                                </ul>
                        </div>
                        <!-- End Create File: 
views/layout/Layout.MessageBox.cfm -->
                </div>
                <div id="left" >
                        <!-- Replace File Contents File: views/primary.cfm -->
                        <h1> My Area for content</h1>
                        <h2>Primary Content Area</h2>
                        <ul>
                                 <li>Primary Content Point</li>
                                 <li>Another Primary Content Point</li>
                                 <li>Yet Another Primary Content Point</li>
                                 <li>See Above</li>
                         </ul>
                        <!-- End Replace File Contents File: views/primary.cfm  
-->
                </div>
                <div id="right">
                        <!-- Create File: views/secondary.cfm -->
                        <ul id="nav">
                                <li><a href="##">Subnavigational 
Element</a></li>
                                <li><a href="##">The Next Subnavigational 
Element</a></li>
                                <li><a href="##">Another Subnavigational 
Element</a></li>
                                <li><a href="##">Even More Subnavigational 
Element</a></li>
                        </ul>
                        <!-- End Create File: views/secondary.cfm  -->
                </div>
                <div id="clear"></div>
        </div>
        <!-- Create File: views/layout/Layout.Footer.cfm -->
        <div id="footer">
                <p>Copyright 2006 LoadFoO [V1]. Designed by <a href="http://
loadfoo.org/" rel="external">LoadFoO</a>. Valid <a href="http://
jigsaw.w3.org/css-validator/check/referer" rel="external">CSS</a>
&amp; <a href="http://validator.w3.org/check?uri=referer";
rel="external">XHTML</a></p>
        </div>
        <!-- End Create File: views/layout/Layout.Footer.cfm -->
</div>

</body>
</html>



------------------------------------------------------------------------------------------------------------------------------------------------------------------------


On May 13, 3:36 pm, Dan Wilson <[email protected]> wrote:
> What step were you on in section 2?
>
> DW
>
>
>
>
>
> On Sun, May 13, 2012 at 7:11 AM, Learner <[email protected]> wrote:
> > Dear Guru's,
>
> > i just started to learn MVC in coldfusion, i followed all steps for
> > instllation now im on "Section 2: Show Me Some Skinning " i created
> > all the templates in layout when i uncomment "<!-- Uncomment:
> > #navigationcontent# -->" and i put <cfoutput>#navigationcontent#</
> > cfoutput> im getting error
>
> > Message         Variable NAVIGATIONCONTENT is undefined.
> > Detail
> > Extended Info
> > Tag Context     C:\Inetpub\wwwroot\PlantOMatic\views\primary.cfm (34)
> > C:\Inetpub\wwwroot\ModelGlue\gesture\view\ViewRenderer.cfm (6)
> > C:\Inetpub\wwwroot\ModelGlue\gesture\view\ViewRenderer.cfc (56)
> > C:\Inetpub\wwwroot\ModelGlue\gesture\eventrequest\EventContext.cfc
> > (661)
> > C:\Inetpub\wwwroot\ModelGlue\gesture\eventrequest\EventContext.cfc
> > (246)
> > C:\Inetpub\wwwroot\ModelGlue\gesture\eventrequest\phase\Invocation.cfc
> > (62)
> > C:\Inetpub\wwwroot\ModelGlue\gesture\eventrequest\EventContext.cfc
> > (155)
> > C:\Inetpub\wwwroot\ModelGlue\gesture\ModelGlue.cfc (215)
> > C:\Inetpub\wwwroot\ModelGlue\gesture\ModelGlue.cfm (58)
> > C:\Inetpub\wwwroot\PlantOMatic\index.cfm (50)
>
> > please guys help me to solve this issue i know im missing something
> > but i don't know what ....
>
> > Thanks
>
> > --
> > Model-Glue Sites:
> > Home Page:http://www.model-glue.com
> > Documentation:http://docs.model-glue.com
> > Bug Tracker:http://bugs.model-glue.com
> > Blog:http://www.model-glue.com/blog
>
> > You received this message because you are subscribed to the Google
> > Groups "model-glue" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/model-glue?hl=en
>
> --
> Plutarch - "The mind is not a vessel to be filled but a fire to be kindled."

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to