Timeline for Create custom URL pattern
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S Aug 8, 2019 at 15:56 | history | suggested | chalo | CC BY-SA 4.0 |
Fix var reference
|
Aug 8, 2019 at 15:24 | review | Suggested edits | |||
S Aug 8, 2019 at 15:56 | |||||
Aug 9, 2018 at 7:12 | comment | added | Mario Steinitz | You can do this by mixing up the above mentioned custom pattern for your vocabulary/bundle and implementing hook_pathauto_pattern_alter(), which is invoked just after a pattern has been applied for an entity and before tokens will be replaced. | |
Aug 9, 2018 at 7:06 | comment | added | Pratip Ghosh |
Understood. But this will simply create another pathauto pattern. I was more curious about the customization that we had in hook_pathauto() like the patterndefault , patternitems , batch operations etc. Actually what I am trying to achieve here is create a separate customized pattern group for one of my vocabulary which will have separate pattern for the parent items and another for the child items. Sorry I was not precise about my requirement before. However, thanks for you input nevertheless. I didnt knew this. :)
|
|
Aug 8, 2018 at 15:00 | comment | added | Mario Steinitz | It IMHO shouldn't matter for the import/installation, as the probability for collisions with existing elements is far too small. Yet, where the code is publicly available for review (as within contrib modules), I always prefer to tidy up any such IDs so they can be generated uniquely for the target system. It just feels like leaving less room for any kind of malicious actions to third parties. | |
Aug 8, 2018 at 14:50 | comment | added | Alfred Armstrong | As an aside, @Mario, when might the generated UUID cause an issue? I have lazily left UUIDs in place when exporting config and not seen any problems (yet). Or is it merely a matter of tidiness? | |
Aug 8, 2018 at 14:35 | history | edited | Mario Steinitz | CC BY-SA 4.0 |
added 7 characters in body
|
Aug 8, 2018 at 14:20 | history | answered | Mario Steinitz | CC BY-SA 4.0 |