Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[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"> </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"> </div>
<txp:else />
<div class="prev noprint"><txp:link_to_prev>⇚ <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"> </div>
<txp:else />
<div class="next aright noprint"><txp:link_to_next><txp:title /> ⇛</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->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
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
Re: [SOLVED] individual articles navigation
etc wrote #325358:
Try replacing it with
article_custom
,<txp:article />
does not acceptsection
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
Re: [SOLVED] individual articles navigation
Then remove section
attribute, useless anyway?
Offline
Re: [SOLVED] individual articles navigation
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
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
Offline