Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-03-16 19:45:40

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Articles not displaying, sections blank, slideshow not working, etc...

Hi folks,

Several issues here: http://www.fonmedia.co.uk/

Attempting to build a site for a friend after finishing my own with textpattern.

Would seriously appreciate any help given on above problems as my brain has gone to mush!

Cheers!


www.kimstewart.co.uk

Offline

#2 2011-03-16 20:01:14

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

When you view the page source, and check the tag trace at the bottom, are all the txp:if_section set up as you want them to be?

Offline

#3 2011-03-16 20:14:55

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Articles not displaying, sections blank, slideshow not working, etc...

You have a <txp:if_section name="Home"> twice, one on the page I think, and one in form ‘gallery’. For the front page you need <txp:if_section name="">.

Offline

#4 2011-03-16 22:18:52

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

Hey guys,

Thanks for input but the page source on blank sections is empty. Also, already had this on front page <txp:if_section name=”“>…

Any other ideas?


www.kimstewart.co.uk

Offline

#5 2011-03-16 22:32:52

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: Articles not displaying, sections blank, slideshow not working, etc...

Look where your second opening and closing body tags might come from.

Edit: Just read the “blank page” remark: Blank pages stem mostly from improper closing of tags.

Last edited by uli (2011-03-16 22:45:24)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#6 2011-03-16 22:57:15

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

Ok… thanks. I’ve gone over everything and can’t see tags I’ve not closed but I am quite new at all this so maybe I’ve overlooked one? Would there be any other reason? I may have had config.php setup issues as I accidentally pressed the ‘I did it’ option before actually uploading the code it generated via ftp… However, I immediately uploaded it. Could this be affecting anything?


www.kimstewart.co.uk

Offline

#7 2011-03-16 23:14:35

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: Articles not displaying, sections blank, slideshow not working, etc...

Having pressed ‘I did it’ accidentally is not part of your problem. You’ve not found the duplicate body tags, so you probably didn’t look careful enough.

E.g. in your div id="head" there’s another pair of body tags.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#8 2011-03-16 23:15:00

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

I’ve got a 404.shtml file in ftp window… also a blank .htaccess file… this is not good, is it?


www.kimstewart.co.uk

Offline

#9 2011-03-16 23:16:38

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: Articles not displaying, sections blank, slideshow not working, etc...

Do not only look at the page, take faults stemming from forms into consideration, too.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#10 2011-03-16 23:19:10

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

Could it be my head form? Trying to have a slideshow with jquery cycle lite and head looks a bit iffy (not sure how to deal with it):

—————————————————————————————————————————————————-
<div id=“head”>
<body>

<div class=“slideshow”> <txp:image id=“4” width=“700” height=“84” /> <txp:image id=“5” width=“700” height=“84” /> <txp:image id=“6” width=“700” height=“84” />

<txp:section_list wraptag=“ul” break=“li” active_class=“active” sections=“our_work, our_people, contact_us” include_default=“1” default_title=“Home”/>
</body>

</div>
—————————————————————————————————————————————————-


www.kimstewart.co.uk

Offline

#11 2011-03-16 23:28:24

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: Articles not displaying, sections blank, slideshow not working, etc...

This form contains the redundant body tags, yes.

But the blank screens are caused by section specific code.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#12 2011-03-16 23:35:54

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

Removed said redundant tags, cheers. Not seeing any relevant section specific code which could be affecting things…


www.kimstewart.co.uk

Offline

#13 2011-03-17 00:03:16

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: Articles not displaying, sections blank, slideshow not working, etc...

Please post the code edit: complete set of tags of one of the pages that come out blank and all of the forms it calls.
Name them.
Put one bc.. before a large chunk, note the trailing blank after the dots. This puts pre tags around the code which help diagnose apostrophe problems.
After code blocks you can start normal text with p. , again: note the trailing blank.

Last edited by uli (2011-03-17 00:05:06)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#14 2011-03-17 00:13:26

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

Ok… here’s the code for our_work section. All sections are using page template entitled default.

Page Template

<txp:output_form form="meta" />
<body id="<txp:if_section name="">front<txp:else /><txp:section /></txp:if_section>">

<!-- accessibility -->
<div id="accessibility">
	<ul>
		<li><a href="#content"><txp:text item="go_content" /></a></li>
		<li><a href="#sidebar-1"><txp:text item="go_nav" /></a></li>
		<li><a href="#sidebar-2"><txp:text item="go_search" /></a></li>
	</ul>
</div>

<div class="container">


<!-- head -->
  <txp:output_form form="head" />

<script type="text/javascript" src="/files/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/files/jquery.cycle.lite.1.1.js"></script> 
<script type="text/javascript" src="/files/jquery.corners.js"></script> 



