I know I can put an index.html file in a folder of my pod to change the behavior of that folder. Then the index.htlm is displayed instead of the possibility of browsing that folder.
But what I would like to have is BOTH :
an html file where I could for example explain what is that public folder, what data is in , how it can be used, which webapp can use it, who must be contacted to fix errors with that data…
and keep the possibility to browse that folder…
But I don’t know which file I have to modify in the solid-gui to do so.
If anyone has an idea how to do that?
or perhaps is it in the solid-server?
Txs
Or put a little snippet at the bottom of the index.html which calls solid-file-client and uses it to display a dynamic, possibly clickable list of the files in the folder.
TXS, as you , I’ve used solside, but it’s not easy for every user’.
What I had in mind is more a snippet of html / iframe on the top of default folder browser .
An option provided for the owner to easily describe that folder, perhaps an index.html.pod that could be stored in that folder and included on top of default browser
Do you know if this is the solid-server or the solid-gui that decide to show the index.html or the browser ?
it seems I read somewhere that there is an implicit index.html and that when we had one it superseed the implicit one and you cannot see the container content anymore.
You can allways list the container content and access it through the solidFile.folder()
Now you can show a view of the public folder and make notations about it on the /public/index.html page. As an added feature discovered, you should see the index.html file in the list, you can delete it by opening the file, select the gear tab, and delete it; what should appear on the /public should be the above data browser views.
There are several things you can do with the data browser, maybe we should start a thread on that subject.
I created a file for you as an example on my index.solid.community pod.
Lets say you want to use the data browser to show a URL or URI on page load, You can create the page like below, and then, embed src that into your page so you can explain what happened to the public folder. Here I have the public folder of https://solside.solid.community/public/ preloaded into the data browser:
If you want to change what the data browser is displaying, simply change this line of code I have highlighted in blue, to what ever you want the data browser to point to:
I am currently working on customizing the data browser to do certain things so, if anyone is interested in sharing ideas, feel free to pm me here, or on gitter @mikeadams1. Over the next couple weeks I will be launching a customized version of the solid data browser, and a hacked version of one of my previous hacks, using code pulled from various NSS related repos here. A link to the site I am developing is here: https://solid.WebID.cloud and at https://WebID.cloud is where I will launch our own Solid WebID Pod Server.
Thank’s allot for that! But, I feel the need to credit @timbl@megoth and others that have created and worked on the data browser, it has taken me a month just to understand the mashlib library on this thing.
One of the things that I am trying to grasp is, that people are making react apps to work with solid but yet, you cannot access them via the solid data browser. Like https://generator.inrupt.net
For me, I think that there should be more development of native solid apps, so everything can be used in connection with the data browser, IMHO.