If searching for an article I get a list of articles matching the search criteria. There are also articles found in the archive (ok: I don't like Joomla links to these archived articles, because you first need to go the way through the archive list and manualy select the according article, but this is an issue I already have placed).
But opening an article from the archive displays the original article and there is no indication, that this article is already archived.
It would be good to have an indication, that the article is archived, e.g. a background image or some text added to the title (" - archived"). This should be handled in the settings (content settings?)
I'm currently trying a dirty stuff, by including code in components/com_content/views/article/tmpl/default.php
This is the code I currently have included after line 26:
<?php if ($this->item->state == 2) : ?>
<div><h3> Archived </h3></div>
<?php endif; ?>
Simple, but it works.
But I would prefer something included in the system and customizable from the admin area. Good would be to define a background image for archived articles.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-01-19 06:32:04 |
Closed_By | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/19401
Status | Closed | ⇒ | Discussion |
Closed_Date | 2018-01-19 06:32:04 | ⇒ | |
Closed_By | franz-wohlkoenig | ⇒ |
Status | Discussion | ⇒ | New |
Closed_Date | 0000-00-00 00:00:00 | ⇒ |
Set to "open" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/19401
reopened cause its not good to have different Requests in one Issue.
Status | New | ⇒ | Discussion |
Category | com_content | ⇒ | com_content Feature Request |
Thanks for re-opening, because #14923 has a different scope (basically appearance of archived articles in blogs, lists,..)
My request is just for means to make it visible for end users, that they are reading an archived article.
At the current point in time they can't distinguish, if this is really actual news or not, when they open an article.
As an interim solution until this feature is included in Joomla I have included in components/com_content/views/article/tmpl/default.php after line 26 following code:
<?php if ($this->item->state == 2) : ?>
<div id="archive">
<?php else: ?>
<div>
<?php endif; ?>
In addition at the end of the file a </div>
needs to be added. This code is resulting in a named div only for archived articles, which can be customized in the templates css, e.g.
#archive {background-image: url("../../../images/archived.png");}
(Remark to myself: keep in mind this is a core hack and needs to be re-applied after any Joomla Update, until this is an official feature)
This can be done with Component Output Types and Layout Overrides without hacking core files.
True! Nearly forgotten that I can use overrides..
Nonetheless it would be good to have this kind of feature included in Joomla
Labels |
Added:
J3 Issue
|
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-05-04 13:04:23 |
Closed_By | ⇒ | Quy |
Closed_By | Quy | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/19401
Please test PR #20297
Related #14923