Show the name of project as the title

Have you ever came across a topic that had the title of...

check out my game!!!

and when you clicked on the project inside it, it's that one generic, awful, repetitive, dull, unexciting, grey, uninteresting game?

Now why not modify the <title> element in the metadata of the Snap! website to show the project the page is about? For example, if the project name is "sparkling phloxes" the title should say "sparkling phloxes — Snap! Build Your Own Blocks". This way, this makes projects more appealing in the forums and it makes it easier to search for projects by browser tabs alone.

You mean the forum, not the actual web site, right? And in the forum, you mean only the "Share My Projects" category? And, we should do this only if the first post in a thread has exactly one link to a project? I guess that would be useful, but also complicated, and requiring modification to code we didn't write. So, one of these things that's not likely to happen in the near future unless some user provides the code. ¯\_(ツ)_/¯

Sorry to pick on you, but I'm going to anyway, in order to head off an angrier reply from Jens.

It's great that you know how to write Javascript code, but you have entirely missed the OP's point, perhaps because you replied based on the title of this thread without actually reading the post.

First of all, editor windows (the ones in which you're actually running Snap! and can therefore use the JS Function block) already have the project name in their title, without needing your block.

Second of all, the OP is not talking about editor windows, but about forum windows, which don't have blocks you can run.

And finally, the OP is concerned about forum participants who start threads with non-informative titles, and therefore wants us to put the project title in the thread title automatically, without relying on the posting user doing anything.

I'm not actually sure they're referring to the forum, or at least the throughout the entire post.

Obviously this is referring to the forum

But this sounds more like the community site. For example, here's a project link Snap! Build Your Own Blocks, which is similar to what they're proposing.

Not to mention searching through browser tabs. I doubt many people would have multiple forum tabs open on different projects, but I do understand multiple tabs of projects on the community site.


@mobility212 can you explain what you're suggesting, and on what website? I honestly cannot tell if you're talking about the community site or the forum.

Oh, I see. Yeah, we could do that. Thanks.

You can disable Onebox preview with the "<...>", i.e.
<https://snap.berkeley.edu/project?username=bh&projectname=vee>
https://snap.berkeley.edu/project?username=bh&projectname=vee

The cloud backend may use the OpenGraph tags to get a more meaningful preview.

The community site. I meant the link to a project, and the link just says "Snap! Build Your Own Blocks"

I'm talking about the community site. I failed to pay attention while wording out the thread.

Okay, lemme see if I have this straight. You want the <title> of a community site project page to include the project name, so that when you link to that page from a forum page, the link will show the name. Right?

Correct.

Damn chill

It's HTML not metadata btw

There is html that is metadata, in fact, most of the boilerplate elements in the <head> element are just stuff for the website title, description, keywords (for search engine), and other stuff.

But that's not file metadata though

Technically it is, because it's metadata about the file.

I know you're referring to metadata that you can see in a file manager, but that's not the only type of metadata, and not what the OP was talking about. Metadata comes in many different forms, which includes an html <head> tag. Metadata is just information about something, it doesn't have to be one place.

oh

Late to this -- but in both the editor and the community site, we really should be doing this. It's totally possible, and worth doing. Just not an immediate priority.

The editor already sets the tab title to the project title.
image

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.