Forum for discussing general topics related to Couch.
7 posts Page 1 of 1
Hi guys :)
Thanks KK For CouchCMS - Now I use it in every project

there's anyway in Couch to change the php pre-defiend variables like
Code: Select all
"name.php?p=1"
i want to change it too
Code: Select all
"name.php?v=1"


the second thing is i want to change the page IDs from Numeric to alphabet like this
Code: Select all
 "name.php?v=1"
to
Code: Select all
"name.php?v=test"

something like youtube videos or to make it from the Clonable Posts as ex. if post name is "Akame ga kill Episode 3" the url will be like this
Code: Select all
 "name.php?v=akame-ga-kill-episode-3"


the second request more important !
thanks guys :D
I came I saw I Conquered :D
Hi :)

I suppose it is for SEO reasons that you want those changes, right?

If so, could you please let me know if the default prettyURLs of Couch (http://docs.couchcms.com/concepts/pretty-urls.html) wouldn't help? For example, the following URL -
name.php?v=akame-ga-kill-episode-3

would become as follows
name/akame-ga-kill-episode-3.html


Anyway, if you do wish to use your own custom URLs, and are willing to put in a little effort, please take a look at 'Custom routes' - http://www.couchcms.com/docs/custom-routes/.

Hope it helps.
Yes it for Seo , but i had a issue with "Pretty URLs" so i won't use it permanently at least for now :\
so the Custom Routes won't work too

if problem of pretty urls fixed , i think this will be enough for me !
after i complete converting of template to php and use gen_htaccess.php , simply doesn't work it's give me a 404 page not found

is the pretty urls required enable some addons ?
I came I saw I Conquered :D
i think the problem won't fixed soon :roll:
Another thing : there's someway to filter the editable regions ?
i mean if i type in the editable region "Hi I'm the admin Let's have some fun"
the output should be or similar to this
"Hi I'm the * Let;s have some fun"
I came I saw I Conquered :D
@prodevel Would it be enough if url.php?v=123 would simply redirect to url.php?p=123 without changing url string in browser( keeping it v?=123 )?
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
trendoman wrote: @prodevel Would it be enough if url.php?v=123 would simply redirect to url.php?p=123 without changing url string in browser( keeping it v?=123 )?

That's not what i need , but it's maybe help at least for now
what i understood is i can type anyurl then will redirected as ex.
url.php?v=bla-bla will not changed in address bar but the page content will be from url.php?p=12
yea ?
I came I saw I Conquered :D
Hey prodevel,

You can indeed change the urls for page view on a clonable template.

Code: Select all
<cms:set page_name="<cms:gpc 'p' />" 'global'/>
<cms:pages masterpage=k_template limit='1' page_name=page_name></cms:pages>


You can then fetch the same content with the same couch tags. The only caveat is that <cms:show k_page_link/> will no longer work; so you would have to write the url as news.php?p=<cms:show k_page_name/>.

Hope that helps!
7 posts Page 1 of 1
cron