Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-20 15:17:15

The Human Museum
Member
From: Toronto, Canada
Registered: 2005-11-21
Posts: 64
Website

Navigation Not Working On All Pages

First of all many thanks to everyone who’s taken the time to help me over the past few days with my redesign. I’m working with a deadline so I can’t thank you all enough.

Listed below is my index page. I wanted to have my front page static, but also provide a page that was a more traditional dates descending blog layout to allow my readers to browse. Originally I styled the index page one way and then made a new page that was for browsing. However I couldn’t get the navigation to work. So I went back and restructured the index page to allow for being both a static front page and a dynamic post list. Still no go. Then I noticed my archive page’s navigation was dead as well.

http://thehumanmuseum.com/blog/index.php – static front page
http://thehumanmuseum.com/blog/index.php?pg=1 – browse front page

However it seems I still can’t get the navigation elements to work. I’ve poured through the forums looking for hints and all I could come up with is that – no, I’m not using rss_thumbpop.

Here’s my code, and ideas?

<code>
<txp:output_form form=“head” />

<div id=“hdrimg”>
</div> <!— end of hdr img —>

<div id=“content”>

<txp:glx_if_frontpage>

<div class=“rowcontainer”>
<div class=“halfcolumn”>
<h1 style=“border:none;font-size:1.6em;”>Exhibit A: <strong>Long Hand</strong></h1>
<txp:article_custom form=“recent_long” limit=“3” category=“Long-Hand” sortby=“Posted” sortdir=“desc” listform=“recent_long” />
<p>
<txp:older>Previous</txp:older>
<txp:newer>Next</txp:newer>
</p>
</div>

<div class=“halfcolumn”>
<h1 style=“border:none;font-size:1.6em;”>Exhibit B: <strong>Visual</strong></h1>
<div class=“center”><txp:article_custom form=“recent_photo” limit=“10” category=“Photoblog” sortby=“Posted” sortdir=“desc” listform=“recent_photo” />
</div>
</div>

</div>
<div class=“rowcontainer”>

<div class=“onethirdcolumn”>
<h1>Exhibit C: <strong>Short Hand</strong></h1>
<txp:article_custom form=“recent_short” limit=“5” category=“Short-Hand” sortby=“Posted” sortdir=“desc” listform=“recent_short” />
</div>
<div class=“onethirdcolumn”>
<h1>Exhibit D: <strong>Daily Dish</strong></h1>
<div class=“center”>
<txp:article_custom form=“recent_dish” limit=“5” category=“Daily-Dish” sortby=“Posted” sortdir=“desc” listform=“recent_dish” />
</div>
</div>
<div class=“onethirdcolumn”>
<h1><strong>Minutae</strong></h1>
<ul><txp:txp_icio_us username=“thehumanmuseum” maxitems=“5” /></ul>
You can view older <a href=“http://del.icio.us/thehumanmuseum?setcount=100\”>Muinutae</a>, or follow them through <a href=\“http://del.icio.us/rss/thehumanmuseum\”>RSS</a>.

</div>
<txp:else />
<h1 style=“font-size:1.6em;”>Browse <strong>By Date</strong></h1>
<div class=“browsecolumn”>
<txp:article_custom form=“browse” limit=“5” sortby=“Posted” sortdir=“desc” />
</div>

<txp:if_individual_article>
<p>
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
<txp:link_to_next><txp:next_title /></txp:link_to_next>
</p>
</txp:if_individual_article>
<txp:if_article_list>
<p>
<txp:older>Previous</txp:older>
<txp:newer>Next</txp:newer>
</p>
</txp:if_article_list>

</txp:glx_if_frontpage>

</div>
<txp:output_form form=“footer” />
</code>


“I was born to hustle roses down the avenues of the dead.” – Charles Bukowski
The Human Museum

Offline

#2 2006-01-20 16:32:56

The Human Museum
Member
From: Toronto, Canada
Registered: 2005-11-21
Posts: 64
Website

Re: Navigation Not Working On All Pages

Alright got it working on my archive page. It seems it simply doesn’t work when there is a list of posts, so it’s an issue with the following code:

<code>
<txp:if_article_list>

<div class=“nav” style=“border-top:2px solid #f1f1f1;;background:#f5f5f5; padding-top:2px;”>
<div class=“alignleft”><txp:older>previous</txp:older></div>
<div class=“alignright”><txp:newer>next</txp:newer></div></div>

</txp:if_article_list>
</code>

Last edited by The Human Museum (2006-01-20 16:39:14)


“I was born to hustle roses down the avenues of the dead.” – Charles Bukowski
The Human Museum

Offline

#3 2006-01-20 19:11:10

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

Re: Navigation Not Working On All Pages

Possibly you need the pageby attribute.

Offline

#4 2006-01-21 04:01:01

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: Navigation Not Working On All Pages

You might check your usage of Txp:article_custom as opposed to Txp:article. The Txp:article tag generates paging statistics differently. You can seperate multiple instances of Txp:article for navigation with the “pageby” attribute.

Offline

#5 2006-01-21 21:55:03

The Human Museum
Member
From: Toronto, Canada
Registered: 2005-11-21
Posts: 64
Website

Re: Navigation Not Working On All Pages

Thanks for the tips, though i can’t seem to get any of them to solve the problem. Here’s what I’ve found trying to narrow the problem down. If I strip the default page of the <code><txp:glx_if_frontpage></code> tag and all of the styling to make it a static front page and leave this it works fine:
<code>
<txp:output_form form=“head” />

<div id=“hdrimg”>

<img src=“http://thehumanmuseum.com/blog/images/header.jpg”>

</div> <!— end of hdr img —>
<div id=“stripe”></div>
<div id=“content”>

<h1 style=“font-size:1.6em;”>Browse <strong>By Date</strong></h1>
<div class=“browsecolumn”>
<txp:article form=“default” limit=“4” listform=“browse” />
</div>

<txp:if_article_list>

<div class=“nav” style=“border-top:2px solid #f1f1f1;;background:#f5f5f5; padding-top:2px;”>
<div class=“alignleft”><txp:older>previous</txp:older></div>
<div class=“alignright”><txp:newer>next</div></div>

</txp:if_article_list>

</div>
<txp:output_form form=“footer” />
</code>

With that the page works fine allowing for a navigable page of posts. So, I decided to make a new page called “home” to place all of the code that used to style the static first page, then I made this new page, “home”, the default page at the top of the “sections” tab in the admin. I then made a new section called “browse” and called the stripped down “default” page as it’s main page, not changing any of the code (listed above) – and it broke – no posts were displayed. I then changed the article call to: <code><txp:article_custom form=“default” limit=“4” section=“article” sortby=“Posted” sortdir=“desc” listform=“browse” /></code> amd the posts showed, but the navigation does not.
I’m lost, and trust me I’ve looked all through the forums and documentation – but not knowing what I’m looking for to fix it, I’m still left looking for help. I hope that narrows the problem down a bit though. I want to call the default page from the “browse” section and call my “home” page as the default page for the site – and have everything work the way it’s supposed to.

Last edited by The Human Museum (2006-01-21 22:08:22)


“I was born to hustle roses down the avenues of the dead.” – Charles Bukowski
The Human Museum

Offline

#6 2006-01-21 22:22:39

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

Re: Navigation Not Working On All Pages

Looking at what is happening, I think it is very likely that the use of article_custom tags instead of article tags is indeed influencing the functioning of the older and newer tags. And you do need article_custom to show other sections’ articles in your section ‘browse’.
I’d suggest considering a plugin, I use rsx_page_number myself, but there is also ob1_googlenav.

Offline

#7 2006-01-21 22:35:27

The Human Museum
Member
From: Toronto, Canada
Registered: 2005-11-21
Posts: 64
Website

Re: Navigation Not Working On All Pages

I tried rsx page but it didn’t work either, I haven’t tried googlenav…


“I was born to hustle roses down the avenues of the dead.” – Charles Bukowski
The Human Museum

Offline

#8 2006-01-21 22:54:04

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Navigation Not Working On All Pages

There are some tips in the FAQ that might help.


Alex

Offline

#9 2006-01-21 22:57:22

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

Re: Navigation Not Working On All Pages

Have you tried adding <txp:article pgonly="1" limit="4" />? After <txp:if_article_list>, but before <txp:newer> and <txp:older>.

Offline

#10 2006-01-22 06:00:28

The Human Museum
Member
From: Toronto, Canada
Registered: 2005-11-21
Posts: 64
Website

Re: Navigation Not Working On All Pages

Yeah I tried that. I also read those FAQ sections, no errors are reported on debugging, and this was my Tag Trace:

Tag Trace

It’s all greek to me – anyone see any problems?

Last edited by The Human Museum (2006-01-22 06:10:08)


“I was born to hustle roses down the avenues of the dead.” – Charles Bukowski
The Human Museum

Offline

#11 2006-01-22 12:07:34

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

Re: Navigation Not Working On All Pages

I’m not very good at reading tag traces :( hopefully someone else will have a look.
Just one thing: did you try disabling the plugins you are using? I know you are not using rss_thumbpop, but you never know if the other ones might not have similar issues.

Last edited by doggiez (2006-01-22 12:07:51)

Offline

#12 2006-01-22 16:33:01

The Human Museum
Member
From: Toronto, Canada
Registered: 2005-11-21
Posts: 64
Website

Re: Navigation Not Working On All Pages

yep, I tried that as well. Thanks for all your help, I appreciate it.


“I was born to hustle roses down the avenues of the dead.” – Charles Bukowski
The Human Museum

Offline

Board footer

Powered by FluxBB