cjohnsonuk
I use the "include" plugin to pull the ====Content==== part of my topic pages into pages for each Chapter allowing the authors to reuse topics in chapters for different clients and include support and other information under different headings on each topic page without it showing in the Chapters.
I'd like to extract the topic content text programmatically to include as the text in help "pop ups" on a web page. I can pull the whole page content by appending &do=export_xhtml and &do=export_xhtmlbody but using the #pagesection in the url doesn't work. I tried looking at the xml but even the "wiki.getPageHTML" appears to pull the whole page, not just the section.
I could create a page for every topic that just includes an 'include' of the the content section of the associated page :
eg:
{{page>generic:authority:topics:users_linked_to_your_account#Content&inline&noheader}}
and then use this "contents only" version of the topic page as the source for my html
but I can see managing 2 copies of the page becoming a nightmare to manage.
Does anyone know if there is a way to do an equivalent to "?do=export_xhtml§ion=content&inline=1&noheader=1"?
Any suggestions as to how I can get round this appreciated...
CJ
Here's the mark up for the page that I just want to pull the ====== Content====== from:
~~NOCACHE~~
====== Topic : @@TopicName@@ ======
===== Summary =====
@@TopicSummary@@
===== Notes for this Topic =====
//Include any notes for this topic that need to be considered when creating content //
===== Usage =====
Include the **Contents** section of this page in your manual by using the code
<code>
{{page>@ID@#Content&inline&noheader}}
</code>
===== Tasks =====
View tasks relating this authority's topics
==== Outstanding ====
~~TODOLIST ns:todo completed:no~~
==== Completed ====
~~TODOLIST ns:todo completed:yes~~
==== Add New Task ====
{{page>:includes:create_task_form#Form&inline&noheader}}
===== Page Information =====
---- dataentry pageinformation ----
TopicName : @@TopicName@@
TopicStatus_ : @@TopicStatus@@
TopicTags_tags : @@TopicTags|@@
PageAuthor : @@TopicAuthor@@
OtherUsers_ : @@OtherUsers|@@
DateCreated_dt : @DATE@
PageID : @ID@
CreatedIn : @NS@
PageType : Topic
----
{{tag>[topic @@TopicTags|@@]}}
====== Content ======
// Your topic content goes here//