Hi,
@sladdals
If "catalog" is a resource without parent, I think you can remove it from its direct children URIs (category, category2, category3) by creating that rule :
- Pattern : [[+alias]]
- Constraint field : parent
- Constraint : *catalog_id*
- URI, Override, Active : Yes
And for other resources, generate default URIs :
- Pattern : [[+cu.parent_uri]]/[[+alias]]
- Constraint field :
- Constraint :
- URI, Override, Active : Yes
Else, you can define your own snippet to generate your custom urls :
- Pattern : [[your_snippet]]
- Constraint field :
- Constraint :
- URI, Override, Active : Yes
Besides, at the moment, you're right, the only way to set default URIs is to create a rule with [[+cu.parent_uri]]/[[+alias]].
But it's a good idea, I think I will add a button to clear custom URIs in next release.
@tedlegendary
It's the MODx default behavior. Aliases are made from resources pagetitle. It's more convenient for your customers who don't want specify aliases.
In
CustomURLs, if you use [[+alias]] in your pattern and set "Override" to "No", then aliases will not be overriden if they are specified :
- Pattern : [[+alias]]
- Constraint field :
- Constraint :
- URI : No
- Override : No
- Active : Yes
I hope my english isn't too bad to be understood.
[ed. note: ben_omycode last edited this post 11 years ago.]