Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2020-01-08 10:29:31

etc
Developer
Registered: 2010-11-11
Posts: 3,530
Website

Re: Breadcrumbs on 4.8 beta

colak wrote #320921:

Could someone post a couple of url examples and how they are represented by the tags?

It’s quite simple: to retrieve chemistry on this page

/departments/chemistry/staff/arrhenius

use

<txp:page_url type="2" />

since chemistry is the second (ltr) chunk of URL.

Offline

#22 2020-01-08 10:40:17

etc
Developer
Registered: 2010-11-11
Posts: 3,530
Website

Re: Breadcrumbs on 4.8 beta

And match="Category1=2" syntax on /departments/chemistry/staff/arrhenius means articles with Category1='chemistry'. Alternatively, if your links were of the form

/departments/?name=chemistry&role=staff&person=arrhenius

you could retrieve chemistry with

<txp:page_url type="name" />

and match Category1 against it with match="Category1=name".

Offline

#23 2020-01-08 12:04:50

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,537
Website

Re: Breadcrumbs on 4.8 beta

In your example is arrhenius corresponding to <txp:page_url type="4" /> or are these types only for sections and categories since we have article_url_title to detect the article titles? Also, Arrhenius should retire and offer his position to younger staff:)


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Offline

#24 2020-01-08 12:47:18

etc
Developer
Registered: 2010-11-11
Posts: 3,530
Website

Re: Breadcrumbs on 4.8 beta

colak wrote #320926:

In your example is arrhenius corresponding to <txp:page_url type="4" />… ?

Yes, numeric types are agnostic of their txp role.

Also, Arrhenius should retire and offer his position to younger staff:)

The government has decided he must work a little more (local retirement reform actuality).

Offline

Board footer

Powered by FluxBB