-
1. Re: Business Catalyst Help | Using custom templates for modules
Gar@rain Feb 15, 2013 5:19 AM (in response to Community Help)Can you please clarify in this documentation where the template information will appear in other cases such as the blog post, particularly in the cases where there are more specific instructions in the tag (i.e., for number of rows etc)e.g.: {module_blogpostlist,-1,2}
Thank you
-
2. Re: Business Catalyst Help | Using custom templates for modules
Vinayak_Gupta Feb 15, 2013 11:01 PM (in response to Gar@rain)The template path needs to be specified at the end of the module and must not have a comma between the last parameter and the template reference. So in your case, it should be {module_blogpostlist,-1,2 template=”/path/to/mytemplate.tpl”}
You might also want to check out the following document for a list of modules where you can apply your own templates as attributes.
http://forums.adobe.com/docs/DOC-2573
I'll post the relevant information from the article here for ready reference.
Q: I have tried to add the "template=/path.html" parameter to a module but it does not work. Is there a specific list of modules that this attribute works with?
A: Please find below the list of modules where you can apply your own templates as attributes:
module_literature
module_announcement
module_faq
module_forum
module_blog
module_case
module_order
module_webappscustomer
module_affiliateprogram
module_industrycontentresults, module_webappsresults
module_booking
module_catalogue
module_product
module_productresults, module_productresultsold
module_ratingfeedback
module_caseresults
module_webapp
module_blogsitepost
module_blogpostlist
module_productfeaturelist - it does not have a customizable template, but uses the product template to render each product.
The template parameter will specify an alternate template to be used when rendering each product.
Thanks,
Vinayak
-
3. Re: Business Catalyst Help | Using custom templates for modules
Gar@rain Feb 18, 2013 12:26 PM (in response to Vinayak_Gupta)Thank you for your response.
This {module_blogpostlist,-1,2 template=”/path/to/mytemplate.tpl”} does not, however produce the expected response.
The module content does appear, however, the second attribute (number of posts to show) '2' is not working in this configuration. Rather, it is simply listing all blog posts.
Can you please advise?
Thanks
Garrett
-
4. Re: Business Catalyst Help | Using custom templates for modules
Vinayak_Gupta Feb 19, 2013 3:43 PM (in response to Gar@rain)Hi Garrett,
I have tested this at my end but unable to reproduce the problem. The above module gives me the expected result. Here's a test page I have setup for you with the results.
http://vinayak2.businesscatalyst.com/custom-template-for-modules
As you may notice in the last example on the above page, I've set it up to use {module_blogpostlist,-1,2 template="/customblogtemplate.tpl"} which renders exactly two last blog posts out of all the blogs at my site. Changing the last parameter value from 2 to 5 renders 5 blog posts.
If this still isn't working for you, what I can suggest here is to check if you don't have some HTML between the module code that generally happens if you edit the module code in Design mode leading to a break in functionality or expected behaviour.
Thanks,
Vinayak
-
5. Re: Business Catalyst Help | Using custom templates for modules
julesbailleul01 Jun 2, 2013 2:45 PM (in response to Vinayak_Gupta)Hello, I've got some trouble trying to change the design of my products page. I've changed the code completely but it stills shows a "You are here: Landscapes
Shopping cart is empty.
This catalog has no sub-catalogs." when I go to my product page and I don't know what to do to make it disapear. Can you help on that?
-
6. Re: Business Catalyst Help | Using custom templates for modules
Liam Dilley Jun 2, 2013 4:14 PM (in response to julesbailleul01)You will need to post more information and links on that, I suggest you start your own thread though as your issues are not really relevent to the topic here.
-
7. Re: Business Catalyst Help | Using custom templates for modules
jefferis Aug 1, 2013 10:42 AM (in response to Community Help)Are these documents related to Module Templates>Online Shopping, e.g.? When I look at the templates in the folder, they are all marked as .html and not as tpl. Also, I am trying to modify the overall catalog template to NOT display price or add to cart on the layout. I need this for one catalog, but I don't see any way to assign a separate module template to a specific catalog. Is this possible?
-
8. Re: Business Catalyst Help | Using custom templates for modules
jefferis Aug 1, 2013 10:43 AM (in response to jefferis)Also, when I look at the catalog.html, in the module templates, there doesn't seem to be any way to modify the overall layout design..
-
9. Re: Business Catalyst Help | Using custom templates for modules
Liam Dilley Aug 1, 2013 5:54 PM (in response to jefferis)No Jef,
Nothing to do with those.
This is the new method to make your own custom templates.
Read the document through carefully. In terms of the overal eCommerce layout that is the overall layout or via ftp the file is page_content.html
-
10. Re: Business Catalyst Help | Using custom templates for modules
julesbailleul01 Aug 2, 2013 3:26 PM (in response to jefferis)Thanks very much for your help but I found a solution to my problem. I should have told you before, really sorry about that. Thanks again,
Best regards,
Jules Bailleul
Le 1 août 2013 à 19:42, jefferis <forums_noreply@adobe.com> a écrit :
Re: Business Catalyst Help | Using custom templates for modules
created by jefferis in Business Catalyst - View the full discussion
Are these documents related to Module Templates>Online Shopping, e.g.? When I look at the templates in the folder, they are all marked as .html and not as tpl. Also, I am trying to modify the overall catalog template to NOT display price or add to cart on the layout. I need this for one catalog, but I don't see any way to assign a separate module template to a specific catalog. Is this possible?
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5559085#5559085
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5559085#5559085
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5559085#5559085. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Business Catalyst by email or at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.
-
11. Re: Business Catalyst Help | Using custom templates for modules
mebellew Sep 10, 2013 7:04 AM (in response to Vinayak_Gupta)Hi all,
I need some help using custom templates, please, which I'm hoping will be easy for someone to answer ;-)
I'm setting up 2 blogs on a BC site and want to use 2 different layouts, I was planning to use the standard blog overall layout, list layout and detail layout for one of the blogs then create new versions of the three layouts for the second blog using custom templates. I've created the template (.tpl) files, uploaded them, created a new page for the blog and I and have inserted one of the modules that displays a list of 4 posts into that page, as follows... {module_blogpostlist,352,4 template="/templates/case-studies-projects-list.tpl"} and this works fine (albeit I still need to apply styles).
But where I'm stuck is, when someone clicks the post title link or read more button to open the post in detailed view, because the detailed post page is dynamically generated, I don't know where I can insert the a similar module that displays the appropriate detailed post view? At the moment when someone clicks the post title link, the post detail is displayed but with the standard blog detailed layout, not with my custom template (obviously, because I'm not specifying this yet.
Hope that makes sense.
Does anyone know where I place the module (that calls the custom template) for the detailed view for dynamically created blog pages, or know of another way around the above issue? Any solutions or ideas would be greatly appreciated, I've spent hours on it and cannot work it out :-\
Regards, Mark.
-
12. Re: Business Catalyst Help | Using custom templates for modules
Liam Dilley Sep 10, 2013 7:17 AM (in response to mebellew)It does not work like that mark. You still have only one detail layout. These custom templates are for only the supported list layouts.
-
13. Re: Business Catalyst Help | Using custom templates for modules
mebellew Sep 10, 2013 8:09 AM (in response to Liam Dilley)Hi Liam,
Thanks for letting me, saves me wasting more time on it. It's a shame, I thought it was possible with module_blogsitepost because the Modules Quick ref guide specifically states this is rendered with the detail layout and that module supports custom templates, so I've perservered thinking I was just being thick for not being able to work it out. Back to the drawing board. Cheers.
Regards, Mark.
-
14. Re: Business Catalyst Help | Using custom templates for modules
Liam Dilley Sep 10, 2013 2:31 PM (in response to mebellew)Every list layout can pretty much have most of the tags the detail does.
That's what it means.
The detail is a specific page with URL and at the moment natively there is only one layout.
-
15. Re: Business Catalyst Help | Using custom templates for modules
mebellew Sep 10, 2013 3:36 PM (in response to Liam Dilley)Ok, thanks Liam. I've worked out a way to achieve what I need now. I've used 2 additional page templates and 2 layouts for the list views (one uses a .tpl file) and it works a treat. But that's after you set me straight on the current limitations regarding the detail view, so thanks again, Liam, much appreciated.
Regards, Mark.
-
16. Re: Business Catalyst Help | Using custom templates for modules
divineunity1 Sep 24, 2014 4:17 PM (in response to Community Help)Good Afternoon Liam,
Can you explain how the custom template works with regards to making your own custom buy now button for {module_product}. We have several items that we customized buy now buttons outside of the product layout in the online shopping module but still have it linked to bc so when they click buy now they are sent through the check out process. Can you help me with this. I have created the.tpl for the button I want to use for the products.
-
17. Re: Business Catalyst Help | Using custom templates for modules
Liam Dilley Sep 24, 2014 6:43 PM (in response to divineunity1)Hi,
That is not related to this.
If you have a button for a product outside of a product layout it will not function. The scope of its functionality relies on information such as the product ID to make it operate to addto cart.
To do so would require custom solution, utilising the add to cart BC code and server side functionality and passing and knowing the right information for the product. This requires the top top end knowledge of BC and only a handful of us are able to do that.
I would advise for you not to go down this route and use things like the featured product module to list tagged products and use the custom template layout feature outlined here to have a small product layout shown, and if it is just the add to cart button then that can be done.



