dokufreaks / plugin-include

A DokuWiki plugin for including other wiki pages into the current one.
http://www.dokuwiki.org/plugin:include
GNU General Public License v2.0
62 stars 54 forks source link

Structured data from the included page #270

Open Juergen-aus-Zuendorf opened 3 years ago

Juergen-aus-Zuendorf commented 3 years ago

Hi,

following suggestion: If you have a page with structured data (plugin data or struct) you can include this by the "page" or "section" command into another page. Unfortunately, the structured data is lost because it belongs to the original page. My idea is that there would be a flag, perhaps called "embeddata" that decides if the structured data used from the current page or from the original page.

Best regards Juergen

Klap-in commented 3 years ago

Why are you interested in duplicated data? Sounds for me that in your solution, the same data will be included for the original page and the other page(s) with the include.

This is a duplicate of https://github.com/dokufreaks/plugin-include/issues/83?

Juergen-aus-Zuendorf commented 3 years ago

Let's have a page with struct data. My intention now is to make an aggregation on this page where I use the possibility to filter with data values of exactly this page (functionality of the struct plugin, syntax $STRUCT.<schema>.<field>$). And again, this page is then included on other pages with {{page>...}}. But at the moment on these other pages the filtering of the aggregation fails.

One concrete example is that there exist some pages with the mentioned aggregations. And these pages should be concatenated as PDF file by the bookcreator plugin. But it does not work.