Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 727 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to assign multiple url patterns to same container page in opencms

#1
I want to call particular container page with different url patterns



[To see links please register here]

/accounts/india- accounts /account-details?id= XXXXX

[To see links please register here]

accounts /india- accounts / account-details /xxxxx



here account-details is the common container page. where xxxx value changes every time.
Reply

#2
I haven't find a way to do it yet. Opencms need to have a vfs resource in db to be referenced, if you have no resource 404 is "thrown".

There are some ways you can walkaround it.

1. If you have few resources, use siblings;
2. If you have undefined numbers of possible combinations, I would use apache httpd (or varnish or nginx or whatever you like) rewrite rule;
3. You may implement some kind of vfs driver that is aware of that behaviour (I think to much complicated).

Second solution is what I used it in a project just finished adapted to your case.

in the httpd virtual host:

RewriteCond %{REQUEST_URI} ^/accounts/india-accounts/account-details/.*$
RewriteRule ^/[^/]+/accounts/india-accounts/account-details/.*([^/]+)/?.*$ %{REQUEST_URI}?id=$1 [QSA]

RewriteCond %{REQUEST_URI} ^/accounts/india-accounts/account-details.*$
RewriteRule ^/accounts/india-accounts/account-details.*$ /opencms/opencms/accounts/india-accounts/account-details [PT,QSA]

Hope it helps
Reply

#3
What do you want exactly?

I think you just want to use the value of the id=XXX to do something with the container.
Something like this

[To see links please register here]

, if you change de 'mx' to 'ar' the text and the flag will change.

To do this you just have to use a scope in your template. Remember is the first thing loaded. Or if you want to change the container example from content-type list to something else you will need the exact location of that content-type.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through