Skip to content
This repository has been archived by the owner on Jan 7, 2021. It is now read-only.

Commit

Permalink
Wrong file name ... fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Bellfalasch committed Jun 11, 2018
1 parent 3c23845 commit e39a8b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/developer/site/contributions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ A few ways to use page contributions are:

Added code from page contributions will be aggregated from all controllers before generated the final HTML. Any duplicate page contributions will be removed, making sure the HTML is not bloated.

To use page contributions, your component needs to return a ``pageContributions`` property in the response of your component, meaning in the returned JavaScript object (where you usually put the ``body`` property). A full return might look like this. As always, the ``return`` goes at the end of your component's controller.
To use page contributions, your component needs to return a ``pageContributions`` property in the response of your component, meaning in the returned JavaScript object (where you usually put the ``body`` property). A full return might look like this (as always, the ``return`` goes at the end of your component's controller):

.. literalinclude:: code/page-contribution-intro.js
.. literalinclude:: code/page-contributions-intro.js
:language: javascript

Changing the ``headEnd`` to one of the other possible positions will change where the code you contributed is added in the page's HTML before returning it to the end-user.
Expand Down

0 comments on commit e39a8b1

Please sign in to comment.