This topic was marked solved by its starter, on May 9th, 2014, 02:16 PM

Leftie

  • Atomic Wedgie
  • I don't know what I'm doing, just roll with it.
  • Posts: 24
Post templates?
« 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.
Never underestimate the power of stupid people in large groups

CerealGuy

  • Posts: 343
Re: Post templates?
« Reply #1, on May 8th, 2014, 05:53 PM »
Can you give us an example of the post/blog entry?

Leftie

  • Atomic Wedgie
  • I don't know what I'm doing, just roll with it.
  • Posts: 24
Re: Post templates?
« Reply #2, on May 8th, 2014, 10:15 PM »
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, 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.

CerealGuy

  • Posts: 343
Re: Post templates?
« Reply #3, on May 9th, 2014, 12:15 AM »
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.

Leftie

  • Atomic Wedgie
  • I don't know what I'm doing, just roll with it.
  • Posts: 24
Re: Post templates?
« Reply #4, on May 9th, 2014, 02:16 PM »
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 :)