/sites/community?hl=en
/sites/community?hl=en
2/28/17
Original Poster
Federico Prat Villar

A page with exercises where each solution will be shown upon request

I want to publish a page in a site of mine (Classic Google Sites) with exercises for my students, and I want to keep the solutions hidden until the student has solved an exercise and wants to see its solution by clicking (or maybe hovering over) its container box (or a button or whatever).

I think that would be easily doable with CSS, but Google, as far as I have read, bans Sites users from writing CSS, am I right?

And styling with CSS in an enclosing DIV (just in case it still works) could be discontinued by Google at any time, as stated by Steegle.

So any solution within Google Sites? Or should I just give up? :(
Community content may not be verified or up-to-date. Learn more.
All Replies (11)
2/28/17
Original Poster
Federico Prat Villar
I have just found this: http://www.steegle.com/websites/google-sites-howtos/html-box. Just for New Google Sites?
2/28/17
Original Poster
Federico Prat Villar
Thanks, it's exactly the kind of behaviour I was looking for, but I get lost in your pages by the amount of comments "that stopped working, try this instead".

Where can I currently put the gadget code? Anywhere inside GSites? Please remember I'm using the Classic version.

And thanks again! :)
k8oms
2/28/17
k8oms
See http://www.k8oms.net/expand-text

The code for my gadget is there. It would have to be modified to change the text that is displayed.

You can host the gadget in your site as an attachment or in a file cabinet page.


2/28/17
Original Poster
Federico Prat Villar
I'm using a file cabinet page. When trying with this code


I've got this error from GSites:


I don't know why.

The file URL looks like this: https://sites.google.com/...path.../filename.xml?attredirects=0&d=1. I have tried both with & without ?attredirects=0&d=1.

2/28/17
Original Poster
Federico Prat Villar
Oh, Classic Google Sites allows inserting HTML boxes. I'll take a look at them!
2/28/17
Original Poster
Federico Prat Villar
I insert an HTML box in a Google Sites page and, no matter what I write inside the box, I see nothing after saving the page. :(
k8oms
3/1/17
k8oms
Create a text file that contains the code. (use a plain text editor like notepad)
Name the file "mygadget.xml" or whtever you want to call it, with the file type .xml
Add the file to your file cabinet page.
Right-click on the download link and copy the URL.
In the page where you want to embed it use Insert, More gadgets, Add gadget by URL


3/1/17
Original Poster
Federico Prat Villar
My frustration comes from that being exactly what I tried yesterday (& I have just retried) just for getting the same error.

> Create a text file that contains the code. (use a plain text editor like notepad)

Xemacs, plain ASCII file generated.

> Name the file "mygadget.xml" or whtever you want to call it, with the file type .xml

Done.

> Add the file to your file cabinet page.

Done.

> Right-click on the download link and copy the URL.

Done.

> In the page where you want to embed it use Insert, More gadgets, Add gadget by URL

Done... and an error about a meta tag gotten! I have tried with & without ?attredirects=0&d=1 ending the URL. Even changing the copied https into http! Yeah, silly changes without any effect.

I give up. Thanks for trying to help me. :(

I can't be putting so much time in fighting against GSites instead of designing good exercises for my students. I'll use a different tool.
3/1/17
Original Poster
Federico Prat Villar
Quite surprisingly, this works for me:


Directly pasted into the GSites page editor in HTML mode!

GSites automagically converts the form element into an Embed Gadget and it has worked so far. :)
k8oms
3/1/17
k8oms
Thanks for the info.
Were these replies helpful?
How can we improve them?
 
This question is locked and replying has been disabled. Still have questions? Ask the Help Community.

Badges

Some community members might have badges that indicate their identity or level of participation in a community.

 
Google Employee — Google product team members and community managers
 
Community Specialist — Google partners who help ensure the quality of community content
 
Platinum Product Expert — Community members with advanced product knowledge who help other Google users and Product Experts
 
Gold Product Expert — Community members with in-depth product knowledge who help other Google users by answering questions
 
Silver Product Expert — Community members with intermediate product knowledge who help other Google users by answering questions
 
Product Expert Alumni — Former Product Experts who are no longer members of the program
Community content may not be verified or up-to-date. Learn more.

Levels

Member levels indicate a user's level of participation in a forum. The greater the participation, the higher the level. Everyone starts at level 1 and can rise to level 10. These activities can increase your level in a forum:

  • Post an answer.
  • Having your answer selected as the best answer.
  • Having your post rated as helpful.
  • Vote up a post.
  • Correctly mark a topic or post as abuse.

Having a post marked and removed as abuse will slow a user's advance in levels.

View profile in forum?

To view this member's profile, you need to leave the current Help page.

Report abuse in forum?

This comment originated in the Google Product Forum. To report abuse, you need to leave the current Help page.

Reply in forum?

This comment originated in the Google Product Forum. To reply, you need to leave the current Help page.