Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2017-05-04 17:41:21

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

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,353

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

#13 2017-05-05 12:17:22

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

Re: txp:popup issue

gilibaus wrote #305621:

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

It is typically in your default page form, though it may vary. Note that if you do it, any ?c=some_category url access will ignore on frontpage sections settings too. Actually, <txp:popup /> just generates links to categories/sections.


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

Offline

#14 2017-05-05 12:48:43

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

Re: txp:popup issue

Ok thanks I did it:

<!-- else is this an article category list? --> <txp:if_category> <h1 >Articoli <txp:text item="category" /></span> <txp:category title="1" /></h1> <txp:article frontpage="0" form="article_listing" limit="5" /> <txp:else />

Unfortunately the result is the same i.e. when I select “Podcast” category in the <txp:popup /> dropdown, nothing shows up.

Last edited by gilibaus (2017-05-05 12:51:51)

Offline

#15 2017-05-05 13:34:34

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

Re: txp:popup issue

Ah, you are on 4.5.7? IIRC, frontpage works as described starting from 4.6.


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

Offline

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

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

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: 6,070
Website

Re: txp:popup issue

Hi gilibaus,

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


Yiannis
——————————
neme.org | hblack.net | LABS | NeMe @ github

Offline

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

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

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: 6,070
Website

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.org | hblack.net | LABS | NeMe @ github

Offline

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

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

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

Board footer

Powered by FluxBB