Skip to content
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

cant change the url depending of the website languaje slug #35

Open
DPTOProgramacionIslaNetworks opened this issue Jun 27, 2022 · 5 comments
Labels

Comments

@DPTOProgramacionIslaNetworks

Hi, im having issues with this plugin, i have rainlab translation and it seems like this plugin supports it when changing title, description and other fiends, but it does not seem to support multiple urls depending of the languaje url like,
websiteurl.com/title <--- default languaje english
websiteurl.com/es/titulo
websiteurl.com/de/titel

i hope this issue can be solved

@DPTOProgramacionIslaNetworks
Copy link
Author

DPTOProgramacionIslaNetworks commented Jun 27, 2022

and also i cant access the urls of the articles of this plugin
in the url section i tried saving /first-article , first-article , websiteurl.com/first-article , websiteurl.com/en/first-article
and not a single one made the article to show on the web, in any url tested,

@igor-tv
Copy link
Contributor

igor-tv commented Jun 28, 2022

Hi,

You can make the URL field translatable by extending the Article model through your plugin. For example, add the following code to your plugin's boot() method:

    /**
     * Plugin boot method
     */
    public function boot()
    {
        \Lovata\GoodNews\Models\Article::extend(function ($obArticle) {
            $obArticle->translatable[] = 'slug';
        });
    }

@DPTOProgramacionIslaNetworks
Copy link
Author

DPTOProgramacionIslaNetworks commented Jun 28, 2022

thanks i tried that, and yes, now is translatable , but, i still getting the issue of not being able to navigate to the urls i created for the articles, like websiteurl.com/article1
Captura2

@igor-tv
Copy link
Contributor

igor-tv commented Jun 28, 2022

Have you read the plugin documentation? I need to see your CMS-page code where you display articles to tell you more.

@igor-tv
Copy link
Contributor

igor-tv commented Jun 28, 2022

Hi, im having issues with this plugin, i have rainlab translation and it seems like this plugin supports it when changing title, description and other fiends, but it does not seem to support multiple urls depending of the languaje url like, websiteurl.com/title <--- default languaje english websiteurl.com/es/titulo websiteurl.com/de/titel

i hope this issue can be solved

By the way, there is a setting to enable URL translatability (Settings > Misc > Application settings)

Снимок экрана 2022-06-28 в 16 15 06

.

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

No branches or pull requests

3 participants