Python Forum
Creating a link that takes the user to a random page
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a link that takes the user to a random page
#4
(Jul-04-2020, 09:54 AM)ibreeden Wrote: Well that is quite a long story. Not everybody wants to read all this. And you are not very specific about what you are asking. From the title we learn: "Creating a link that takes the user to a random page". Is that what you want? Does it not give the expected result or do you get an error message?
You will have to elaborate on what is happening. Test your code bit by bit. Is it the function util.list_entries() that does not give the expected result?

Sorry I edited my original post since I figured that part out. I forgot to change the title - didn't know you could.

Right now I'm having trouble conceptualizing on how to do the search function.

When I type in something into the search box and press enter, it takes me to the original search page but with a ?search=<input> extension. I didn't type that code so I'm assuming that's automatic from a search box.

I'm wondering how I can get that variable from the URL and use it to search through the markdown files I have.
Reply


Messages In This Thread
RE: Creating a link that takes the user to a random page - by card51shor - Jul-04-2020, 05:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Issue Creating New Link Using Text oca619 1 2,003 May-05-2019, 09:07 AM
Last Post: Yoriz
  Creating code to make up to 4 turtle move simultaneously in a random heading J0k3r 3 5,742 Mar-05-2018, 03:48 PM
Last Post: mpd
  User input only takes the last number Austin11 16 8,461 Nov-28-2017, 11:20 PM
Last Post: Prrz

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020