Render Template file for specific content

22 views
Skip to first unread message

Paul West

unread,
Aug 24, 2016, 6:26:17 AM8/24/16
to QuickApps CMS

Hi All,

I'm new to QuickAppsCMS and I'm investigating if it's a good solution for our marketing teams new site. I am using V2 as I want to use CakePHP3

I have read the following page http://book.quickappscms.org/designers/rendering-content.html#specialized-renders but have not been able to find an answer to my question.

Is it possible to create a template file for one particular content page? 

The marketing site will have very specifically designed pages and I want the front-end designer to build these as files not within an editor.

Thanks,

Paul

Paul West

unread,
Sep 1, 2016, 7:01:58 AM9/1/16
to QuickApps CMS
Just if it's helpful for anyone else. I created a plugin that has a listener that hooks on:

'Render.Content\Model\Entity\Content' => 'renderContent',

that looks for the template file on slug.

Chris

unread,
Sep 1, 2016, 1:45:33 PM9/1/16
to QuickApps CMS

Hi,

At the moment you can only create customized renderers based on `content-type` and/or `view-mode`. QACMS basically tries to use any combination of these two sets, and if fails then looks in each set separately.
We could allow rendering based on content's slug but we should define some rendering priorities and combination rules. (`content-type` and/or `view-mode` or/and `content-slug`)

You can open a new ticket at `https://github.com/quickapps/cms/issues` and suggest this feature.

Chris

unread,
Sep 20, 2016, 2:25:00 PM9/20/16
to QuickApps CMS
Hi,

W've recently added this feature, so you can now use templates for a specific content as described in the book:



PS: Update your installation as usual: "composer update" to get this patch


Hope this help, best regards!



El miércoles, 24 de agosto de 2016, 12:26:17 (UTC+2), Paul West escribió:

Paul West

unread,
Sep 21, 2016, 6:31:33 AM9/21/16
to QuickApps CMS

Awesome, Thanks Chris.
Reply all
Reply to author
Forward
0 new messages