Giter Club home page Giter Club logo

Comments (5)

DPTOProgramacionIslaNetworks avatar DPTOProgramacionIslaNetworks commented on May 26, 2024

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,

from oc-good-news-plugin.

igor-tv avatar igor-tv commented on May 26, 2024

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';
        });
    }

from oc-good-news-plugin.

DPTOProgramacionIslaNetworks avatar DPTOProgramacionIslaNetworks commented on May 26, 2024

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

from oc-good-news-plugin.

igor-tv avatar igor-tv commented on May 26, 2024

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

from oc-good-news-plugin.

igor-tv avatar igor-tv commented on May 26, 2024

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

.

from oc-good-news-plugin.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.