Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-05-12 19:28:06
- alancampbell
- New Member
- Registered: 2006-05-09
- Posts: 8
things have just... disappeared!
Hey there,
I’m having some bother with themes. I installed Vladimir Agafonkin’s wonderful Serene theme and all was well until… well, I think I must have done something. I seem to be in a habit of buggering things up!
Now, I’ve barely change the template. The changes I’ve made were simply the addition of an image in the header form provided in the theme, changing the text in the about the author section (if you have a look, it’s on the far right to the top of the column – if you do look, please don’t take offense, it’s an in-joke between a friend and I!) and the removal of a menu item related to the ako_nav plugin.
The problem that has reared it’s ugly head is that, well, things have disappeared. There is no article list on the default page and nothing on the about page (the about page is more theme specific I guess, so ignore this for now). You can see what I mean by looking at www.saveandylamb.com – and yes, it is a bit of a joke site!
I think that I may have messed up my sections or form settings or something… Tbh, I have no clue. I know this is related to a theme but as it worked perfectly till I muddled something, I’d say that it’s not caused by the theme. You see, tags such as article etc just plain don’t work…
Any ideas folks? Sorry for being such a pillock!
Cheers, Al
Last edited by alancampbell (2006-05-12 19:29:52)
Offline
#2 2006-05-12 19:47:13
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: things have just... disappeared!
The source of the (empty) content part of your page is showing this:
<code>
<div id=“main”>
<p> </p>
</div><!— end #main —>
</code>
What textpattern tags and other code do you have in your page template in div id=“main”?
Offline
#3 2006-05-12 20:04:10
- alancampbell
- New Member
- Registered: 2006-05-09
- Posts: 8
Re: things have just... disappeared!
Well, there’s basically a bunch of TXP tags:
< txp:if_search >
< h3 >Search results< /h3 >
< ul >
< txp:article />
< /ul>
< p >< txp:search_result_count />.< /p >
< txp:else />
< txp:article listform=“excerpt” />
< /txp:if_search>
< txp:if_article_list>
< p >< txp:older>Previous< /txp:older> < txp:newer >Next< /txp:newer>< /p >
</ txp:if_article_list>
Now, I would have presumed that the article tag would do it’s normal job… however, nought happens! Very confusing…
Last edited by alancampbell (2006-05-12 20:25:06)
Offline
#4 2006-05-12 20:41:48
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: things have just... disappeared!
Did something happen to your form ‘excerpt’? What is in it?
Offline
#5 2006-05-14 08:01:24
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: things have just... disappeared!
The FAQ describes some things you should try.
There’s at least one unclosed tag in your code.
Alex
Offline
#6 2006-05-15 15:42:20
- alancampbell
- New Member
- Registered: 2006-05-09
- Posts: 8
Re: things have just... disappeared!
Hey again,
Sorry, the code posted above was missing the closing if_article_list tag:
<code><div id=“main”>
<txp:if_search>
<h3>Search results</h3>
<ul>
<txp:article />
</ul>
<p><txp:search_result_count />.</p>
<txp:else />
<txp:article listform=“excerpt” />
</txp:if_search>
<txp:if_article_list>
<p><txp:older>Previous</txp:older> <txp:newer>Next</txp:newer></p>
</txp:if_article_list>
</div><!— end #main —></code>
That’s the content of the main div. I had a look at both Blank Page and Diagnosing Template Problems FAQs but to no avail. There are no errors in Testing (nor Debug) mode which, according to the former FAQ, would suggest a syntax error; also, strangely enough, no tag trace seems to be spurted out… But again, I may just be an eejit.
From what I’ve read, the most likely problem is a niggly syntax error somewhere. Being the numpty that I am, I can’t pin-point where it is, even though it’s probably damned obvious. The strange thing is that the archive page seems to work dandy. The code in excerpt is as follows:
<code>
<h3><txp:permlink><txp:title /></txp:permlink></h3>
<txp:if_excerpt>
<txp:excerpt />
<p class=“meta”><txp:permlink>Read the full entry</txp:permlink> – <txp:comments_invite /> – posted <txp:posted /> in <txp:category1 link=“y” /> <txp:category2 link=“y” /></p>
<txp:else />
<txp:body />
<p class=“meta”><txp:comments_invite /> – posted <txp:posted /> in <txp:category1 link=“y” /> <txp:category2 link=“y” /></p>
</txp:if_excerpt>
</code>
Cheers for helping me out on this, I really do appreciate it! And by the by, sorry for taking so long to get back… Worked two 16 hour shifts over the weekend, so wasn’t in the most productive of moods!
Offline
#7 2006-05-15 21:31:05
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: things have just... disappeared!
Just a guess: are you using different page templates for the default section and section ‘article’? Is this code of yours on the page template for section ‘article’, and not on the default page template?
Offline
#8 2006-05-16 13:22:04
- alancampbell
- New Member
- Registered: 2006-05-09
- Posts: 8
Re: things have just... disappeared!
Hey there!
At the mo, both ‘article’ and ‘default’ use the same template page, the code of which is above. This really is quite weird! I tried sticking the “content” bit from the vanilla default template but… well, again no luck… and again, no error, no tag trace; would this suggest that one of the forms included before the default page is causing a problem? Again, the fact that the article section uses the same page but works is quite confusing.
I was wondering if maybe it could be a problem with the form types that I’ve set. Have a look at these below:
<code>
comments = comment
comments_display = comment
comment_form = comment
default = article
excerpt = article
files = file
head = article
header = article
Links = link
lofi = article
monthly_article = article
Noted = link
plainlinks = link
popup_comments = comment
search_results = article
sidebar = misc
Single = article
static_article = article
</code>
There wasn’t any info within the install concerning types so I justs went for article for most of them. Have a feeling that this’ll be a starting from scratch effort!
<b>EDIT</b>
I’ve tried a couple of more things to no avail: removed my .htaccess (grasping at straws, I know) and reverted the default template back to the entire old default file. It’s currently using the old template (at time of writing) so you can see what I mean here .
Would this suggest a definite config error?
Last edited by alancampbell (2006-05-16 13:27:46)
Offline
#9 2006-05-16 14:46:41
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: things have just... disappeared!
One more dumb question: I assume you checked this, but is your section ‘article’ set to be displayed on the front page?
Offline
#10 2006-05-17 00:51:13
- alancampbell
- New Member
- Registered: 2006-05-09
- Posts: 8
Re: things have just... disappeared!
Oh. Good. Lord.
Tremendously embarrassingly enough… that was it. Don’t ask me how, but somehow, despite all the effort I went to to track this bugger down, I didn’t notice the most tiny and obvious of all.
You have no idea how embarrassing this is! I’m truly sorry for wasting your time here mate, I feel like an utter fool!
Moral of the story – K.I.S.S. works!
Offline
#11 2006-05-17 06:54:41
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: things have just... disappeared!
Don’t worry, we all tend to overlook the obvious from time to time :) I’m glad we found it.
Offline
Pages: 1