-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display "Pages that use the shortcode" is faulty #575
Comments
cmt_home_page.mp4
=>We need to add a new table(table: see detail table below) to the database to detect the "language of page" when adding a new page. Note: table wp_oo_plugin_detect_language_page => Do you agree with my solutions?
|
@dai-eastgate I will be able to give you feedback tomorrow, thank you :) |
@dai-eastgate Please implement case 1 as suggested. For case 2 we definitely want to support the most used multilingual plugins. Would it be easier for you to implement WPML first (WPML has priority since this is the plugin we are mostly using) and have a second issue for Polylang and maybe others later on/in the next milestones rather then implementing all at once? |
@fredericalpers I will check and let you know soon. |
@fredericalpers It will take me 5 days to implement and test for case 1 and the WPML plugin. Thanks! |
@fredericalpers We have two solutions for "detecting language for page" Which Pages using the shortcode: => detect language based on the "General settings of WordPress" or multilingual plugins (WPML, Polylang). Solution 2: Detecting language allowed by prioritizing as follows: we will prioritize based on the multilingual plugin that the client installed. If no multilingual plugin is installed, we will detect by "Site Language" of "General Settings of Wordpress" |
@fredericalpers Which solution do you prefer us to implement? |
@dai-eastgate sorry for the late reply. We prefer solution 2.
Please go ahead and implement the suggested solution. Thank you :) |
Thanks! I will implement solution 2. |
@fredericalpers Currently, I am checking issue #491 , which needs to be resolved before I can continue working on issue #575. Based on my estimation before, it is necessary to move the issue to the ramp-up week. Thanks! |
@fredericalpers During implementation, I noticed the following problems: video_1.mp4Because we can only handle the "add new a page" action and save it to the current language "wp_oo_plugin_detect_language_page" table in the database. => There is no solution to this problem Problem 2: Currently, we have completed 80% of this feature and are blocking the above 2 issues. video_2.mp4video_3.mp4Please test the branch we are working on (35073-display-pages-that-use-the-shortcode-is-faulty) and give me your feedback. |
@fredericalpers When I tested on the master branch, I had the following states: Step 2: I delete that shortcode in content of this page(named as "list") => This page(named as "list") still be displayed in the "Pages using the shortcode" admin part of the estate list. Please confirm: According to my understanding:
|
@fredericalpers Please confirm it for me so I can continue with the implementation. Thanks |
@dai-eastgate sorry, I will get back to you asap |
Discussed in #530
Originally posted by fredericalpers May 24, 2023
Current state
At the moment it seems that the form & list shortcodes are permanently displayed for all languages. For example, if there is a form in DE and EN on the home page, "Home" is displayed 2 times.
Desired state
Only the pages for the currently selected / relevant language should be displayed.
The text was updated successfully, but these errors were encountered: