ikiwiki/doc/forum/cutpaste.pm_not_only_file-l...

15 lines
662 B
Plaintext
Raw Normal View History

2010-08-11 10:23:04 +02:00
I'd like to use the cutpaste plugin, but not only on a file-local basis: fileA
has \[[!cut id=foo text="foo"]], and fileB does \[[!absorb pagenames=fileA]],
and can then use \[[!paste id=foo]].
Therefore, I've written an [*absorb* directive /
plugin](http://schwinge.homeip.net/~thomas/tmp/absorb.pm), which is meant to
2010-08-11 10:23:04 +02:00
absorb pages in order to get hold of their *cut* and *copy* directives'
contents. This does work as expected. But it also absorbs page fileA's *meta*
values, like a *meta title*, etc. How to avoid / solve this?
2010-08-11 10:25:17 +02:00
Alternatively, do you have a better suggestion about how to achieve what I
described in the first paragraph?
--[[tschwinge]]