I have a channel, where entries do NOT have their own URLs. But a slug is created automatically every time I save an entry. And I have auto-generated titles.

Often I save an existing entry as a new entry and just change something which changes then my auto-generated titles also. But the slug does not change (only a number is added).

Now my problem: The search function also searches the slug what then results in wrong search results.

My question: The only solution I've found is to manually delete the existing slug and to save the entry again. Is the a better solution for my problem?

Thank you very much for your help!


Seems like a good case for a simple plugin that listened to the onBeforeSaveEntry event.

That plugin could verify the entry is in the section you're looking for, compare the existing slug against any saved in the database and do whatever you want to do from there (set it null, etc.).

  • Thank you, I've created a simple plugin that writes the slug always new when an entry is saved. Works perfect.
    – MISC
    May 11 '17 at 14:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.