DominoWiki - Feature Request: Discussion pageCreated on |
Feb 3, 2007 |
Created by |
Dave Parillo |
Status |
Submitted |
What about having a link on each page that would focus on a discussion pertianing to the "parent" page? A simple implemention might be to add:
<a href="<Computed Value>"><script type="text/javascript">document.write(LANG_FORM_FOOTER_TALK);</script></a>
to the Web\Form footer | FormFooter subform. When I tested this, I tucked it inbetween History and Index.
The computed value in the link is:
@If(@Contains(Subject; ".Discussion");
@Return("/" + dbPath + "/pages/" + Subject);
page := Subject + ".Discussion"
);
oldpage := "/" + dbPath + "/pages/" + page;
newpage := "/" + dbPath + "/wiki?openForm&page=" + page;
test := @DbLookup("Notes" : "NoCache"; ""; "Pages"; page; 1);
@If(test="" | @IsError(test); newpage; oldpage)
You'd also need to add definitions for:
var LANG_FORM_FOOTER_TALK = "Discussion";
in en-gb-language.js
var LANG_FORM_FOOTER_TALK = "Discutez";
in fr-fr-language.js
var LANG_FORM_FOOTER_TALK = "Discuta";
in it-it-language.js
Taken Actions by OwnersNo actions have been taken yet.