-
☆ A M B ☆
- 872 Posts
Hello,
I’ve understand how to use friendly alias in document. But i wonder if it’s possible to generate alias dynamically.
In the case that i’ve one documents and i want it to generate alias depending on what i asking in a custom db table.
Let’s say document with index (6) and alias "book-start.html" and when the user click on a link on the page, it’s "reload" the page on the same document (6) but with a different alias like "book-whatever.html" and another content fetched from the database.
Is that kind of behaviour possible with modX?
-
MODX Staff
- 10,725 Posts
You could easily use a plugin to transform the actual url generated by makeUrl() or the link tags, i.e. [~1~], based on the the query string parameters, which I assume you would also be using for your custom rewrite rules.
-
☆ A M B ☆
- 872 Posts
Ok, thank you.
I was not sure that the makeurl() functin was the right solution.
I should have tried before asking!