kaffa / textpattern

Automatically exported from code.google.com/p/textpattern
0 stars 0 forks source link

Page number with <txp:page type="url" /> tag. #349

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

 - Devs, please trying to test using the <txp:page type="url" /> tag on a multiple pages template context. It seems that this tag doesn't render properly the first number.

- For my meta, I'm using this in order to display the correct first page number 
:

<meta name="description" content="<txp:php>

echo( (page_url(array('type'=>'pg')) == '' ? 'Page 1 - ' : 'Page 
'.page_url(array('type'=>'pg')).' - ' ) );

</txp:php>

What is the expected output? What do you see instead?

- Just display the "1" number for the first page context.

What version of the product are you using? On what operating system?

- Older one, so I'm not sure this affects the dev version.

Please provide any additional information below.

- Nothing more, see above.

Original issue reported on code.google.com by patrick....@gmail.com on 21 Dec 2012 at 9:13

GoogleCodeExporter commented 8 years ago
Error above: read <txp:page type="pg" /> instead.

Original comment by patrick....@gmail.com on 21 Dec 2012 at 9:15

GoogleCodeExporter commented 8 years ago
I'm not aware of a <txp:page> tag (it's not listed in the user documentation), 
do you mean <txp:page_url>?

As in <txp:page_url type="page" />

Original comment by flaming....@mac.com on 3 Jan 2013 at 10:35

GoogleCodeExporter commented 8 years ago
Yes.
Sorry for the error.

Cheers,

Original comment by patrick....@gmail.com on 4 Jan 2013 at 9:33