Jump to content

serve-time include in long description?


paleolith

Recommended Posts

Is there any way to include HTML text from a separate file into the Long Description when the cache page is served?

 

The reason I'd like to do this is that I have two challenge caches (including Spinal Tap) with leaderboards that I update weekly. I'd like to update this as much as I can, in part so that it happens on time if I'm busy, and in part because I might take some trips in the next couple of years where I would not be available to update the cache pages every Tuesday.

 

I already generate the HTML table for the leaderboard with a GSAK macro. (There are a couple of steps in this part not fully automated yet, but I know how to close those gaps.) But then there's no way to update the Long Description via the API, so I have to actually paste the modified table.

 

If the cache page were on a server I control, I could put the leaderboard in an <iframe src=>, with the src pointing to the file I generate. (Which could perhaps be a public Dropbox file.) Probably there are other ways to get this effect with unrestricted HTML. If I did that, I would not have to modify the description to get the new leaderboard.

 

But GC does not allow <iframe> (for good reasons), nor do I see any other tags in the allowed list which I could use for this purpose. I searched the attributes for allowed tags, and the only one that mentions "src" is <img>. Hence my question: is there any way I can include an external file using only the allowed HTML? Or am I stuck modifying the description if I want to change anything other than an image?

 

Of course I could link to the board as a separate page (on my own web site), but I'd rather keep it in the description. I could make an image of the board and insert that, but that's ugly in several ways. Possibly I could post a new log (a note) with the new board, deleting the previous week's log, but along with other problems, the table is too large for a log. Those are the only alternatives to modifying the cache description that I've come up with.

 

Edward

Link to comment
But GC does not allow <iframe> (for good reasons), nor do I see any other tags in the allowed list which I could use for this purpose.

You acknowledge that there are good reasons not to allow iframes and tags like it. But you are special and those reasons don't apply to you.

 

Right.

 

:laughing:

Link to comment

Sorry it took me so long to come back and read the responses ... I forget that these forums don't always notify me.

 

Thanks to niraD for confirming what I thought.

 

Thanks to Lil Devil for being snarky without understanding the request. We really need more of that here.

 

Edward

Link to comment

In my area, people tend to link to an external server with a list, both because it's easier to maintain and because they got sick of having to change the HTML every time the GC site was changed. I actually think it works out better, anyway, since it leaves the list out of the way when I'm looking at the page for some other reason. In particular, it's nice to not have to scroll through the entire list just to look at the logs.

Link to comment
In my area, people tend to link to an external server with a list [...] it's nice to not have to scroll through the entire list just to look at the logs.

Good points, thanks. But ... my description is so long, there's a lot to scroll past anyway. :yikes: Oh, but that means maybe I should put some of the obscure rules in a separate place ... I have actually thought of doing that. I already post "initial contents of the cache" in a log and link to it from the description, to avoid the silliness where that stuff remains in the description for years.

 

Hmm, I could put the leaderboard in a public Dropbox folder, so that all I'd have to do is save the file and presto, it's available.

 

Thanks ... I think I'm moving toward an improvement, whatever it is ... I'm sleepy and will see better when I wake up.

 

Edward

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...