Wedge
Public area => The Pub => Support => Topic started by: Leftie on May 6th, 2014, 09:29 PM
-
As in: Is there currently any way to make pre-formatted posts or blog entries?
We have certain requirements from some posts which will be posted over and over again by different authors, and it would be nice if they could simply be given a template for filling in. Is there any way of adding some more templates, short of building a plugin on my own?
And if not, where do I start? :)
I have programming experience, I just haven't touched JS or PHP to any great extent.
-
Can you give us an example of the post/blog entry?
-
Sure, here's an example: http://www.nopryl.no/smfprod/index.php?topic=5379.msg66224#msg66224
What it is, is a mission briefing, presented in the style of a five paragraph order(http://en.wikipedia.org/wiki/Five_paragraph_order), based on a METT-TC (Mission, Enemy, Terrain and weather, Troops, Time available, Civil considerations) analysis.
I didn't want to bring this up immediately, since this exact need is super-specific to us, whereas a more general approach could maybe be used for several things.
-
I think the easiest would be to create one specific for your needs.
You need a form with some Input fields like Mission, Enemy, Terrain etc?
createPost() is what you need. Try to create the form and stuff how you want, thats a great excercise :cool:.
Also to catch the post request and format it to your bbcode.
Im sure with the "real" wedge stuff someone can help you.
-
That looks like a great tip, thanks a lot.
I'll obviously have to learn a bit more of the deeper details in order to implement this, but a challenge is always good :)