News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Site pages suggestion: draw content from locked wiki page for some pages

Started by Angelina Belle, May 01, 2014, 01:25:21 PM

Previous topic - Next topic

Angelina Belle

Because some content appears both in the online documentation and in special pages of this website, it could be beneficial to ensure conformity by drawing this content from the same spot for both uses.

One suggestion is to put that content on a locked wiki page (so that only authorized team members can edit it), and use the wiki's render action to provide partial page content.

For example, http://wiki.simplemachines.org/smf/Requirements_and_recommendations/base?action=render
could provide the contents for http://download.simplemachines.org/requirements.php.
and also for the wiki page http://wiki.simplemachines.org/smf/Requirements_and_recommendations
(I made a mock-up of this here: http://wiki.simplemachines.org/smf/Requirements_and_recommendations/sandbox)
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Oldiesmann

I'll have to look and see if that's possible without resorting to frames and such. Good idea though!
Michael Eshom
Christian Metal Fans

Angelina Belle

Thanks.  Hope it helps.  I was assuming there was some php involved in those pages.  Static is faster, but can be regenerated on demand.

* No HTML, <head>, or <body> tags in that output
* The edit tags on the section headers could be suppressed with __NOEDITSECTION__. And, of course, they would only appear to team members if the page were locked.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Advertisement: