Archive paint layout


(Tslater) #1

Hi,


We are retiring an old site (well, most of it) and because it ranks well in Google, we have a requirement to use the "archive" status on content rather than deleting it. Nor do we want to use the not so useful "archive page".



Infact, what we want is similar to:

http://matrix.squiz.net/resources/documentation



I built a conditional paintlayout that tests for the asset status, and if archived inserts a warning at the top of the page, as well as a block that provides a link to the current equivalent page (or next best thing).



The paint layout works perfectly in both cms, and www versions, with the exception that the www version is throwing up a login screen. As this content is public, there should not be a login screen.



The page asset READ permissions are correct. The Archive Asset trigger on the site has been set to none (in the Special Page Links settings).



Seems like there is possibly another trigger that fires, or a permissions setting at a level that is not obvious.



Any ideas on why this is happening?



Many thanks for your help,

Tys.


(Greg Sherwood) #2

Archived assets are not publicly accessible, so public users will always get a login box. The example URL you pointed to just has that message in the design. There is no detection because all pages that use that design are archived content. They do not use the archived status; they are still Live so everyone can read them.


So it sounds to me like you definitely do not want to use the archived status. Instead, you really need to apply a specific design or paint layout to the pages you want to remain visible but contain a message that the content is not longer relevant.


(Tslater) #3

[quote]
Archived assets are not publicly accessible, so public users will always get a login box. The example URL you pointed to just has that message in the design. There is no detection because all pages that use that design are archived content. They do not use the archived status; they are still Live so everyone can read them.



So it sounds to me like you definitely do not want to use the archived status. Instead, you really need to apply a specific design or paint layout to the pages you want to remain visible but contain a message that the content is not longer relevant.

[/quote]



Sadly that is not the answer I wanted to hear :frowning:



Applying a specific paint layout to the affected assets was our backup plan, but seems a shame that we couldn't use what was almoooost at our fingertips (so close!).



But thanks Greg, your answer is extremely helpful (now our admins don't have to run around looking for settings or triggers that don't exist).



Cheers,

Tys.


(Robin Shi) #4

If you are not using "up for review" status for workflow etc, you can use "up for review" as "archived" purpose.


(Tslater) #5

[quote]
If you are not using "up for review" status for workflow etc, you can use "up for review" as "archived" purpose.

[/quote]



Thanks for your reply Robin.



I'm probably a bit averse to using functionality in a way it was not really designed to be used (like using a stanley knife as a screwdriver) where it could backfire on me later, but since it's a site to be retired it could work. Likely the simplest thing is just to apply a custom paint layout to the pages. But thanks for the suggestion, every idea adds to my understanding of Matrix.



Cheers,

Tys.