Can I display only arbitrary partial content? #356
-
Hello. For example, Best regards. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You could do this by transforming the HTML content of the publication resources to keep only the content that you need. See this other discussion for an example: #72 (comment) If you also need to display only this particular chapter, you need to change the streamer.open(
...,
onCreatePublication: { _, manifest, _, _ in
manifest = manifest.copy(
readingOrder: manifest.readingOrder.filter { link in
link.href == "p-001.xhtml"
}
)
}
) { result in |
Beta Was this translation helpful? Give feedback.
You could do this by transforming the HTML content of the publication resources to keep only the content that you need. See this other discussion for an example: #72 (comment)
If you also need to display only this particular chapter, you need to change the
readingOrder
when opening the publication with theStreamer
. ThereadingOrder
is the list of resources displayed in the navigator when reading the publication.