Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-08-15 07:42:23

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

[SOLVED] individual articles navigation

this is new. I am getting an error with the navigation tags when in debug

The code

github.com/colak/neme/blob/master/pages/blog.tpl#L236

<txp:article section="blog" status="live" c10="">
<div class="clear">&nbsp;</div>
<nav class="paginator" aria-label="page_nav">
<txp:variable name="prev1" value='<txp:link_to_prev />' />
<txp:if_variable name="prev1" value="">
<div class="prev">&nbsp;</div>
<txp:else />
<div class="prev noprint"><txp:link_to_prev>&#8666; <txp:title /></txp:link_to_prev></div>
</txp:if_variable>
<txp:variable name="next1" value='<txp:link_to_next />' />
<txp:if_variable name="next1" value="">
<div class="prev noprint">&nbsp;</div>
<txp:else />
<div class="next aright noprint"><txp:link_to_next><txp:title /> &#8667;</txp:link_to_next></div>
</txp:if_variable>
</nav>
</txp:article>

The error:

Textpattern Notice: Unknown tag attribute: section. while parsing form None on page Blog

The backtrace

textpattern/lib/txplib_misc.php:1686 trigger_error()
textpattern/lib/txplib_publish.php:862 lAtts()
textpattern/publish.php:1133 filterAtts()
textpattern/publish.php:1197 doArticle()
textpattern/publish.php:920 parseArticles()
article()
textpattern/vendors/Textpattern/Tag/Registry.php:141 call_user_func()
textpattern/lib/txplib_publish.php:541 Textpattern\Tag\Registry-&gt;process()
textpattern/lib/txplib_publish.php:447 processTags()
textpattern/publish/taghandlers.php:3838 parse()

The actual result

The navigation appears to be working just fine


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

Offline

#2 2020-08-15 07:53:16

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

Re: [SOLVED] individual articles navigation

colak wrote #325355:

this is new. I am getting an error with the navigation tags when in debug

<txp:article section="blog" status="live" c10="">...

Try replacing it with article_custom, <txp:article /> does not accept section attribute but reads it from the context.

Offline

#3 2020-08-15 08:05:27

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

Re: [SOLVED] individual articles navigation

etc wrote #325358:

Try replacing it with article_custom, <txp:article /> does not accept section attribute but reads it from the context.

Hi Oleg
That change unfortunately returns multiple articles.


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

Offline

#4 2020-08-15 08:07:06

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

Re: [SOLVED] individual articles navigation

Then remove section attribute, useless anyway?

Offline

#5 2020-08-15 08:12:28

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

Re: [SOLVED] individual articles navigation

etc wrote #325364:

Then remove section attribute, useless anyway?

Same result:(


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

Offline

#6 2020-08-15 08:20:39

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

Re: [SOLVED] individual articles navigation

colak wrote #325365:

Same result:(

Actually reverting it to article and deleting the section attribute appears to be solving the issue but I’ll do more testing.


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

Offline

#7 2020-08-15 08:30:12

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

Re: [SOLVED] individual articles navigation

colak wrote #325367:

Actually reverting it to article and deleting the section attribute appears to be solving the issue but I’ll do more testing.

That

Offline

Board footer

Powered by FluxBB