Hi,
Following my answer to the previous topic, you have answered to some questions and I could detail many points into the answer, here we follow the not solved points.
There are three point of this topic which are pending even if I suppose to know how to do.
- Add endpoint using add_rewrite_endpoint seems easy
- Add query value add_rewrite_tag we can get the new query arg [‘section’]
- Before the analyse of query : read data into post_meta for the post called by slug into the url (using %post_name%),and set the determined query value for the new query arg
An help by reference to an example found into one of the current plugins should be welcome.
It seems well that there is no hack finally and only a plugin to hold the question (see note), because I could cut the constraints linking the development to other plugins or to the core.
Thanks
Best regards
Trebly
_____________________________________________________________________
Note : About the plugin being developed
Functions of the new plugin defined by the interface
With the use of the new plugin which will handle shortcode to define a “section” into a document (replaces with backward compatibility the concept of pages of content) and makes valid links to fragments of multipage post (name newly “section divided”. The shortcode handled and the links syntax becomes :
Inside a document
Example :
---------
<!--nextpage-->[NEWSECTION name="overview" title="Section 2 : First part : Overview"]
Formal:
------
[NEWSECTION name="<section_name>" title="<title>"]
the <!--nextpage--> will remain for backward compatibility of edit and
several plugins (show the change of section or navigation which is offered
also with a table of content fully compatible with the plugin "Table of
paginated content")
The internal links syntax to fragments become :
-----------------------------------------------
<a href="/section_name/#<fragment identifier>" > ... </a>
External call by url to multi-section document fragment become :
---------------------------------------------------------------
[permalink]/section/<section_name>/#fragment_identifier
Data about post sections are accessible into post_meta
This intends to solve the problem of the long documents which are designed to be red sequentially but need to be “sectioned” (paginated) with the support of internal links to fragment of the whole document and external links to fragment of the document (addressed into sections by full url with fragment identifier).