Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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!
Offline
Re: txp:popup issue
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
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
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>' />
Offline
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,473
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
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,473
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
Re: txp:popup issue
Oh, oops, copy n paste error. Well spotted. I’ll fix that later, thanks.
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
#12 2017-05-04 17:49:16
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: txp:popup issue
Bloke wrote #305625:
Oh, oops, copy n paste error. Well spotted. I’ll fix that later, thanks.
Thanks to you.
Offline