locked
Article localiztion RRS feed

  • Question

  • User654349575 posted

    Hi. imagine that there is a task in which need realize functional on asp net core: 

    realized admin part where user who have some appropriate role can create article, localization language , type of article, article and seo friendly slug for this article for example named slug "global-problem-in-middle-east"

    when end user click on this article detail in url he must see something like this: {host}/{section}/{article slug} ( https://Insider.com/news/global-problem-in-middle-east)

    In NopCommerce is such an implementation but there is wery difficult for simple service. is there any way to do this not like in NopCommerce ?

    Need any links to other projects, articles on this topic would be useful, something that helped in this question 
    Friday, September 20, 2019 3:22 PM

All replies

  • User753101303 posted

    Hi,

    Not sure what is the exact problem. More likely the slug is created by default from the title but could be changed if needed. And so from a db point of view, it is just a possible id that allows to retrieve the article.

    You are new to MVC ?

    Friday, September 20, 2019 3:31 PM
  • User654349575 posted

    not new but this task dont do never before

    Friday, September 20, 2019 3:35 PM
  • User654349575 posted

    i wont create slug as part of article creation in separate field and when user clicked on this article on front side in url he must see this slug

    Friday, September 20, 2019 3:41 PM
  • User753101303 posted

    It's basically the same than usual expect thar rather than using a numeric id you'll have a string id which is "global-problem-in-middle-east" and that allows to retrieve the content you want to show from the database.

    If you need some code you are using MVC or Razor Pages ?

    Friday, September 20, 2019 4:30 PM