I'm displaying a list of Channel entries in a "search results" page. Each item has a link to a "details" page. Right now, my URLs look like this:
domain.com/products/1/
domain.com/products/2/
domain.com/products/3/
I'd like to encrypt the entry ids when I generate the links in the search results page. In the details page, I'd like to decrypt that when I pass it as a param to {exp:channel:entries}
. Is there a way to do this natively in EE? Or is there an addon that'll do this for me? Or should I enable PHP in the templates to make this happen? (other members will not have access to EE's CP, only the admin).
domain.com/products/xA39sZ7s/
– ExpressionEngineNewbie Jul 2 '13 at 21:47product
template where you pass in that products's entry_id when it is clicked upon through embed vars for instance. Then set dynamic="no" on the channel entries tag to tell EE to ignore the URL when displaying the individual product details. Then the product ID wont be shown in the URL. – Ian Jul 3 '13 at 12:40entry_id="{segment_2}"
. I'm not familiar with your "embed vars" approach. Is there a way for me to completely leave out the entry id in the URL and still access that entry? – ExpressionEngineNewbie Jul 3 '13 at 20:06