Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-15 03:48:48

damienbuckley
Member
From: Brisbane, QLD, AU
Registered: 2006-02-24
Posts: 138
Website

Browse Categories not outputting any data

I’m testing Textpattern using this site – http://www.testing.propellerglobal.com/TXP/

I’ve set up articles using a variety of categories and neither the browse menu in the left column or the list to category link displayed in my directory articles (http://www.testing.propellerglobal.com/TXP/Directory/13/renees-upmarket-resort – click Accommodation link) are outputting any info – I just get a blank content area as if there were no articles or categories to list.

I’ve checked and I have the search_results form and both default and archive pages have the <txp:article > tags as all the documentation seems to suggest are used.

Any ideas what I’m doing wrong?

UPDATE:- I’ve found that these categories when searched or browsed will only display if the section is set to display on the home page – and I dont want these articles on the home page. Again, any ideas?

Here’s the trace;

<!— Runtime: 0.0617 —>
<!— Query time: 0.024484 —>
<!— Queries: 21 —>
<!— Memory: no info available —>
<!— txp tag trace:
[SQL (0.000660): select name from `txp_txp_lang` where lang=‘en-gb’ limit 1]
[SQL (0.009022): select name, data from `txp_txp_lang` where lang=‘en-gb’ AND ( event=‘public’ OR event=‘common’)]
[SQL (0.003788): select name, code from `txp_txp_plugin` where status=‘1’]
[SQL (0.000765): select * from `txp_txp_prefs` where name=‘mem_self_admin_email’]
[SQL (0.000421): select * from `txp_txp_prefs` where name=‘mem_self_admin_name’]
[SQL (0.000383): select * from `txp_txp_prefs` where name=‘mem_self_new_user_priv’]
[SQL (0.000656): select * from `txp_txp_section` where name = ‘default’ limit 1]
[SQL (0.000484): select host from `txp_txp_log` where ip=‘59.167.127.104’ limit 1]
[SQL (0.000448): insert into `txp_txp_log` set `time`=now(),page=’/TXP/?c=Accommodation’,ip=‘59.167.127.104’,host=‘59.167.127.104’,refer=’‘,status=‘200’,method=‘GET’]
[SQL (0.000376): select user_html from `txp_txp_page` where name=‘newdefault’]
[Page: newdefault]
<txp:css/>
<txp:page_title/> [SQL (0.000547): select title from `txp_txp_category` where name=‘Accommodation’ and type=‘article’]
<txp:link_to_home> <txp:sitename/>
</txp:link_to_home>
<txp:site_slogan/>
<txp:section_list break=“li” wraptag=“ul” /> [SQL (0.000893): select name,title from `txp_txp_section` where name != ‘default’ order by name]
<txp:linklist wraptag=“ul” /> [SQL (0.000463): select Form from `txp_txp_form` where `name` = ‘plainlinks’ limit 1] [Form: plainlinks] [SQL (0.000462): select * from `txp_txp_link` where 1 order by linksort ]
<txp:search_input label=“Search” wraptag=“p” section=“search” /> [SQL (0.000308): select form from `txp_txp_form` where `name` = ‘search_input’ limit 1]
<txp:popup type=“c” label=“Browse” wraptag=“p” section=“search” /> [SQL (0.000814): select name,title from `txp_txp_category` where name != ‘default’ and type=‘article’ order by name]
<txp:feed_link label=“RSS” />
<txp:feed_link label=“Atom” flavor=“atom” />
<txp:article/> [SQL (0.000510): select name from `txp_txp_section` where on_frontpage != ‘1’] [SQL (0.000687): select count(*) from `txp_textpattern` where 1 and Status=‘4’ and Posted < now() and ((Category1=‘Accommodation’) or (Category2=‘Accommodation’)) and Section != ‘About’ and Section != ‘Directory’] [SQL (0.000858): select *, unix_timestamp(Posted) as uPosted from `txp_textpattern` where 1 and Status=‘4’ and Posted < now() and ((Category1=‘Accommodation’) or (Category2=‘Accommodation’)) and Section != ‘About’ and Section != ‘Directory’ order by Posted desc limit 0, 10] [SQL (0.000311): select Form from `txp_txp_form` where `name` = ‘default’ limit 1] [Form: default]
<txp:if_individual_article> [<txp:if_individual_article>: false]
</txp:if_individual_article>
<txp:if_article_list> [<txp:if_article_list>: true] <txp:older> </txp:older> <txp:newer> </txp:newer>
</txp:if_article_list>
<txp:email email=“info@propellerglobal.com” linktext=“Email” title=“Email Me” />
[ —- secondpass —- ] —>

Last edited by damienbuckley (2006-03-15 06:49:43)

Offline

#2 2006-03-16 20:14:43

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

Re: Browse Categories not outputting any data

damienbuckley wrote:

UPDATE:- I’ve found that these categories when searched or browsed will only display if the section is set to display on the home page – and I dont want these articles on the home page. Again, any ideas?

Would this help you?

Offline

#3 2006-03-17 00:01:39

damienbuckley
Member
From: Brisbane, QLD, AU
Registered: 2006-02-24
Posts: 138
Website

Re: Browse Categories not outputting any data

Thanks, but not really. What I dont understand is why the textpattern Browse drop down (and category lists) will only display articles that are in a section set to display on the home page. This seems completely counter-intuitive to me but then I’m new to CMS’s.

Even when I’ve used Textpatterns tag generator to generate this – <txp:category_list category=“hope-for-the-future” wraptag=“ul” break=“li” />

the list; lists ALL categories (not articles in those categories) – and not just the one specified (hope for the future) – and if I set the ‘articles’ section not to display on the home page, the list is still there but the links dont link to anything. Bizarre. One would think that a list of categories would bring up articles from that category regardless of whether they are displayed on the home page or not. This seems a major flaw in TXP’s category handling to me.

And in this instance I’m working on a clean install – I started a new one to see if it was something I or the plugins I had installed in the previous one were the problem but these issues are there right from the get go.

Offline

#4 2006-03-17 00:25:38

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

Re: Browse Categories not outputting any data

Thanks, but not really. What I dont understand is why the textpattern Browse drop down (and category lists) will only display articles that are in a section set to display on the home page. This seems completely counter-intuitive to me but then I’m new to CMS’s.

The category_list and popup category tags don’t display articles. They just display links. Those links are to the front page, with the ?c=foo category parameter.

You can manually link to a category list within a particular section, if you want: <txp:category link=1 name="mycat" section="mysec" />. For lists, there are plugins.


Alex

Offline

#5 2006-03-17 15:45:31

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Browse Categories not outputting any data

Have you tried setting the sections to display on the front-page but not be selected by default?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#6 2006-03-17 23:51:02

damienbuckley
Member
From: Brisbane, QLD, AU
Registered: 2006-02-24
Posts: 138
Website

Re: Browse Categories not outputting any data

I ditched the browse menu altogether and used the cbs_category_list plugin. Works fine now.

By the way, excellent tutorial on Horizontal Nav, Bombsite. NIce one ;)

Last edited by damienbuckley (2006-03-17 23:54:58)

Offline

Board footer

Powered by FluxBB