Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-11-16 16:48:33
- brokenumbrella
- Member
- Registered: 2008-06-09
- Posts: 36
Some help with Mapleleaf? Default page shows everything.
Hey folks,
I hope I’m posting this in the right place. I recently used Mapleleaf for my site, and it’s going fine, except for one thing: Every section I update appears on the Default page as well. I’d like the default page to function as just a simple front page with links; not as a running commentary. What can I do?
Hope I don’t sound too obtuse. I taught myself how to do all this, and I’m sure it hasn’t all stuck with me.
Thanks so much,
rain
Offline
#2 2008-11-16 17:21:43
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: Some help with Mapleleaf? Default page shows everything.
Check your “display on front page” setting in your sections list (section tab), all articles posted to a section will show on the front page if this is set to yes.
Offline
#3 2008-11-16 18:15:57
- brokenumbrella
- Member
- Registered: 2008-06-09
- Posts: 36
Re: Some help with Mapleleaf? Default page shows everything.
Huh … That did work, but now the journal isn’t showing up at all. (The site is www.brokenumbrella.com.) I wonder what I’m doing wrong. Here’s the journal settings:
http://img65.imageshack.us/my.php?image=picture1pw1.png
Does that help at all?
Offline
#4 2008-11-17 05:09:58
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: Some help with Mapleleaf? Default page shows everything.
Still a matter of section settings. If you want an article to show on the front page the section’s settings for the section that it was posted to needs to be set to do that. You might try setting a section specifically to accomplish that to display on the front page.
Offline
#5 2008-11-18 01:13:37
- brokenumbrella
- Member
- Registered: 2008-06-09
- Posts: 36
Re: Some help with Mapleleaf? Default page shows everything.
Maybe it’s something with the code?
The page code for the ‘journal’ section looks like this:
<txp:output_form form=“head” />
<body <txp:if_category> id=”<txp:category />” </txp:if_category> <txp:else /> id=“home”>
<div id=“outerwrap”>
<div id=“wrap1”>
<txp:output_form form=“banner” />
</div> <!— end wrap1 —>
<div id=“wrap3”>
<txp:output_form form=“nav” />
</div> <!— end wrap3 —>
<div id=“wrap2”>
<div id=“content”>
<div id=“blog”>
<h3>
<txp:if_article_list>Journal</txp:if_article_list>
<txp:if_search>
Search Results
</txp:if_search>
<txp:if_individual_article>Journal</txp:if_individual_article>
</h3>
<txp:if_search>
<txp:article />
<p><txp:search_result_count />.</p>
<txp:else />
<txp:article form=“default” limit=“3” />
</txp:if_search>
<txp:if_article_list>
<p><txp:older>Previous</txp:older> <txp:newer>Next</txp:newer></p>
</txp:if_article_list>
</div>
<div id=“sidebar”>
<txp:output_form form=“sidebar” />
</div>
<div class=“clear”>.</div>
</div>
<div id=“footer”>
<txp:output_form form=“footer” />
</div>
</div> <!— end wrap2 —>
</div> <!— end outerwrap —>
</body>
</html>
Thanks again for your help. I’m sure I sound like an idiot. :)
Offline
#6 2008-11-18 02:10:29
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: Some help with Mapleleaf? Default page shows everything.
Each pass of the template is going to encounter one article tag in article_list mode (which is what your default or index page uses at first blush), the template makes no distinction as to section to display in that tag, the distinction is made in your section assignment to the “journal” page. This tag will return all entries or articles assigned to show on the front page. From what I can tell you are looking to show 1 (?), or the most recent article, from the journal section. If so, set your journal section (only) to display on the front page and reduce your article limit attribute to 1 : this instance <txp:article form=“default” limit=“3” />, the other tag returns search results for which you want a list. The returned article is still in list mode until you select an individual article, it is just a list of 1. The design BTW is set up to return 3 articles by design and return them to the journal page and section not the sites index, nothing is broken?
Last edited by rsilletti (2008-11-18 02:19:25)
Offline