Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-05-03 11:57:28

gilibaus
Member
Registered: 2013-08-14
Posts: 38

txp:popup issue

In Txp 4.5.7 I have a popup selector for browsing articles by category. I also have a section called “podcast” which is set NOT to be displayed on the front page. All articles in this section have been assigned to a “Podcast” category. Now when I open the popup selector and click on Podcast category, the results page is empty even if there is a bunch of articles with that category. Is it possible to have these articles displayed just like it happens with all other categories in the popup selector? Thanks for your help.

Offline

#2 2017-05-03 13:08:22

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 7,755
Website

Re: txp:popup issue

You probably want to set frontpage="0" in the <txp:article> tag that displays your search results. By default it’s set to ‘1’ which only outputs items in sections that are set to show up on the front page.

EDIT: I’m not sure why this attribute is missing from the documentation.

Last edited by Bloke (2017-05-03 13:09:23)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2017-05-03 14:06:13

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 2,808
Website

Re: txp:popup issue

Bloke wrote #305589:

EDIT: I’m not sure why this attribute is missing from the documentation.

It was probably never in the wiki, from which the new documentation was originally lifted. Please add if missing. Cheers!

Online

#4 2017-05-03 14:24:22

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 7,755
Website

Re: txp:popup issue

philwareham wrote #305591:

Please add if missing.

Done.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 2017-05-03 14:26:40

gilibaus
Member
Registered: 2013-08-14
Posts: 38

Re: txp:popup issue

Edited the search_results form according to your suggestion, but to no avail. Is it the one where txp:popup displays its results?

Offline

#6 2017-05-04 09:23:04

etc
Developer
Registered: 2010-11-11
Posts: 2,334
Website

Re: txp:popup issue

gilibaus wrote #305594:

Edited the search_results form according to your suggestion, but to no avail. Is it the one where txp:popup displays its results?

No, it should be the default <txp:article /> tag, something like

<txp:article frontpage='<txp:if_category>0<txp:else />1</txp:if_category>' />

etc_[ query | search | pagination | date | tree | cache ]

Offline

#7 2017-05-04 13:32:13

gilibaus
Member
Registered: 2013-08-14
Posts: 38

Re: txp:popup issue

Sorry, but where should I edit the <txp:article /> tag? Thanks for your patience.

Offline

#8 2017-05-04 16:28:12

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,377

Re: txp:popup issue

Bloke wrote #305593:

Done.

When experimenting with this “new” attribute (for me), as described in the documentation, this doesn’t have any effect when outputting search results.

Offline

#9 2017-05-04 17:14:16

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 7,755
Website

Re: txp:popup issue

GugUser wrote #305622:

this doesn’t have any effect when outputting search results.

Correct. Search results are governed by the searchall setting, which ties to the ‘searchability’ setting in the Sections panel. If you’re searching, why would you want to filter out those shown on the frontpage? Use case?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#10 2017-05-04 17:39:38

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,377

Re: txp:popup issue

Bloke wrote #305623:

Correct. Search results are governed by the searchall setting, which ties to the ‘searchability’ setting in the Sections panel. If you’re searching, why would you want to filter out those shown on the frontpage? Use case?

No, I don’t want to filter anything, I don’t understand why in the documentation is written “When outputting search results…”. I interpret this as if I don’t use frontpage="0" then “only those articles with ‘Section appears on front page?’ are displayed.”

But in reality the attribute has no influence.

Offline

Board footer

Powered by FluxBB