I want to be able to embed random quotes in my pages. For instance, I want to embed a random Stoicism-related quote at the top of my Stoicism page, so that every time I visit the page, I see a random quote.
I did this for myself using an web app I created with my brother to store and randomize my quotes collection. The output looks like this:
The app allows me to organize my quotes using tags, to selectively make the quotes public, and to share any tag selection. You can check out my public Stoicism-related quotes: here (Note: the icons at the top are randomization options).
What youāre seeing in the picture above is a link to my public quotes, embedded in Obsidian using iframe:
If you add the code above to one of your Obsidian pages, youāll see exactly what I see in my Obsidian Stoicism page.
The problem is, the embedded page doesnāt integrate well, and the frame has a fixed height. Ideally, the height would be variable, based on the length of the quote. To solve these issues I need to create an Obsidian plugin.
I want to gage if thereās any interest in such a plugin. Iām happy to discuss anything related to the process.
Yes! I would love this functionality, I have many quotes that Iād love to bring to the fore with a plug in just like this. How possible do you think it is to pull from a user generated list of quotes?
Itās not quite similar. The tool Iām using has a feature I call controlled randomness. Iām not just interested in generating random quotes, but in generating random quotes in a controlled manner.
Letās say you search for something or select a tag. Through this operation, you narrow down the information pool. With controlled randomness, you can generate random quotes only from this smaller information pool.
In practical terms, you can select, say, the name of an author or a particular theme and generate random quotes only by that author or with that theme.
As I said in my answer above, Iām interested in controlled randomness. The tool Iām using is custom-built around controlled randomness. To use it, youād need to use my tool ā to store your quotes in it.
Interesting! yeah I would like a random quote generator more along the lines of āquote of the dayā typeā¦will see if a tool like that turns up!
All the best with your project
P.S. I like to do āthematic quote of the dayā. When I visit an Obsidian page, I see a random quote related to that page. This way, by visiting multiple pages over the course of a day, I have multiple quotes of the day from different themes. I collect questions, so I also have a random āquestion of the dayā.
Late to the discussion but hereās what Iād like from this type of plug-in.
I create a set of my own curated quotes (notes). Either with a a tag (preferred) or if mandatory in a separate folder. Each quote (and it could also be a question to answer @danitrusca 's use case) is in a separate individual note.
The plug-in should allow me to transclude a quote either from the whole population of quotes or from a subset of them in a random fashion.
If the tag option is chosen Iād like one ābaseā or top level tag like #quotes and then the subsets could be children #quotes/software or #quotes/Heinlein In any given note where I transclude the random quote I can set whether to start from the #quotes tag or go deeper to be #quotes/Heinlein Iād like an option to do AND operations among the tags so I could get a random quote from among those tagged with more than one child.
I donāt want to use someone elseās famous quote site as my source I want to be in control of the things I want to resurface on a random basis as a quote in a new note.
When the item is included it should be in the ![[note]] format in the new note.