Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-01-28 08:17:21

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,277
GitHub

Feedback to: Textpattern CMS 4.8.0-beta.2 released

Please provide any feedback here related to Textpattern 4.8.0-beta.2 released.

We appreciate all feedback. Please check the issue queue before raising a problem.

Offline

#2 2020-01-28 09:35:57

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

Re: Feedback to: Textpattern CMS 4.8.0-beta.2 released

On the surface, all is running as expected. I have a small (new) issue with etc_pagination but I’ll investigate it more before I post in that thread.


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

Offline

#3 2020-01-28 11:57:31

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

Re: Feedback to: Textpattern CMS 4.8.0-beta.2 released

Yiannis, etc_pagination might need to be updated or you might not need it any more. Feel free to report on plugin’s thread.

Offline

#4 2020-01-28 13:47:50

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

Re: Feedback to: Textpattern CMS 4.8.0-beta.2 released

etc wrote #321383:

Yiannis, etc_pagination might need to be updated or you might not need it any more. Feel free to report on plugin’s thread.

If I can achieve the pagination with native tags I could try that, but it is not in the documentation yet. I checked the forum and found these two posts which I will experiment with.


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

Offline

#5 2020-01-28 14:37:41

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

Re: Feedback to: Textpattern CMS 4.8.0-beta.2 released

Here is something to get you started, please test:

<nav>
    <txp:newer shift>First Page</txp:newer>
    <txp:hide process="2"><txp:newer shift="-2" link="">...</txp:newer></txp:hide>
    <txp:newer shift="2,1" break=" ">Page <txp:yield item="page" /></txp:newer>
    <txp:newer shift="0" link="">Page <txp:yield item="page" /></txp:newer>
    <txp:older shift="1,2" break=" ">Page <txp:yield item="page" /></txp:older>
    <txp:hide process="2"><txp:older shift="-2" link="">...</txp:older></txp:hide>
    <txp:older shift>Last Page</txp:older>
</nav>

And tell me however what’s wrong with etc_pagination. Thanks!

Offline

#6 2020-01-28 14:50:10

singaz
Member
Registered: 2017-03-12
Posts: 150

Re: Feedback to: Textpattern CMS 4.8.0-beta.2 released

Previously used txp: etc_query and there was such code:
<txp:etc_query data='<txp:body />' separator="|\/|" replace='h2[1]/preceding::*[1]$=<txp:output_form form="soo_toc" />|\/|p[2]$=<txp:output_form form="remark" />|\/|p[6]$=<txp:output_form form="related" />' />

Such code works in 4.8:
<txp:body separator="|\/|" replace='h2[1]/preceding::*[1]$=<txp:output_form form="soo_toc" />|\/|p[2]$=<txp:output_form form="remark" />|\/|p[6]$=<txp:output_form form="related" />' />

Plugin: etc_query can be excluded?

P.S.
<txp:etc_query>
etc_query may be a container
</txp:etc_query>

<txp:body>
The <txp: body /> tag is single. For now.
</txp:body>


Sorry my horror English. I’m learning textpattern, I’m learning English

Offline

#7 2020-01-28 15:41:59

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

Re: Feedback to: Textpattern CMS 4.8.0-beta.2 released

singaz wrote #321387:

Plugin: etc_query can be excluded?

No. Global replace and trim speak regex, not xpath. You can target html nodes with regex, but this is way more tricky than xpath.

One day, if we find a simple syntax, <txp:evaluate /> could implement some xpath features (it is ready).

<txp:body>
The <txp: body /> tag is single. For now.
</txp:body>

It actually isn’t, you can test <txp:body>hehe</txp:body>. But it’s officially unsupported.

Offline

#8 2020-01-28 15:56:35

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,638
GitHub Twitter

Re: Feedback to: Textpattern CMS 4.8.0-beta.2 released

:D

Always a big fan of Oleg’s suggestions!

For a better presentation:

<nav aria-label="Page navigation" class="pagination-outer">
	<ul class="list-inline pagination">
		<txp:newer shift break="li">First Page</txp:newer>
		<txp:hide process="2"><txp:newer shift="-2" link="" break="li">...</txp:newer></txp:hide>
		<txp:newer shift="2,1" break="li">Page <txp:yield item="page" /></txp:newer>
		<txp:newer shift="0" link="" break="li">Page <txp:yield item="page" /></txp:newer>
		<txp:older shift="1,2" break="li">Page <txp:yield item="page" /></txp:older>
		<txp:hide process="2"><txp:older shift="-2" link="" break="li">...</txp:older></txp:hide>
		<txp:older shift break="li">Last Page</txp:older>
	</ul>
</nav>
<style>
.pagination-outer{
display:table;
margin:0 auto
}
.pagination li{
position:relative;
display:inline;
display:inline-block;
min-width:2em;
margin-left:-1px;
padding:.5rem .75rem;
background-color:#fff;
color:#007bff;
text-align:center;
font:normal 300 normal 1em/1.25 Arial,sans-serif;
border:1px solid #dee2e6
}
</style>

Last edited by Pat64 (2020-01-28 16:10:09)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#9 2020-01-28 17:19:41

Myusername
Member
Registered: 2019-12-12
Posts: 165

Re: Feedback to: Textpattern CMS 4.8.0-beta.2 released

I don’t know if it’s known to the developers, but the 4.8.0-beta and 4.8.0-dev demo are misaligned on the mobile. Here is a print:

Offline

#10 2020-01-28 18:38:01

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,277
GitHub

Re: Feedback to: Textpattern CMS 4.8.0-beta.2 released

Myusername wrote #321390:

I don’t know if it’s known to the developers, but the 4.8.0-beta and 4.8.0-dev demo are misaligned on the mobile.

Ah, good find. There is a difference between the 4.7 and 4.8 theme. I’ll get two side-by-side comparison screenshots.

4.8.0 beta.2

4.7.3

Opened #363 for Phil’s attention.

Last edited by gaekwad (2020-01-28 18:46:09)

Offline

#11 2020-01-29 06:16:39

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

Re: Feedback to: Textpattern CMS 4.8.0-beta.2 released

Pat64 wrote #321389:

:D

Always a big fan of Oleg’s suggestions!

For a better presentation:

<nav aria-label="Page navigation" class="pagination-outer">...

<style>...

Cold someone explain what shift="2,1" actually mean? I am experimenting with this but I am not sure how to push it beyond the example. Could we, for example have 1,2,3,...,80,81,82,...,last-3,last-2,last or is that functionality only for the etc_pagination (and similar plugins) domain?


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

Offline

#12 2020-01-29 06:22:11

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

Re: Feedback to: Textpattern CMS 4.8.0-beta.2 released

etc wrote #321383:

Yiannis, etc_pagination might need to be updated or you might not need it any more. Feel free to report on plugin’s thread.

Just to say that I think that I resolved the issue. It was, as always, my bad use of the tag:)


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