Sitekit Forums

Sitekit Forums

Developer Discussion - Forum ID as a magic word

Andy Hadley

Andy Hadley

Posted on 19 August 2014

Am probably missing something, but tried to reproduce my forum using the same XSL and form, and it is posting to the wrong forum. Because this is coded into the Form. How do i get it to pick the right Forum ? ( I think you had this trouble too???)

James Delaney

AdminJames Delaney

Posted on 20 August 2014

Hi Andy,

In these forums we do the same and pass a form ID to the XSL which we then reference in our embed code like this (replacing items in square brackets as appropriate):

Then in your XSL file just reference that parameter to identify the form you want to include:

enquiryform
formid
xsl:value-of select="$qs_new_discussion_form"/
/formid
/enquiryform

Please excuse my code syntax, I'm sure you can work out where to put the angle brackets.

Andy Hadley

Andy Hadley

Posted on 20 August 2014

Thanks James, OK, so although the only difference on the form between forums is the forum ID, I need a separate form for each forum :(

Will give it a go.

James Delaney

AdminJames Delaney

Posted on 21 August 2014

We use a separate form for each of the three forums here. It works quite well and allows different fields/descriptions when necessary. Good luck.