简体   繁体   中英

Need to write a search box for joomla that opens a new link

Ok I know this is vague and I'm not an expert but I am wiling to write this by myself that's why I need to ask. I have tried googling but this thing is a little bit specific so I haven't found much info.

I need to know where to start first.

What I need:

To implement a text box (search box) in a joomla site in which user enters a "name". After that the script checks for the list of names and its according IDs and sends the user to a desired link with the ID number of that "name"

Example:

I want to search for a name "Justin" and I type it in the box. After I click search I get sent to www.names.com/id/3274 (id of the name)

Where do I start? Can I write this in JQuery? I know html/css/jquery. Can it be implemented in joomla? Do I have to write it in PHP?

Just tell me where to start and I would be really grateful.

Thank you in advance.

You need to manage your ids and names, so you need to create a component to create/edit/delete these values in back-end, so I'm afraid you also need to use PHP.

You can find more info about building Joomla component at http://docs.joomla.org/Portal:Component_Development

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM