Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-06-17 04:30:28
- rson
- New Member
- Registered: 2008-06-17
- Posts: 6
Sections On front page
Hello All, I think I have a very simple problem here, but I can not seem to get my head around it. I have searched the forums, but have not found any type of solution. So, I want to create a new section. Lets call it “my section”. I need this section to be not be on the front page so “On front page” = no. This works fine, my article does not appear on the front page but, now I need to go to a new page called “MynewPage” and this page is not static. It still needs to pull from the DB. I have all my articles linking to all the “Mynew” section, page and form but nothing is appearing on this page. (it only appears if On front page is selected yes) Am I just missing something here. I can post the code from each section, page, form if that will help. I just did not want throw a bunch of code out there because I do not think that is the issue.
Any help/examples would be greatly appreciated
Best,
Ron
Offline
Re: Sections On front page
Does your mysection
uses Page
where tag <txp:article />
exists?
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
#3 2008-06-17 11:43:11
- rson
- New Member
- Registered: 2008-06-17
- Posts: 6
Re: Sections On front page
yes it does. Sections uses page “MynewPage”
“MynewPage” Looks something like this.
<txp:article limit=“30” />
Form looks like this:
<txp:permlink><txp:title /></txp:permlink></label>
<txp:body />
and the article links to “MynewPage” but is hidden on the on front page like I mentioned. Now, all of this works when Show on front page is yes.
thanks
Offline
Offline
#5 2008-06-17 12:17:57
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Sections On front page
Maybe I’m misinterpreting you, but article_custom should display your article on the front page as it sees all articles in the db unless you restrict it, whereas txp:article is section aware.
[Edit: And, yes, checking for tag faults is never a bad thing.]
Last edited by uli (2008-06-17 12:19:34)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#6 2008-06-17 12:32:16
- rson
- New Member
- Registered: 2008-06-17
- Posts: 6
Re: Sections On front page
uli – article_custom Yes, this is what i think i was looking for! Let me give it a try when i get out of work. Thanks.
Offline
#7 2008-06-17 14:58:50
- rson
- New Member
- Registered: 2008-06-17
- Posts: 6
Re: Sections On front page
Hmm. Am I explaining myself correctly? So I am using custom_article.
<div class=“entry”>
<txp:article_custom author=“myname” category=“concepts” excerpted=“1” form=“default” limit=“30” section=“default” sort=“Title asc” status=“4” />
</div>
Now this works when I have the article on the front page, but when it is off the frontpage and the concepts category link displays blank. ugh seems like such a simple thing.
http://roncoalson.com
Offline
#8 2008-06-17 15:04:54
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Sections On front page
rson wrote:
section="default"
Section ‘default’ does not exist (it is your front page). So it should be section="mynew"
or whatever your section is named.
Offline
#9 2008-06-17 15:15:38
- rson
- New Member
- Registered: 2008-06-17
- Posts: 6
Re: Sections On front page
Yes, I have tried both my section name is concepts so my tag looks like
<txp:article_custom author=“roncoalson” category=“concepts” excerpted=“1” form=“concepts” limit=“30” section=“concepts” sort=“Title asc” status=“4” />
but still does not work. Not that it matters but you can see it here http://roncoalson.com on the left nav. “concepts”
Offline
#10 2008-06-17 15:29:30
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Sections On front page
Well, roncoalson.com/index.php?c=concepts does not display any articles, but roncoalson.com/index.php?s=concepts does. It looks to me that there are no articles in category concepts, but there are in section concepts. So what happens if you remove category="concepts"
from the tag?
Edit: ah ok. roncoalson.com/index.php?s=concepts&c=concepts also works, so there are articles in category concepts. What you need to do is change the link to category concepts in the navigation. At the moment it doesn’t show any articles because category lists use the front page by default, and the front page has a <txp:article />
tag which only displays articles from sections that are set to be displayed there.
You could do something like
<txp:category name="concepts" link="1" title="1" section="concepts" />
Last edited by els (2008-06-17 15:34:43)
Offline
#11 2008-06-17 15:38:48
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Sections On front page
Always a pleasure to watch you diagnosing, Els :)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#12 2008-06-17 16:46:11
- rson
- New Member
- Registered: 2008-06-17
- Posts: 6
Re: Sections On front page
Els >> Fixed Perfect. Thanks for all your help everyone!!
Offline
Pages: 1