Welcome Guest, Not a member yet? Register   Sign In
How can I hide content id on URL
#12

(This post was last modified: 12-06-2016, 11:22 AM by PaulD.)

Really?

1. You currently generate a url using a field called ID. Instead generate a url with a field called 'page_url'.
2. You currently do a database query with a search on ID. Instead do a database query with a search on 'page_url'.

Clearly, you need a database column in which the 'page_url' is stored beside your current ID.

That is it.

I can run through your code and replace 'id' with 'page_url' but do you really need me to do that? Also, the column in which your page name is kept might be called 'page_slug', or 'page_code', or 'page_url_name'.

I hope this helps,

Paul.
Reply


Messages In This Thread
How can I hide content id on URL - by olmos - 10-20-2016, 06:42 AM
RE: How can I hide content id on URL - by Shawn - 10-20-2016, 03:15 PM
RE: How can I hide content id on URL - by olmos - 12-04-2016, 03:06 AM
RE: How can I hide content id on URL - by olmos - 12-04-2016, 12:00 PM
RE: How can I hide content id on URL - by olmos - 12-05-2016, 05:20 AM
RE: How can I hide content id on URL - by PaulD - 12-05-2016, 12:11 PM
RE: How can I hide content id on URL - by olmos - 12-06-2016, 01:44 AM
RE: How can I hide content id on URL - by PaulD - 12-06-2016, 11:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB