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

Articles consisting of a teaser only have a "Read more" link #4872

Closed
Anke opened this issue Jun 24, 2022 · 2 comments
Closed

Articles consisting of a teaser only have a "Read more" link #4872

Anke opened this issue Jun 24, 2022 · 2 comments

Comments

@Anke
Copy link

Anke commented Jun 24, 2022

Affected version(s)

4.13.5

Description

Hi,

articles with teasers only are automatically providing a Read more link. When I click on the Read more link I see a pagfe with Return link.

Example: In the demo I added another article and defined both to display their teasers. While the demo article contains content, the added article only consists of the teaser and shouldn't have a Read on link. Thus I'd say the <?php if ($this->teaserOnly): ?> isn't working (properly).

2022-06-24_154832_contao

By the way - I think it would be useful to be able to select a headline level for the teaser in the backend.

@aschempp
Copy link
Member

Why would you add a teaser and enable the "show teaser" checkbox option if you don't want a readmore link? You could simply add that content to the article content instead?

@Anke
Copy link
Author

Anke commented Jul 18, 2022

Okay, then I'll have to teach my folks to not use article teasers for very short articles. I guess I misinterpreted the line <?php if ($this->teaserOnly): ?>?

There are some sports clubs among my customers who are also using news teasers for short one-line-infos, where there's really no need to have a link to a separate page repeating this same short line of text, not even for SEO. Thus we always changed
<?php if ($this->hasText || $this->hasTeaser): ?>
to
<?php if ($this->hasText): ?>
Years ago I opted for a possibility to detemine whether a user wants a "Read more" link or not, but although I know we're not the only ones handling news teasers this way, regretfully our suggestion didn't find developers' approval.

@Anke Anke closed this as completed Jul 18, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants