Template not working
Posted: 15 June 2008 02:21 PM   [ Ignore ]  
Summer Student
Avatar
Total Posts:  22
Joined  02-25-2005

I’m trying to create another template for my blog, but all I get is this..

Should look like thisin the end

(When I try to attach this to the post, then everything get messed up :(

{assign_variable:this_weblog="stupidnothings"}
{assign_variable
:this_template_group="working"}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang}" lang="{lang}">

<
head>
<
title>{exp:weblog:info weblog="{this_weblog}"}{blog_title}{/exp:weblog:info}</title>

<
meta http-equiv="Content-Type" content="text/html; charset={charset}" />

<
link rel='stylesheet' type='text/css' media='all' href='{stylesheet={this_template_group}/work_css}' />
<
style type='text/css' media='screen'>@import "{stylesheet={this_template_group}/work_css}";</style>

</
head>

<
body>

<
div id="header">
    <
div id="logo">
    </
div>
    
<
div id="menu">
<
ul>
<!--
<
li><a href="#">Home</a></li>
<
li><a href="#">Blogs</a></li>
<
li><a href="http://www.stipvoorstip.nl/gallery">Photos</a> under construction</li>
<
li><a href="about.php">About</a></li>
<
li><a href="/contact/mail.php">Contact</a></li>
-->
</
ul>
</
div>

</
div>
<!--
start page -->
<
div id="page">
    
<!--
start sidebar1 -->
<
div id="sidebar1" class="sidebar">
<!--
Place sidebar stuff here  -->    
</
div>
<!--
end sidebar1 -->

<!--
start content -->
    <
div id="content">
        <
div class="post">
  
{exp:weblog:category_heading weblog="{this_weblog}"}  
                
<h2 >{category_name}</h2>
                
{if category_description}
                
<p>{category_description}</p>
                
{/if}
  {
/exp:weblog:category_heading}
            
    {exp
:weblog:entries weblog="{this_weblog}" orderby="date" sort="desc" limit="1"}
    
<h2 class="post-title"><a href="{title_permalink={this_template_group}/comments}" title="Read the rest of the entry {title}">{title}</a></h2>
            
<
div class="post-content">

{summary}  
                
{body}

{extended}

<!-- Youtube Link -->

{if youtube != ""}
<object width="320" height="264">
<
param name="movie" value="http://www.youtube.com/v/{youtube}"></param>
<
param name="wmode" value="transparent"></param>
<
p><embed src="http://www.youtube.com/v/{youtube}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
</
object>
{/if}

Submitted on
: {entry_date format='%M %d, %Y'}<br />
--
<
br />
{related_entries id="Relatie1"}
<a href="{title_permalink=site/comments}">{title}</a><br/>
{/related_entries}
{related_entries id
="Relatie2"}
<a href="{title_permalink=site/comments}">{title}</a><br/>
{/related_entries}
{related_entries id
="Relatie3"}
<a href="{title_permalink={this_template_group}/comments}">{title}</a><br/>
{/related_entries}
{related_entries id
="Relatie4"}
<a href="{title_permalink={this_template_group}/comments}">{title}</a><br/>
{/related_entries}
{related_entries id
="Relatie5"}
<a href="{title_permalink={this_template_group}/comments}">{title}</a><br/>
{/related_entries}

<!-- end content -->
    

<!--
start sidebar2 -->
    <
div id="sidebar2" class="sidebar">
<!--
PUT SIDEBAR STUFF HERE -->        
    </
div>
<!--
end sidebar2 -->

<
div style="clear: both;">&nbsp;</div>
</
div>

<!--
end page -->
<
div id="footer">
    <
p class="legal">&copy;2007 All Rights Reserved.</p>
    <
p class="credit">Design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a></p>
</
div>
</
body>
</
html>

 Signature 

Expression Engine 1.64 on my site

Profile
 
 
Posted: 15 June 2008 10:06 PM   [ Ignore ]   [ # 1 ]  
Grad Student
Avatar
Rank
Total Posts:  76
Joined  04-25-2008

Uhm… I think you forgot to close the {weblog:entries} tag pair. I can see the opening tag:

{exp:weblog:entries weblog="{this_weblog}" orderby="date" sort="desc" limit="1"}

But I can’t see any {/weblog_entries} on the code. Maybe that’s why the fields aren’t getting parsed.

Profile
 
 
Posted: 16 June 2008 01:47 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Avatar
Total Posts:  22
Joined  02-25-2005

Yes, this was the problem. Now at least I can continue with this.

Must have looked several times at this. Thanks smile

 Signature 

Expression Engine 1.64 on my site

Profile
 
 
Posted: 17 June 2008 04:06 PM   [ Ignore ]   [ # 3 ]  
Summer Student
Avatar
Total Posts:  22
Joined  02-25-2005

Almost there, but still there is something to do. The right bar is not going where I want it (on the right side of the content wink). It must have something to do with div’s or ... I don’t know. But I really don’t know anymore.

Will attach the index and css (in .zip). Perhaps someone is more clever then I am (I’m sure there must be).

File Attachments
working_tmpl.zip  (File Size: 4KB - Downloads: 18)
 Signature 

Expression Engine 1.64 on my site

Profile
 
 
Posted: 17 June 2008 06:55 PM   [ Ignore ]   [ # 4 ]  
Research Assistant
RankRankRank
Total Posts:  928
Joined  03-25-2005

</div><!-- end content --><!-- start sidebar2 -->

</div></div> <--- add 2 div’s

<div class=sidebar id=sidebar2>This should be a sidebar (sidebar 2)


Will fix to start with

 Signature 

BKDesign Solutions - Learn XHTML and use Web Standards to build accessible websites that validate

Profile
 
 
Posted: 18 June 2008 07:08 AM   [ Ignore ]   [ # 5 ]  
Summer Student
Avatar
Total Posts:  22
Joined  02-25-2005

Thanks. Yes. I did try with 1 </div>, but obviuosly that wasn’t working. And never thought of trying a second </div>

Well, that is what I get for trying to do something I really can’t.

 Signature 

Expression Engine 1.64 on my site

Profile
 
 
Posted: 18 June 2008 08:09 AM   [ Ignore ]   [ # 6 ]  
Research Assistant
RankRankRank
Total Posts:  928
Joined  03-25-2005

Hey, yes you can. In a wee while you’ll be an EE engineer!
We all started in the same place, scratching our heads, and sometimes banging it on the desk (pad it).

You’ve accomplished a lot, keep on truckin’

Then one day the lights come on and we feel we can take on the world.

 Signature 

BKDesign Solutions - Learn XHTML and use Web Standards to build accessible websites that validate

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 60731 Total Logged-in Users: 24
Total Topics: 73197 Total Anonymous Users: 13
Total Replies: 394756 Total Guests: 429
Total Posts: 467953    
Members ( View Memberlist )
Newest Members:  rezvani63LambergbcurranChethansisiharmonijoe_carneypsykonautJitsunROPasterfredpws