Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-07-10 05:40:14

ryancecilsmith
Member
Registered: 2008-07-17
Posts: 26
Website

Noob broke his own website. What did I delete?

Hi everyone,

This forum is really awesome. The FAQS and the search function have answered a lot of my questions. I’m a real noob, and I just, uhm, did something to my website. I’m not very confident in my jargon, so instead of describing, I’ll show.

This is my new website. Where did all the articles go??:

I’m not sure which code I messed up to do this. I didn’t realize it when I did it, and I can’t trace my steps back to when it happened. One time I loaded the page and there were articles’ texts on the front page, and now there aren’t.

Can someone suggest where I went wrong? A form? A page? A section? A preference? I’m not sure if this is a very vague question, or a very easy question. Thanks very much for the help.

Last edited by ryancecilsmith (2009-09-28 10:46:40)

Offline

#2 2009-07-10 06:28:23

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Noob broke his own website. What did I delete?

Hi, ryan

You probably deleted the <txp:body /> or <txp:excerpt /> tag in your default form.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2009-07-10 06:58:08

ryancecilsmith
Member
Registered: 2008-07-17
Posts: 26
Website

Re: Noob broke his own website. What did I delete?

Thanks very much for the response! I just checked the form…

This is from my default form (defaultform):

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

<p class="published"><txp:posted /></p>

<div class="entry-content">

<txp:body />
</div>

Body’s included.
And I think that’s all formatted right? It’s mostly the original default settings.

This is what I think is the relevant area within the page (that refers to the form):

<!-- center -->
	<div id="content">

<txp:if_category>
		<h2><txp:category title="1"/></h2>

		<div class="hfeed">
		<txp:article form="defaultform" listform="article_listing" limit="5" />
		</div>
<txp:else />
	<txp:if_search>
		<h2><txp:text item="search_results" />: <txp:page_url type="q" /></h2>

		<div class="divider"><img src="<txp:site_url />images/1.gif" width="400" height="1" alt="---" title="" /></div>
	</txp:if_search>
		<div class="hfeed">
		<txp:article form="defaultform" listform="article_listing" limit="5" />
		</div>
</txp:if_category>

I think something inside here must be missing? I get a little confused trying to keep track of all the if’s and else’s. Also, I’ve been investigating mostly within the center column. Is there somewhere up top that I might have done something?

Hmm, the defaultpage is also where I told it to post a twitter feed on the right column (not shown in the above code). So does that mean it must be a problem with the page? Because the Twitter feed no longer shows up in these small lists, like the homepage.

Thanks again for the help, and I hope I’m being as clear as possible!

Offline

#4 2009-07-10 08:38:40

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Noob broke his own website. What did I delete?

Did you fix it?

I see articles and a twitter feed

Offline

#5 2009-07-10 08:40:16

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Noob broke his own website. What did I delete?

can you post

  1. the contents of the article_listing form
  2. a tag trace

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#6 2009-07-11 14:45:14

ryancecilsmith
Member
Registered: 2008-07-17
Posts: 26
Website

Re: Noob broke his own website. What did I delete?

Thanks for your responses Tye and Yiannis! Sorry I went AWOL for a day with this thread.

Tye, no, it’s not fixed yet… I have a screenshot here of how the homepage used to look:

Yiannis, thanks for pointing out that TAG TRACE page, because it had a bunch of advice that I hadn’t seen before, such as deinstalling my plugins and using a neutral style sheet. Unfortunately, neither of those helped.

The tag trace is best viewed (sorry sorry sorry for not figuring out how to post it so that it would appear nicely on this forum page) on the bottom of the html for http://ryancecilsmith.com/kobe/ .

The article_listing form is:

<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>

I suspect the problem is in this form… but I don’t see it!!!!

Last edited by ryancecilsmith (2009-07-11 14:46:50)

Offline

#7 2009-07-11 16:22:16

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Noob broke his own website. What did I delete?

I added some code formatting in your posts for better readability.

You are right, there is a <txp:body /> tag missing in your article_listing listform. If you add it there however, it might not format the way you would like it. Your listform is basically returning an unordered list of articles.

My temporary suggestion for now is to delete the listform from <txp:article form="defaultform" listform="article_listing" limit="5" /> and make it into <txp:article form="defaultform" limit="5" /> which is closer to what you originally had. (?). In any case we can continue workshoping as it goes:)

Last edited by colak (2009-07-13 04:33:56)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#8 2009-07-13 03:22:08

ryancecilsmith
Member
Registered: 2008-07-17
Posts: 26
Website

Re: Noob broke his own website. What did I delete?

Thanks very much!

Yes, getting rid of the listform tag solved the problem.

I think I was confused (still am confused, but working on it… ) about what the form and listform refer to exactly. I read the Textpattern wiki pages, and the descriptions make sense, but they weren’t necessarily intuitive. For example, I figured my default page (like the front page of any blog) is a “list,” but it seems like a different kind of “list” than displaying the titles of all the articles in a category, for example. In fact, the latter seems more like a list. I was surprised to learn that Textpattern interprets tags depending on the URL, which is a distinction I didn’t expect to be automatic, but which actually makes a lot of sense.

Sorry for all those reading who don’t see the problem anymore on my website. There are still plenty of problems but the one I came here to ask is solved. I’ll be back but I hope not too soon…

Offline

#9 2009-07-13 04:37:07

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Noob broke his own website. What did I delete?

form determines to how the page will be shown when you are viewing an individual article
listform when you are in an article list
When in an article list and no listform is present txp parses form


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#10 2009-07-13 11:58:35

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Noob broke his own website. What did I delete?

ryancecilsmith wrote:

I was surprised to learn that Textpattern interprets tags depending on the URL, which is a distinction I didn’t expect to be automatic, but which actually makes a lot of sense.

Mainly just <txp:article /> and some navigation tags (<txp:older /> and <txp:newer />), and conditional tags. The phrase you’ll see in TextBook is “context-sensitive”, context being directly correlated with URL.

I figured my default page (like the front page of any blog) is a “list,” but it seems like a different kind of “list” than displaying the titles of all the articles in a category, for example. In fact, the latter seems more like a list.

On a brand-new Txp installation the default page is formatted like a blog, i.e. it lists articles and includes the entire article. Clicking on a category name brings up a list of articles by category, showing just the article title and date. But you can make either list show your choice of article elements. The key to how the <txp:article /> tag uses these different formats is using conditional tags. For example, the default Page of a new installation has two <txp:article /> tags, one in each side (the true side and the false side) of an if_category block. Each of these article tags uses a different article form.


Code is topiary

Offline

Board footer

Powered by FluxBB