Giter Club home page Giter Club logo

Comments (11)

clare0young avatar clare0young commented on June 4, 2024 1

As proposed in planning - articles will inherit the category into the url (but not /article)
e.g. /new /press-release

from campaign.

pvhee avatar pvhee commented on June 4, 2024

It turns out that the overview page itself (the news landing page) is a landing page that can be controlled by the editor using pathauto, and the path can be changed.

One problem however is that the article itself by default uses this pattern for the URL

pattern: '/news-tv-and-events/news/[node:title]'

(see https://github.com/comicrelief/campaign/blob/develop/modules/cr_article/config/install/pathauto.pattern.article.yml#L9 for the code)

This means, while we can control the article landing page URLs, the article node page itself by default will use the above pattern. An editor can overwrite this on a node-by-node basis however.

Having different patterns in different sites will be messy I think, so I'd rather have us keep this as the default state. Can we not find a URL pattern that works for all sites @CarolineRennie?

from campaign.

CarolineRennie avatar CarolineRennie commented on June 4, 2024

I guess the most logical thing is to just have all articles to have /news/[node:title] but then this only works for news - if we are using articles for press releases then I guess the pattern needs to relate to the use of the article.

E.g. if we are applying the exclude from 'all' logic for things like press releases or grants initiatives then these should inherit press-release/[node:title] or grants-initiative[node:title]

from campaign.

pvhee avatar pvhee commented on June 4, 2024

We need to find a generic pattern here, as using press-release/[node:title] would mean all articles now will change their paths to something like first-taxonomy-term/[node:title], as press-release is just a tag on the article, much like TV, appeal-films etc. This means also these articles would read tv/[node:title] etc. which I think wouldn't work.

Alternatively, we need to look at a different way, e.g. an article type, and a pattern could be like /article/[article-type]/[node:title], so you'd have:

  • /article/press-release/title-of-the-press-release
  • article/general/title-of-the-article

It'd be simpler to not add any type to the articles, and always go with the article_or_news/[node:title as you say, then have different landing pages under different URLs (e.g. news landing page, press release landing page, ...)

from campaign.

CarolineRennie avatar CarolineRennie commented on June 4, 2024

Would article type not make the 'only display here' rules a bit more simple though?

In that the rule would be only display article type X rather than looking at categories? I think that this may be the rule on current CR.com so maybe it's an antiquated way of thinking?!

from campaign.

Saphyel avatar Saphyel commented on June 4, 2024

why do we need different url?
Do we know which kind of articles are gonna need? and what make them different?

from campaign.

CarolineRennie avatar CarolineRennie commented on June 4, 2024

Only apply URL change for the 2 article 'Types':
/news/
/press-release/

from campaign.

CarolineRennie avatar CarolineRennie commented on June 4, 2024

As discussed with @gusliedke
Content manager user flow would be:

  1. Create article
  2. Select 'category' (news or press release) from drop down
  3. Tag article with terms for SEO and search terms (Grants, Women and Girls, Sara Cox, Whatever)

Display rules:
Url to inherit the Category /press-release/[article name]
"Related news" defined by closest tag matches between articles of the same Category (e.g. only news articles or grants initiatives, not a mix of both)

from campaign.

gusliedke avatar gusliedke commented on June 4, 2024

When we have done this work we need to update our "Paragraph Feature Articles" to filter by tag instead categories. The category will be always News. Ping me to explain it.

from campaign.

gusliedke avatar gusliedke commented on June 4, 2024

@bimsonz @pvhee just double checked with Caroline and the task is how we described here. This issue is the one with highest priority now. I was wondering Zach if you would be able to pick it up?

from campaign.

bimsonz avatar bimsonz commented on June 4, 2024

@gusliedke @CarolineRennie picking this one up now!

from campaign.

Related Issues (20)

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.