nicboyde Reply #1, 3 months, 2 weeks ago
I have an odd problem. A client wants his clients to be able to type in the alias of any resource, and go straight to the resource page, but without having to type in the whole path. The site is a Babel Multilingual site, and has use_alias_path turned on, and the URLs are long, because the content is nested, for good reasons, some levels down.
So I need a little form that takes the alias, adds the context/path information in front, and then tells the browser where to go by sending the whole string as if it had all been typed in to the address bar. It need not be error-checking.
I thought of using simpleSearch, but the documentation says it doesn't search TVs, and the resource alias is a TV. (If it did, I could build a proper search system - overkill, but it might do the job). But as it doesn't, on the face of it, I'm stuck.
It struck me that this is probably something very simple, but I have no idea how to create this functionality.
Any clues, ladies and gentlemen, will be most gratefully-received.
Nic Boyde
Modx Revo 2.1.2
So I need a little form that takes the alias, adds the context/path information in front, and then tells the browser where to go by sending the whole string as if it had all been typed in to the address bar. It need not be error-checking.
I thought of using simpleSearch, but the documentation says it doesn't search TVs, and the resource alias is a TV. (If it did, I could build a proper search system - overkill, but it might do the job). But as it doesn't, on the face of it, I'm stuck.
It struck me that this is probably something very simple, but I have no idea how to create this functionality.
Any clues, ladies and gentlemen, will be most gratefully-received.
Nic Boyde
Modx Revo 2.1.2