invicticide / fractive

Fractive is a free, open-source, Markdown-based hypertext authoring tool for writing interactive fiction.
http://fractive.io
Other
38 stars 5 forks source link

Ability to web link directly to specific sections #66

Closed NQNStudios closed 1 month ago

NQNStudios commented 6 years ago

What I'm imagining is index.html processing some optional URL parameters, like this:

http://balladofthespacebard.com/index.html?start=Episode2

This link would lead directly to the section named Episode2, instead of Start.

There are two scenarios where I can imagine this functionality being especially useful:

invicticide commented 6 years ago

Yeah I've been thinking about something similar for a while. There's this tangential potential use case for Fractive as a vaguely Jekyll-esque website builder but the current lack of deep-linking is a fatal flaw for that.

NQNStudios commented 6 years ago

Jekyll-esque is exactly right. I might eventually switch my whole website over from Jekyll to Fractive.

invicticide commented 6 years ago

Aside from the lack of deep-linking, the other (currently) shitty thing about using Fractive for a website as opposed to a hypertext story is that on a website you probably don't want all your resources compiled into a single html file, particularly if your site is going to be image-heavy.

I did a quick experiment a couple weeks ago with a pseudo-fork of Fractive that dumps out separate html files for a more website-like deployment. It's kinda promising. I haven't done much with it beyond an initial proof of concept, though, and I split it off because I don't want Fractive itself to get pulled too far off its original/core goal of making hypertext stories... but this is all stuff that's swirling around in my head, at any rate.

NQNStudios commented 6 years ago

When this is implemented, there should also be a project configuration option to have the URL in the browser window update to reflect the URL of the current section. So if an author wants to let players link to specific sections, they have an easy way of doing that, but if an author wants to hide section names or make it hard to skip content, that can be the default behavior.