Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.4.0 #42

Closed
johanjanssens opened this issue Jan 8, 2019 · 0 comments
Closed

Release 0.4.0 #42

johanjanssens opened this issue Jan 8, 2019 · 0 comments
Assignees
Milestone

Comments

@johanjanssens
Copy link
Member

johanjanssens commented Jan 8, 2019

Related PR's for documentation purposes

1. Joomla Pathway support: #26

Ensures the Joomla pathway reflects the page hierarchy.

2. Page decoration: #27

Ability to decorate an existing Joomla menu item or page. The Joomla rendering cycle is intercepted after the active component has been dispatched and the returned by the component is then injected in a page to be decorated.

3. Add theme:// asset path: #29

Allows to use theme:// in pages and templates. Will be rewritten to the base url of the active template.

4. Page ordering support: #33

Pages can be ordered per folder by adding a .order.[format] file to the folder that specifies the specific ordering of all the data files, both files and directories can be ordered.Typecan be any data format: YAML, JSON, INI, PHP, and XML.

5. Allow to define template filters per page #35

Added a process:filters page property which can contain an array of additional page filters.

6. Improve Markdown support: #37

Added additional filters to improve markdown rendering. New filters are: markdown, partial, toc and highlight.

7. Allow page() method to return active page: #38

Ensure access to the active page object at all times using the page() template method.

8. Improve http caching: #40

Implement framework changes in: joomlatools/joomlatools-framework#242 to ensure http page is working as expected.

Additional improvements

  • The $page variable is now only injected if the page is a single page. In case of a collection the $page variable is not longer available.

  • The active page object can be accessed everywhere by using the page() template function. If you don't define a page path it will return the active page. Eg page()->title

  • The page object has an additional 'text' parameter that gives you access to the text of the page, if the page includes a <--more -!>it will return the text below the tag, the part above is accessible using $page->excerpt

  • You can now access page properties in your layouts. Eg, $page->content or ktml:contentdoes the same thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant