Url parameters
Permalink
Hello to everybody, I need to do something like this:
I want to load content by url parameter for example:
/projects/project-name
/index.php?cID=2&project=project-name
I need to load all projects in a single page, the project-name will be the identifier for the content in my database.
It's possible to do that?
Thanks in advance
I want to load content by url parameter for example:
/projects/project-name
/index.php?cID=2&project=project-name
I need to load all projects in a single page, the project-name will be the identifier for the content in my database.
It's possible to do that?
Thanks in advance
its entirely possible and really easy, a few of the dashboard pages do it,
please can you help with a sample!
take a look at concrete/controllers/profile/controller.php
the view function,
the url is like site.com/profile/1/ where 1 is the user id,
the view function,
the url is like site.com/profile/1/ where 1 is the user id,
Does this also work on the front end of the site?
It looks like in that controller the variable is passed to the view method
view($var){}
but this does not seem to work in a block. Any advice?
It looks like in that controller the variable is passed to the view method
view($var){}
but this does not seem to work in a block. Any advice?
Blocks are different, you need to use actions or get or post,
thanks for quick reply, I will look into actions