GithubHelp home page GithubHelp logo

Comments (9)

WardCunningham avatar WardCunningham commented on August 17, 2024

One way is to drag the location field for one site to a new item factory (use [+] to get one) of the other. Current drop handler only works with Webkit browsers: chrome or safari.

Another way is to fork pages that already have links. This will work better when there are already many to choose from.

I've been known to edit them into database files with a text editor.

from smallest-federated-wiki.

WardCunningham avatar WardCunningham commented on August 17, 2024

Soon internal links (made with [[link]] syntax) will automatically search your neighborhood of the federation. You define that neighborhood with the mechanisms mentioned in my previous comment.

from smallest-federated-wiki.

ngzax avatar ngzax commented on August 17, 2024

Ward-

Thanks for starting this... its really interesting. Just to clarify: there is currently no syntax to define an external link to a federated page so that you can see them in the "Miller columns" view, right?

I was able to drag a page from one federated wiki to another using Chrome, but all I got in the target page was the text of the initial page. It had no link knowledge of where it came from. Is that the proper behavior?

Thanks,
Daryl

from smallest-federated-wiki.

WardCunningham avatar WardCunningham commented on August 17, 2024

I expect most linking will come from following forks in the journal. However, there must be some way to introduce a new site to the federation so that this forking can get started. The current approach is as follows (coded only for chrome):

  • create a new Factory paragraph by clicking the [+] at the bottom of a page.
  • drag-and-drop the location bar contents of another federated wiki page to this Factory.

This creates a paragraph of type of FederatedWiki. I've encountered a number of issues that make it hard to understand what is going on when dealing with content from multiple sites. Some of these are known bugs. Others are as yet unresolved usability traps. I'm working through these slowly so as to arrive at the best possible solutions.

from smallest-federated-wiki.

ngzax avatar ngzax commented on August 17, 2024

Ok, thanks, Ward. I was able to create the paragraph of type "federatedWiki" but it only displays a portion of the included page and when its clicked I a new "page" appears to the right, but it is blank.

I am really excited and looking forward to see where this project goes, thanks again!

from smallest-federated-wiki.

WardCunningham avatar WardCunningham commented on August 17, 2024

Daryl -- Some of this sounds right. A type federatedWiki story item is meant to refer to a page on another site. I copy the first paragraph of that page to make a "fat" link. You can edit that text if the first paragraph doesn't make a suitable citation.

The blank page sounds wrong. When you follow the fat link the client-side javascript appeals to the origin server for help retrieving the remote wiki page. This has the origin server working as a proxy to the other server. (One advantage of this scheme is that the origin server cache that page too so you will always have it.)

Are you using the Ruby/Sinatra server? I'm not sure this proxy behavior has been implemented in the Node/Express server yet.

I'm also considering having the client-side javascript fetch the page directly from the remote server. It does this to retrieve the first paragraph when it makes the fat link citation. Such direct access is referred to as Cross-Origin Resource Sharing (CORS for short). I didn't understand CORS when I wrote the server-side proxy code to access remote pages.

You now find yourself in an area of active development where the "right way" to do something isn't always obvious. I've written up some help pages that include a sample of a working citation. See if this works for you:

http://fed.wiki.org/view/how-to-wiki/view/add-paragraphs/view/example-citation

from smallest-federated-wiki.

ngzax avatar ngzax commented on August 17, 2024

Ward-

Yes, I am using Sinatra. Using your example link, I now have the remote wiki linking working and it doesn't come up with a blank page.

Thanks again for the help!

Daryl

from smallest-federated-wiki.

WardCunningham avatar WardCunningham commented on August 17, 2024

Thanks for your patience. There is lots here that can be made much smoother.

from smallest-federated-wiki.

ngzax avatar ngzax commented on August 17, 2024

No apologies necessary. This is an exciting project that I will be watching closely. I intend to set up a "federation" with my programming Team once it matures and stabilizes a bit more and will continue to give you feedback on my progress.

from smallest-federated-wiki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.