Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2017-05-05 15:24:22

gilibaus
Member
From: Italy
Registered: 2013-08-14
Posts: 92
Website

Re: txp:popup issue

How else can I mimic <txp:popup /> for browsing articles by category (i.e. all categories in all sections)?

Offline

#17 2017-05-05 15:30:25

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,395
Website GitHub Mastodon Twitter

Re: txp:popup issue

Hi gilibaus,

Are there any technical reasons preventing you from upgrading to txp 4.6.2?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#18 2017-05-05 16:20:58

gilibaus
Member
From: Italy
Registered: 2013-08-14
Posts: 92
Website

Re: txp:popup issue

Hi colak, not really, except for a few plugins that might not work properly with 4.6.2. Currently though I have neither reason nor time for upgrading. My website just works fine with 4.5.7 and I do not expect to upgrade for the foreseeable future. As for my last question, any idea?

Last edited by gilibaus (2017-05-05 16:24:22)

Offline

#19 2017-05-05 17:54:51

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,395
Website GitHub Mastodon Twitter

Re: txp:popup issue

I understand that you are looking for a way to list all articles from the current section AND category in a popup?

This will most possibly not work but it might spark some ideas.

 <select name="a" onchange="submit(this.form);">
	<option value="" selected="selected">&#160;</option>
	<option value="<txp:article custom category='<txp:category />' section='<txp:section />'><txp:article_url_title />"><txp:title /></txp:article_custom></option>
</select></p>
<noscript><div><input type="submit" value="Go" /></div></noscript>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#20 2017-05-05 20:08:53

gilibaus
Member
From: Italy
Registered: 2013-08-14
Posts: 92
Website

Re: txp:popup issue

colak wrote #305635:

I understand that you are looking for a way to list all articles from the current section AND category in a popup?

Not exactly. Please visit my website. You will find a popup whose label is “Categorie” (i.e. categories). All categories in there refer to articles on the frontpage, except one: Podcast. This category refers to articles in the podcast section (you can access it via top main menu). Now, when you select Podcast category in the popup, the result is empty although there are articles assigned to that category. How can I fix this?

Offline

#21 2017-05-06 00:28:31

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,277
Website Mastodon

Re: txp:popup issue

I know this is a small quibble, but what you refer to as a popup is actually a drop-down selection button where one is presented with a series of category choices.

Quello che si riferisce come popup è in realtà un pulsante di selezione a discesa in cui si presenta una serie di scelte di categorie.


…. texted postive

Offline

#22 2017-05-06 03:54:17

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,395
Website GitHub Mastodon Twitter

Re: txp:popup issue

gilibaus wrote #305638:

Not exactly. Please visit my website. You will find a popup whose label is “Categorie” (i.e. categories). All categories in there refer to articles on the frontpage, except one: Podcast. This category refers to articles in the podcast section (you can access it via top main menu). Now, when you select Podcast category in the popup, the result is empty although there are articles assigned to that category. How can I fix this?

Excuse the obvious question. It looks like you have a section and a category called podcast. The section is showing just fine but did you allocate those articles to the podcast category?

If you did, could you grand one of us a temporary access to the admin side of your site to check what might be going wrong?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#23 2017-05-06 08:46:55

gilibaus
Member
From: Italy
Registered: 2013-08-14
Posts: 92
Website

Re: txp:popup issue

colak wrote #305640:

Excuse the obvious question. It looks like you have a section and a category called podcast. The section is showing just fine but did you allocate those articles to the podcast category?

I confirm there is both a section and a category called podcast. I also confirm all articles in podcast section have been allocated to podcast category.

Offline

#24 2017-05-06 08:51:07

gilibaus
Member
From: Italy
Registered: 2013-08-14
Posts: 92
Website

Re: txp:popup issue

Hi @colak, just sent you an email with website access credentials. Thanks for your help.

Offline

#25 2017-05-06 08:58:59

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,395
Website GitHub Mastodon Twitter

Re: txp:popup issue

I’m on it:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#26 2017-05-06 09:16:39

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,395
Website GitHub Mastodon Twitter

Re: txp:popup issue

I think that I worked out where the problem is but I need some suggestions on how to solve it.

It seems that article_lists including those which list articles under the ?c=podcast category are handled by the default page BUT, the podcast section (and its articles) is set NOT to appear on the front page.

This situation allows the articles to appear under the section’s page site.tld/podcast/, but not on the category page.

Does anyone have any idea on how to get that category listing?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#27 2017-05-06 09:54:34

etc
Developer
Registered: 2010-11-11
Posts: 5,689
Website GitHub

Re: txp:popup issue

If pagination is not required, you can replace <txp:article /> with <txp:article_custom /> (with probably some extra attributes/conditionals):

<txp:if_category>
    <txp:article_custom category='<txp:category />' />
<txp:else />
    <txp:article />
</txp:if_category>

Offline

#28 2017-05-06 09:59:03

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,395
Website GitHub Mastodon Twitter

Re: txp:popup issue

etc wrote #305647:

If pagination is not required, you can replace <txp:article /> with <txp:article_custom /> (with probably some extra attributes/conditionals):

<txp:if_category>...

Nice idea… This code would of course need to be added in the default page. gilibaus… what do you think?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#29 2017-05-06 11:11:58

gilibaus
Member
From: Italy
Registered: 2013-08-14
Posts: 92
Website

Re: txp:popup issue

colak wrote #305648:

Nice idea… This code would of course need to be added in the default page. gilibaus… what do you think?

Just gave it a try, seems to work! Some tweaking required as far as pagination is concerned. Thanks colak and etc for your support.

Offline

#30 2017-05-06 15:29:28

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,395
Website GitHub Mastodon Twitter

Re: txp:popup issue

gilibaus wrote #305650:

Just gave it a try, seems to work! Some tweaking required as far as pagination is concerned. Thanks colak and etc for your support.

There is of course the etc_pagination plugin but you will need a version which works on txp 4.5.7.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB