Featured articles

Display a list of featured articles from your help center that have one or more labels.

Promoted articles are a great way to present important articles in your help center. Featured articles can be used in a similar way but are more flexible because you can filter the list of articles not only based on whether or not they’re promoted, but by other properties like labels.

The example below demonstrates the use of a custom article template showing articles with one or more specific labels.

Featured articles by label
View code
870a88fa852f76ef21edeb2adc923dfa7097a678ce98369ae87057788383f8fe5b4e664124d796969fba7fbf42287bf0fbb072838ea13091c5d1e2ed96b006320329548b0ab7cb59d38bd05edcca5e198d46c56a6a2ebce1130c895d21dd9db1a6aedd2a41b2c39036b0f4110f69746e1bed871bb8027e1dbf703aa79573612b7a7cf7b2868514e42e5e9478ca6701ee979eb3152f364494b557fa441d6dddacb1103e5b8e5edc2dc8868ad20f476a4b212b79a3396c5b857606cc8cf9f48d3d7bb391ac339793db50997456226748815b8621e2eaf3866f98132b33ddbb1ce0d8478681b58e54ffa5fb0f7f23c27313838e9f88bf0cdd54b6966f2e6acc76117d84a41ca5582f0ddd6c30ceff8b1353bc1120230b79e04521a2a48b014ed2659144a0a322aca5120b99871b33f7a682a3ec3d93e9455e22696dc2a66194745556dafe263280b06c7451ea9572f7dc6edf118e748cbb613ead5c56e40dc7d583a8b688729411e0641be3899f2ad558a8950e48a44352c1015b617f265a31f4f4be2c26d7963a48b77fb8e3bc5d90efce5ca52bd390f8cfdea019894adc8113ec9815d100b9d20cd14932c752550291d3e1b903065dafc0f082a3e95e989f77c74f4e76f08605b0f546d7eb2319a9358f8a659f20823555bc2827c59fdddc9fa9fb50400c03380b9f31b8fbb9522e55fcd31f123a9ff2bfc670f9afd38dd0114f7c456c6d78c3554bec0a7617f29bfc36f7d472867dc6a52ae5eeb7f0788d9b33ad7074e47244863b9e00bc8120754ba315e94ec71558804b16fc800c7b224c1069a98ac64c464b4f6b460a23406464ed11b392f48a1782a8253a9d182dbfd3fc4f2266a4e72d66e1bac934d0df60c4309d5c2246a04403c67ba55248999ccac899558e703353af32ccfe7b6d8673849b910068e5a52a1e8abbb36945b7f3a51fa16c485a1df9098488271d3601b1776536462615a44217d896fc83e2c1dd3a300c4885702abca9ce9247da9564e1abec0c2502f9dde8fe901ca2db8e2473916ae706f3a817809b5e6e208f027ffd6cf983c8458a60d98d1c652f2ffd80bd0a90c4e47bceaa0766db10c9e15d6383c37f07239f0589a5d502c56b06914e951e3bbd205aa37a8842f7adfaaa4511d56821f928906be2f9d4499e1508cd9571d287c537b85063cdabdab98454224b18fbcae5397a4d864eaf2e7f5189a49f8d35c0643f764c6810f9cb4809d476bff78493587e746fe548b066eaac437879988bf3871ec9e7e5a881ef9ef90a0fd05e2057e3e8c05df270f62b9d5c9d3b58bf05ac5872bd87d041009b7f2017767a93ec0bec8f4cf302ec9c7ce5b5c9d6732c7e06e6516f4a1f3dc80c8b03ecbaccb70c893903a1e8181d5ea8df0fd53df39de9b9503f54a53f11f267db452e996a2d290e9f8de348772d18d0c72faf504fc818cf22038bdff8222b782ec86604bb14696209f654df5408f7525f53af21d387342d8a7655aaccbe49d6d2a35e04daf0056d66cf202f4159dd4fc282a4f178e1026b77315dcfd6be4e447e45f5c4058262b47fa6e62545df732bba9ef34081068e5085973c1475e54518e2f0845710b1a20a82e827ecf93b979b74bdd84d67334a58f726ed49e5461e3d038f839925448d4df97bfb271304635827aedd942308e8253cb3662076c233608f07ce68f61b3e67d9b0978befd1606c7b0f8f9926083084d9ed58fa6eb9fbde5676250d2e294636e5e8f477ca3f47127908e62b553937e9faf837757d249ebf72397207522c4eb33d3cdf1770c8f29b100a0dbfda24c8d12137587fb95ffa516f292aac0bce619918f3472bf5fd825cb97d943a45916c07048377127e40b4ad51b1aa3c6ed6cd1ab0c9c7ca44060ff4cec3307da222a562bb43783fb4515af4ce78df4da28a607fd746a6b1a5f4dd11123b8b35de7a87c33c2ec03c6df5cd9261e9d09a690710bbaf4b123ba40241c0d7a956ddea4fda2991c04a85d0585df165770735d8622760aa03d9c3d4a851eca8a96f7ab124c992a5675e448aa89ca88fd9f7a5219c3dae0e7c4bae0e3db5286ca5d9be4ffdb3c5c7014f7b45121833c1ac4666afa90439e21e5b38f9d9c4496b5531f1b12521cd7509b3d1634e9f41a8dccf022d90a540e023d1cab5a8cba50c7404a0802af764100834094135eac8dcce5a7c7c625ad0f14d9d19f30cd0a5566f68fd54c02401741505da0ded443d1d08d12f6022fd4766133cd9fb630945b993d5b4ac425fb061fc9a5246eb6eac8d718c7f05eecd338103fcd31520301fbe40206108e84eed4eea51078c9baeebeb1c4ccb80fa55b7199272339cb0244ef2fdfbbed7276e2e39c644eb23f7809b7113b41291979c563e5e73588a15595cefe15491fb27179de343de59b87f37797498195a263938eae92b71f85ea95af5509e71e5cf563cbf424e583b5a3e6636f9a06107ebeadd1a6d9f539194fcdd971cab5f2445c6a47ab55fb59c03aa5de3141f4e9ef04e7157d072dd7841d0235022264a3b775610b2e1df2813549c4d375ea5be42056eda63cd852602a889447085493e06ea66e8adb48d456640198f090a38a177fc3294515dc1064ef5c8ee29e97c5952923139f92b6144fe12887c15bdbcf5751e2290513d5eb0de0f645b81ec674561e5cedbe7bd3dcc53d02eb9258deeabbf211d7be7d0c710ec0dd78c744614d6fece9b8e1a7cb2cb511d2ef92a8495770386ac22a386c996421560735f3e1188af5783f845320fc7192753ddb2532021c68aa4f7cda2786d767d4b1a7e48dab4d4e1a9911a4397b9bab10a7ad3157ab5ada41b98fe5f166ee3aad6eddc0130f6a252adb2da95752e97fbf5ea57acde9fd8fcf77d985c6b09e16b07a39bd2ae8916ddb917e9f0cfd9d5dfee4935f88689d54dfe1cd7a9ab228a35f1b6eb9faee65976bf4d7279b80e2fc3cd2409a592c989c26c47f376cf40fd65455c94673235b8ec926c3236f4fd785d915f2553048e4b9b9a34a565b953b6586d81fa29dee34e8217da2d533171182c8f9622895906cc34889b4a07c3aa58cba175de7e79714ef253b06be210c2238f8a221cdd8a6baebaa70e523cdadc3f4567a74fdd38697abf76f27649b2efd20d8778ca3124ee362de3004b02322fffec7396f6634b538c3ffcb36624992708425f30b2a0b8e05bbf44f8fe98064acb0d23127a38162d3158fa959df772e018a142a302f5f7eacb8954848fbe0d526e9e25bf6184ec8f340030ea806b14eaf5cc5bac42bdbb146d13a1a0427ff2f372fb2847aab64aa273b388428e35383cfe81b5cc622b6dd6c0d5c94b23de7934fec906dbfa14461a2cda87f8982373956c5a78a309491d48fe9060b89b8be2527d81a5e8a7ea860d63ab0c293523265d9c9de67731a1275a7c1379550f45143d7528bf321ff279e3304ff1706a0ec98b072760262d33721b24ca5d2521bf891eb631ba63ccfd2a0627c17d228076642b6eafd039dc8a68577caaaa455efa7cb84c8dd703c936b3b8aa796075c0df2338273bf3d20a7bc6b4ec6568742d44e2a17f74a64ed9d6814f61fe67c77ae56374de93c00fda4ea231ffbd52cd546537dcebf6d4d33ae14ab1bb443967a1e309113d47bc72e7c48d11d1ac33af70f0f89143793df9599957e704a96b8bdd86f6a28208ab945fd18135bad36385daafaf83297077c61d3df97e2868d7daf36a0f6f87d58ce902065c0a654ccb4b30252ca2b26dc40cb6131117b76e237154a6a9f027497e712d78e826011e97fc0ec207cb7619c7e1a1184340482c8289d95369603d3c1047e808f761a177d2af345c0181f0aa45015cbbfcec6bffd2c8285fe7aea88c9b2fa5d09c153e8970059e5d1f0d4bbed014bee1e680dc7b54216ed43ea32fb489fee9119a68a5c0afa42e51b59e2671300f6b0ef6bbaecc5125a4140d882bfbac4b294b4a4966d110d2cd241e494f24b38a3bc7f4758d44b32427e9de7225fae73b30ee6983fa4baa1df809314bfe3f58e2442e44d25b5104eb86dedc80f7391c38117451eb33545d009baccd5e85135d5cd5e31a8395f23b741e50037f33897154420ec86d8092ada85bcde52e64bfbe8b797babe199e5f7df78402b83da85640c99126afb70b3a5e0973ac63e5010d372bd52b52bf86eee7f0913be28af34737a892073b8ef9613bfcb5352f2ae8a75a0791419f4861f5e4375dcb6e7398582c2ffc305e1510fe210142066ab6e384dc659eae45e767c42dd94d94076a8804b8d58ffcb8acc46cb82846d475fe0a21c3e2de08baa6572cfa4df1ede1fc9a548ec98bb173e4be72c5dfbc253a78da02c00eb9c62c3136302a9c722e8738686820301ea774660619674542d01810480b2b470843dd68296faf7139d90be129a71ba66e492d2eb199db09a73e18443952009d04df4984a515a3b585c47eff995e4a074d810c0ff24c36571a6ddf20b0571b20b03c3a195f5201ff029a0baeddc6659bc2629c84b6f399df0aa9c17d82510d21f5555756b8544cc4260aba0296dd812d9cbf74ca50d044c083026dfa812b9433a187bcfcaf507bccc32818df891f74da912e5d77300e7604a5f5b6566f53b923fa917895fbc283e09129e7eb30d8e13cc207a2e43448321eca7e0b948dc0218947882d58a62dfbed9bbb9e8b6806c150573d0bca8eb8376f0e5c9c8ed39586716b03f1d4cd63486409de80b4f1c674fbab21b1275366454b79f2e89072c06bbc4853f22a6db184dba1e7123fe480c153ee75176960402c9fe7f69d74b711e3a798760d50222adaa1382499768b6462084cb3b8315a6c6e4f077a0938edcad28c3cabb11b603c76194a2d116b0ae3a6255db2758d41a7a51644cb9e399e320bd2168ce6b7060c9403e433ae126da30f8ae261f2e3f2ba98db28cfcb6a3e72b6c79d72e1708b47b2e3044cebf3d6f9dd487e77c35287e091d083ec81b861382574a6bac1edb4f3446225c65ea6cf53b1c0bcbcdd7a51e60531d712904f3d385b2b3bb4311737b4d77bbe725a5e77c6d74a94efd70f356a1c13adfee8cf2bf4727703e02a283c9ffcbe0a9327c54ffb4c850b229a424a4a8159996bc26cf41c917040517c42c451444e6ad8ebe60d0db5f68253ec6a0a6aa95b51b70d558a27384226d108f3c37c0293a1b344fb53e8d622491bde6449b584e93fcf978c0aed09ce244986d2252fed1ae8aba9f90bdd0314e2f14de1fd1bd248806906ff1e56c8c5a28b5cbe85fdd41d4

The articles can be filtered and sorted in any way you like, for example by created or updated date or on the basis of how many votes they’ve received.

By making updates to the micro-template you can change the look-and-feel of the list or add new functionality. For different article list styles that you can use with this extension, check out our article list patterns.

The featured article list is displayed using our built-in Navigation extension. You can use the options described on that extension’s page to make additional design or functional changes, regardless of whether you create the article list using attributes or JavaScript.

The example provided uses the data-element="navigation" attribute to create a list of featured articles.

<div data-element="navigation" data-template="featured-articles" data-properties="..." data-template-data="..."></div>

To make design or functional changes you can either edit the default micro-template or replace it with one from our Pattern Library, updating the template ID if necessary.

If data attributes are used within article content you will need to ensure that the allow unsafe HTML setting is enabled within the Zendesk Guide settings.

You can create the list of featured articles using JavaScript:

<div id="featured-articles"></div>

<template id="tmpl-featured-articles">
  ...
</template>

<script type="text/javascript">
  ready(function() {
    new Navigation(document.getElementById('featured-articles'), {
      properties: [
        "id",
        "name",
        "title",
        "body",
        "html_url",
        "position",
        "promoted",
        "draft",
        "section_id",
        "category_id",
        "created_at",
        "label_names"
      ],
      template: "featured-articles",
      templateData: {
        heading: "Featured articles",
        labels: [ "a_label" ],
        excerptLength: 120
      }
      // Additional options go here
    });
  });
</script>

The example above supplies the same option values to the plugin as the data-attribute example. This may be desirable if you need to fetch additional data to pass through as templateData before rendering the list.

Related extensions

Animations and transitions Free

Animations and transitions

Add engaging animation and transition effects to elements.

Article navigation Free

Article navigation

Display links to next and previous articles.

Carousels Free

Carousels

Present content in well-defined and easy to follow steps.