<!--  initialize the slideshow when the DOM is ready -->
<script type="text/javascript">
$(document).ready(function() {
    $('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
});

</script>



<txp:js n="slideshow" />

<div id="thumbs" class="navigation">
<txp:article listform="gallery" form="gallery" sort="Posted asc" limit="1" />
<div id="content">
<div id="gallery" class="content">
<div id="slideshow" class="slideshow"></div>
<div id="controls"></div>
<div id="caption" class="embox"></div>

<txp:if_section name="Home" >
<div class="slideshow" id="slideshow1">
 <img src="<txp:http://www.fonmedia.co.uk/images/{id#1}.jpg"
     alt="{alt#1}" width="{width#1}” height=”{height#1}" />
</div>
</txp:if_section>

<!-- footer -->
	<txp:output_form form="footer" />

</div>

</body>
</html> 

Here’s article forms…

article_listing
bc.. <txp:if_first_article><ul class=“directory”></txp:if_first_article>

<li><span class=“entry-title”><txp:permlink><txp:title /></txp:permlink></span> · <span class=“published”><txp:posted format=”%Y-%m-%d” /></span></li>

<txp:if_last_article></ul></txp:if_last_article>

default:

<txp:if_individual_article>
<h1 class="entry-title"><txp:permlink></txp:permlink></h1>
<txp:else />
<h3 class="entry-title"><txp:permlink></txp:permlink></h3>
</txp:if_individual_article>

<p class="published"></p>

<div class="entry-content">
<txp:body />
</div>

<p class="tags"><txp:category1 title="1" link="1" /> <txp:category2 title="1" link="1" /></p>

gallery:

<txp:if_section name="Home" >
<div class="slideshow" id="slideshow1">
 <img src="<txp:txp:www.fonmedia.co.uk/images/{id#1}.jpg"
     alt="{alt#1}" width="{width#1}” height=”{height#1}" />
</div>
</txp:if_section>

intro:

<txp:body />

subnav:

<li<txp:rvm_if_this_article> class="active"</txp:rvm_if_this_article>><a href="<txp:permlink />"><txp:title /></a></li>

Here’s misc forms:

article_image_form:
bc.. <li><a href=”<txp:upm_img_full_url />” title=”<txp:upm_img_caption />” class=“thumb” ><img src=”<txp:upm_img_thumb_url />” alt=”<txp:upm_img_alt />” /></a>

<div class=“caption”>
<div class=“image-title”><txp:upm_img_alt /> </div>
<div class=“image-desc”><txp:upm_img_caption /></div>
</div>
</li>

footer:
bc.. <div id=“foot” >

<div align=“left”>
<div class=“span-5”>
<txp:article_custom status=“sticky” sort=“posted asc” form=“intro”/>
<p>288 A BURTON ROAD DIDSBURY</p>
<p>GREAT MANCHESTER</p>
<p>M20 2NB</p>

<div align=“center”>
<div class=“span-21”>
<p>Tel +44 7580 792703</p>

<p>glyn@fonmedia.co.uk</p>

<div align=“right”>
<div class=“span-22 last”>
<txp:article_custom status=“sticky” sort=“posted asc” form=“intro”/>
<p>Registered No. 7444194</p>

</div>
</div>
</div>

head:

<div id="head">

<div class="slideshow">
		<txp:image id="4" width="700" height="84" />
                <txp:image id="5" width="700" height="84" />
		<txp:image id="6" width="700" height="84" />

<txp:section_list wraptag="ul" break="li" active_class="active" sections="our_work, our_people, contact_us" include_default="1" default_title="Home"/>


</div>

meta:

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

<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="description" content="Fon Media Solutions" />        
<meta name="keywords" content="Fon, Media, Solutions, brief, websites, web design, videos, visual images, radio adverts, animations, UK, Glyn, Fred" />
<meta name="rating" content="general" />
<meta name="robots" content="index, follow" />
<meta name="revisit-after" content="2 weeks" />
<meta name="author" content="Fon Media Solutions" />

<title><txp:page_title /></title>
<link rel="home" href="<txp:site_url />" />

<link rel="shortcut icon" href="http://www.fonmedia.co.uk/favicon.ico" type="image/x-icon" />


<txp:feed_link flavor="atom" format="link" label="Atom" section="blog"/>
<txp:feed_link flavor="rss" format="link" label="RSS" section="blog"/>

<txp:css format="link" />


</head>

Really appreciate anyone willing to look through all this code! Please note I’ve been learning from existing textpattern templates and changing bits of code so there may well be some redundant things in here.

Last edited by kstewart (2011-03-17 00:21:12)


www.kimstewart.co.uk

Offline

#15 2011-03-17 00:17:47

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: Articles not displaying, sections blank, slideshow not working, etc...

While I look over the page’s code, please replace br.. with bc.. and put p. before each name. Thanks.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB