monknomo / CardWiki

A wiki designed to function like a pile of index cards
MIT License
5 stars 0 forks source link

Way of linking to specific card #20

Open monknomo opened 9 years ago

monknomo commented 9 years ago

Card titles ought to have an URL that will open them up automatically

monknomo commented 9 years ago

It might help search ranking vis-à-vis dense internal links for internal links to reference this URL.

$("a.internal link").click(function(event){ event.prevent default(); });

monknomo commented 9 years ago

Even better

Pass event in function call from a tag. In handler function, event.preventDefault()

Example

monknomo commented 9 years ago

Perhaps we can pass a url parameter with an array of card titles

monknomo commented 9 years ago

pass ?cards=linkable_title1,linkable_title2 and then have the get "/" router format the index template with the cards.

This requires templatizing the index and inserting cards into it

monknomo commented 9 years ago

Templatizing is done, router is searching for cards and inserting them, so long as they exist. Something must be done about cards that don't yet exist - making a synthetic card and setting the template to the edit mode is probably what is needed. If that proves too difficult, a blank card with a title might be good enough. A body can always edit it, right?