Where is the code located that tells apostrophe to look in the lib modules and use the blog module show.html as the blog template?

10 views
Skip to first unread message

Ryan Gittens

unread,
Jun 19, 2015, 10:02:44 AM6/19/15
to apostr...@googlegroups.com
Hello again,

I am looking for the code that tells the apostrophe to use the blog show.html as the blog template. In app.js I see that the Blog links to the blog page which is a little confusing because there is no blog page in the pages folder. 

For instance, what if I wanted to change the blog template, how would I do that?

Can someone help me out with that.

Tom Boutell

unread,
Jun 19, 2015, 10:03:47 AM6/19/15
to apostr...@googlegroups.com
Hi Ryan,

If an apostrophe npm module is called "apostrophe-events" and has a file in its views/ folder that you would like to override, just copy that file to this folder:

lib/modules/apostrophe-events/views

In your project.

You can override any template in this way.

--
You received this message because you are subscribed to the Google Groups "apostrophenow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apostropheno...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--


THOMAS BOUTELL, DEV & OPS
P'UNK AVENUE | (215) 755-1330  |  punkave.com

Ryan Gittens

unread,
Jun 19, 2015, 10:56:29 AM6/19/15
to apostr...@googlegroups.com
OK. I get that. I was wondering how the 'blog' page type links to the show.html in the module. I found it, it's all happening inside the index.js file within the module. I am new to templating so and have a bit of catching up to do so please mind my noob questions. 
Reply all
Reply to author
Forward
0 new messages