The place for more technical questions for those who want to create new pagetypes or bespoke functionality.

Custom Canvas output on Opinion page?

  • rightsideup
  • Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 5 ans 6 mois #7155 par rightsideup
Custom Canvas output on Opinion page? a été créé par rightsideup
Could anybody give me any pointers as to how I would customise the Canvas outut diagram on the opinion page type?

For instance, on the above, rather than the 10-100 scale, to use a disagree - agree type scale. I'd also like to be able to customise the size of the 'Question 1' etc titles.

Any advice would be most welcome.
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 ans 6 mois #7172 par JohnSmith
Réponse de JohnSmith sur le sujet Custom Canvas output on Opinion page?
Hi,

You really have two options:

Either you would need to make changes (the easier way) to this file ( github.com/thexerteproject/xerteonlineto...s_html5/opinion.html ) and drop it into place inside your install in the correct place, /modules/xerte/parent_templates/Nottingham/models_html5/

Or you would need to add javascript to modify the page type in situ in an unaltered installation - this would be a LOT HARDER but if you are very good with JS then it is definitely possible

Either way though would require quite a bit of rewrite or code addition to do what you wish...

Regards,

John
Les utilisateur(s) suivant ont remercié: rightsideup

Connexion ou Créer un compte pour participer à la conversation.

  • rightsideup
  • Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 5 ans 6 mois #7173 par rightsideup
Réponse de rightsideup sur le sujet Custom Canvas output on Opinion page?
Thanks for the pointers John, I think I'm going to try and make a new page type using the Opinion one as a starter and following your advice - my JavaScript is not up to the other option!

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: JohnSmith
Temps de génération de la page : 0.180 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo