Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Delete a page only in the current locale #776

Open
afroewis opened this issue Dec 19, 2016 · 2 comments
Open

Delete a page only in the current locale #776

afroewis opened this issue Dec 19, 2016 · 2 comments
Labels

Comments

@afroewis
Copy link

Q A
Bug? no
New Feature? yes
Sulu Version 1.4.2

Actual Behavior

If you delete a page, it is deleted in any locales.

Expected Behavior

If I delete a page, it should only be deleted in the current locale. I think that's the most common use-case.

Possible Solutions

I think it would be great if we had the option to delete a page in all locales, too.

Maybe the popup when deleting a page could look something like that (of course with better styling):

selection_219

Or maybe you add an additional button to the popup?

@danrot danrot changed the title [FEATURE] Delete a page only in the current locale Delete a page only in the current locale Dec 19, 2016
@danrot danrot added the Feature label Dec 19, 2016
@sebheitzmann
Copy link

Is there a workaround to delete a page only for the current locale ? Maybe in the database but I can't find the locale field in the phpcr tables.

@alexander-schranz
Copy link
Member

@sebheitzmann at current state if you don't want to have a specific page online in a specific language you just should unpublish it over the toolbar, then it should not longer be available online.

If you really want to remove or analyse the phpcr data the best way is using the phpcr shell:

bin/adminconsole doctrine:phpcr:shell
# or
app/console doctrine:phpcr:shell

you can then cd <uuid> to the page and then type ls you see then a list of properties the language specific properties are prefixed with i18n:<locale> e.g.:

| i18n:de-authored            | DATE (29)       | 2020-06-30T14:23:50+02:00
| i18n:en-authored            | DATE (29)       | 2020-06-30T14:23:49+02:00

you would need to use node:property:remove <property-name> to remove a specific property. You would need to remove all language specific properties and use the save command to persist your change. That its also removed from the live workspace you would need todo the same with the bin/websiteconsole or app/webconsole depending which sulu verison you use.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants