HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


piping a survey/quiz in to a page

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#104692 (In Topic #20435)
Avatar

Fan in training

Is there anyway of piping a survey/quiz in to a page? My uncle wants to add the survey is is taking for his site to the end of an article, and I can't seem to find a way of doing it.
Back to the top
 
Posted
Rating:
#104703
Avatar

Community saint

You should be able to add those with the Block Assistant in the page editor. Just create the poll or quiz like you normally would from the Admin Zone or the Content Management Zone and then remember the ID number of the poll or quiz. Then in the Block Assistant you can use the Content Display (main_content) block in the Awards section, choose Quiz from the drop down, and enter in the ID number for the specific quiz needed for that page. Or for polls, scroll down in the Block Assistant to the Polls section and use the Poll Display (main_poll) block and enter in the ID number of the specific poll needed for that page.
Back to the top
 
Posted
Rating:
#104710

Honoured member

Ok, I didn't have the awards installed is the reason I wasn't seeing the main_content block in the block assistant.  No wonder I couldn't find it. However when I used it it doesn't display the quiz, only a button to click to take the quiz.
Back to the top
 
Posted
Item has a rating of 5 (Liked by Fletch)  
Rating:
#104711
Avatar

Community saint

I tested this one, and it should work the way you want :)

In the Block Assistant, scroll down to the Main Blocks/Miscellaneous section, and use the Module Inclusion (main_include_module) block. For the Param option, you will need to know the ID number of the quiz and enter it in this format: 

site:quiz:do:1

Replace 1 with the ID number of your quiz, which can be found by editing the quiz. The ID number should be at the end of the edit URL. This also assumes your quiz is being called from the main site zone. If the quiz module is located in another zone, you may need to change site to the name of your zone like this:

yourzone:quiz:do:1
Back to the top
 
Posted
Rating:
#104715

Honoured member

Thanks  Jason. I had tried usoing that block before posting the first time, but wasn't using the correct format. That did it… You're a champ.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: