Sitekit Forums
Developer Discussion - Forum ID as a magic word
Andy Hadley
Posted on 19 August 2014
James Delaney
AdminPosted 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
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
AdminPosted 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.