[Moin-user] Including page with macros

Boerma, Remco r.boerma at drenthecollege.nl
Tue Apr 6 04:31:44 EDT 2010


Hi David, 

Didn't notice any reply to your question. From the documentation on the
macro page I'd say you're stuck, or may be use the @ME constant. 

The combination of the <<Include(...)>> and the <<NewPage(...)>> doesn't
work for your. Isn't it easier to create new pages based on a template
that includes the <<NewPage(...)>> macro with @SELF?

If you simply want to add notes (in a subpage) I'd recommend the
PageComment2 (*) macro which I use most frequently for the same purpose
- you don't even have to edit a page to add a note! 

* http://moinmo.in/MacroMarket/PageComment2 


Hope this helps, 

Remco Boerma

-----Oorspronkelijk bericht-----
Van: David Sevilla [mailto:sevillad at gmail.com] 
Verzonden: zondag 28 maart 2010 17:52
Aan: moin-user at lists.sourceforge.net
Onderwerp: [Moin-user] Including page with macros

Hello,

I am trying to have a template which allows me to quickly add notes
(as subpages) to my pages. I have put this in the template, it does
what I want:

(some instructions on how to create notes)
<<NewPage(NoteTemplate,Create new note, at SELF)>>

but I would like to put this out in a separate page (say
"NoteCreation"), so that all my new pages include this "NoteCreation"
(that would be helpful if I decide to change the instructions for
example). Now, if I put instead the code

<<Include(NoteCreation)>>

and I move the NewPage code to "NoteCreation", the effect is that the
notes are created under "NoteCreation", not the page that includes it.
Would there be a way to get this code working as I want?

Thank you,

David

------------------------------------------------------------------------
------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Moin-user mailing list
Moin-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user

------------------------------->

Vrijwaring/Disclaimer
De gegevens in dit elektronisch document en de eventuele bijlagen zijn uitsluitend bedoeld voor de geadresseerde(n). 
De informatie wordt zorgvuldig samengesteld. 
Het Drenthe College kan echter niet garanderen dat de informatie absoluut juist, volledig en tijdig overkomt via het Internet. 
Voor belangrijke beslissingen aangaande de verstrekte informatie dient u een en ander rechtstreeks bij het Drenthe College te controleren.

Website van het Drenthe College:
www.drenthecollege.nl




More information about the Moin-user mailing list