Table of content plus doesn't hold paginated posts : links are wrong
-
Hi,
I use “Table of Contents Plus” and just began to use too with “Wp Table of Paginated Contents” for long paginated posts.
I got the following problem with paginated posts :
The links defined into the Table are wrong for the headers that are not into the current page with paginated posts
The links from the widget “Table of Content plus” is defined in code relative to the Id"href='#<id_text_for_title_in_table>'"
.
Then the submitted url is"Site_ref?p=numpost&page=nn#id_text_title
The REQUEST
page=nn
is wrong : it is always the current displayed page while the table is relative to the whole post… so the id is unknown and the link crashesThis is a bug which comes from the fact that the table is produced for a current “post” associated with one unique url which wrong for paginated posts.
note : If you use the “table tag” into a header which is owned by one lonely “page (separated block by two Nextpage WPn tag)” you don’t get the problem.
So it seems currently impossible to get a full table of a paginated post.
It is sure that this must be changed for a future version even I have developed a solution (see note).
Best regards
Trebly
note : I have developed an enhancement which holds this problem. The “Nextpage” are treated first as “pseudo headers” and later are cleaned, then a pagenum is easily associated to the headers of the table (an id too, for future use), the link builder code is rewritten and the link generated depends of the current “page” displayed. (they are too many changes to be listed here)
- The topic ‘Table of content plus doesn't hold paginated posts : links are wrong’ is closed to new replies.