Mailing List Archive

Locally overriding PUBLISH_RELATED_ASSETS in a template
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

I am making a new contents page for New Internationalist using
related_story containers and I'd like it /not/ to publish the related
stories in those related story containers.

It looks to me like the global config variable PUBLISH_RELATED_ASSETS is
going to mean that related assets are published, which is normally what
we want. Is there a way to override that behaviour in a single template?

Cheers,
- --
Charlie Harvey
IT Director
New Internationalist

t: +44 (0)1865 403249
f: +44 (0)1865 403346
w: http://newint.org/
k: http://ox4.li/gpgkey/

New Internationalist is an independent not-for-profit communications
cooperative. Our multi-award winning magazine, New Internationalist,
brings to life the people, the ideas and the action in the fight for
global justice.

New Internationalist Publications Ltd. is incorporated in England
under no.1005239.

New Internationalist, Old Music Hall, 106-108 Cowley Rd.,
Oxford, OX4 1JE, UK
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCgAGBQJUAIRaAAoJEPytMqUZaqlzO1sP/24t649nGVc1zgpJrOPhBAuL
srfMplBAs/6UXm5KoIaLb0X9HPrsjbvIK/ZRecV9FBM7F+998GUbhM7lm09SueeR
cK1ZbXB+LAUzhxhQY4BKbtRFXcpAO2PNsE6HNf+fzBRI4RIykRR0iGhQAvKIbAUa
iKFa7cVwO0gjJoEmARbRN1ugGjxkvf2YaqyrU8SkDsFzRVaQORUNzuAh8nKnB7zX
DDQfeY7yjqZ4yZzaFhecl97acg8GNjADUZIjpryNvILAUgKsQgqKsd+QT4Pe6vCb
AESbQcVE4K42GQ3OAO1w0ORdKU8C9lthDEcAZ3MtKGZk/PxqiVmRgom4NxI2UDSk
wvM4iYqY/m/mhTdZbz6ovF5oIpnjTDOGkaytL7bXkYdE89QXzq7JeLbb5kJ6JK8G
MmELNe7CJ1pGN5GjRxDUSW+MVV9fGldDIzDdIeF0pOdxxS29YSUDdQ7xgRtbxZDN
zs2xQ4L4fscUUPCeAfMvSWelh0biuGaFuQhcEM5EDA4XN+afZdahIuP603SS3cZr
VvGOAM5zgvNzP/4sQWiVVMv0wpgvNIWDMZR6nR13kNBpqVqxyibpEgKkXj4Btxb8
Cu8dT70JcwDaoGWPNVOp/DJ3RI6ZuiPTpmOTSMTSpOKoW5YHSKD8vfueVJFQPMs8
3ucDeRwKMwTcNRK78fdS
=Fkyp
-----END PGP SIGNATURE-----
Re: Locally overriding PUBLISH_RELATED_ASSETS in a template [ In reply to ]
On Aug 29, 2014, at 6:47 AM, Charlie Harvey <charlie@newint.org> wrote:

> It looks to me like the global config variable PUBLISH_RELATED_ASSETS is
> going to mean that related assets are published, which is normally what
> we want. Is there a way to override that behaviour in a single template?

There is not, sorry.

Why would you not want to publish them? Won’t you have 404 links if they’re not there?

Best,

David
Re: Locally overriding PUBLISH_RELATED_ASSETS in a template [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 30/08/14 00:18, David E. Wheeler wrote:
> On Aug 29, 2014, at 6:47 AM, Charlie Harvey <charlie@newint.org> wrote:
>
>> It looks to me like the global config variable PUBLISH_RELATED_ASSETS is
>> going to mean that related assets are published, which is normally what
>> we want. Is there a way to override that behaviour in a single template?
>
> There is not, sorry.

Hi,

Hmm, oh well worth an ask.

> Why would you not want to publish them? Won’t you have 404 links if they’re not there?

Some of our stories are added to a 'paid' desk in bricolage which allows
our Australian office to pull them out from the API and make a full
version of our regular magazine as an app.

In addition our usual workflow is to add stories from our print mag at
the beginning of the month and then trickle them out during the month.

So, for the contents page, we have some related stories that aren't to
be published, some that will be eventually and some that should be. What
I was hoping to do was just pull the titles and teasers from related
stories without needing to publish them.

Cheers,

- --
Charlie Harvey
IT Director
New Internationalist

t: +44 (0)1865 403249
f: +44 (0)1865 403346
w: http://newint.org/
k: http://ox4.li/gpgkey/

New Internationalist is an independent not-for-profit communications
cooperative. Our multi-award winning magazine, New Internationalist,
brings to life the people, the ideas and the action in the fight for
global justice.

New Internationalist Publications Ltd. is incorporated in England
under no.1005239.

New Internationalist, Old Music Hall, 106-108 Cowley Rd.,
Oxford, OX4 1JE, UK
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCgAGBQJUBG1SAAoJEPytMqUZaqlzzucQAJyKdneDOCMTIGhu/7SY8K1h
jEmRnFdrjs3HHVlZ/6B/Csu9mbRBHxOBfdM38qLKJirOe4VAnBdDq3/0qhwRlpv+
S3w4d6F/PrkH5RnnHt+3qzcKmSuvZncMcIoUSa456Jwo4QzrgA58vslJvn8wTxyv
5AJ95UctJ3yG+XQGp51eFDf5JX/pX+3h9Oj5FbZcVKH/VI9n49Q7j4bYenINauHh
vJ5C8U/UIy5EivGBDJziSriuZvDDYpQaR5JFNV3ikootlVpAcq4Xpq76XJIjKXCn
3SsmIEYUMmI3vJ4SLi1NEFBPbZLOAQqpVTaHciCV3c/nqGgVn7z9uJM/qdFvtZDJ
cfB74nDCOepYt3bll24JvoMb9fijpqYH8Ug2SO0kz6BDOESPYqVWjgy8F4komdF6
JOW88N4nIyZng59TX4cJ3zlU91vVbGEiuWNDLHdqcH6ED/kPK1ylQTPtD6GKWasv
Mw7lDkjL+b7aD7HxsZ7WuNlfakPP3MrCB/HH/oaFBdjSpKFxzYise0oGrLvHC2RX
owlnizMAgAXQaQriMwpklEZ8c6w+bTMCRw1rNY/5kaYAkkz++8LNUpXwRLjpxYoL
FOc6J/APxkgKsHJDUcVUcn7r2BfbBxWQYlCRjuQxk4pUb+Xvzxr2cZLpdStImGmH
NTR3UcAGeK9kMEUrq5KB
=FEcy
-----END PGP SIGNATURE-----