vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v2.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 06-27-2006, 05:50 AM
JohnnyBGood JohnnyBGood is offline
Junior Member
 
Join Date: Nov 2005
Posts: 15
Default How to add a template

Hi

I have some html code that I want to be displayed inside a module. I have read that it is best to add a template module rather than a BBCode module for this, but I can't find how to add a template.

I have tried just "adding one" and I have to select a template to include. I'm not sure where this file has to be at all.

I would areciate answers in the form of an idiots guide if possible (i.e. step by baby step)

Thanks,

John
Reply With Quote
  #2  
Old 06-27-2006, 10:09 AM
KW802's Avatar
KW802 KW802 is offline
Administrator
 
Join Date: Mar 2004
Location: A galaxy far, far away...
Posts: 5,030
Default Re: How to add a template

John,

There are two different ways of displaying HTML templates in a CMPS page. You can either create a new module or you can create a new page.

The biggest question is: Are you trying to display an existing HTML file within a CMPS page or are you trying to display a small HTML snippet within a CMPS page? That answer will determine which steps to guide you through.
Reply With Quote
  #3  
Old 06-27-2006, 12:23 PM
JohnnyBGood JohnnyBGood is offline
Junior Member
 
Join Date: Nov 2005
Posts: 15
Default Re: How to add a template

Hi

I'm trying to display a html snippet inside a module on a page. In this case it is a small form to allow newsletter subscriptions.

Thanks,
Reply With Quote
  #4  
Old 06-27-2006, 07:15 PM
MortysTW MortysTW is offline
Twisted Monkey
 
Join Date: Apr 2005
Location: California, USA
Posts: 138
Default Re: How to add a template

Well, it sounds like you were on the correct path.

When you selected NEW MODULE, and you chose TEMPLATE module as the "new type" of module, it had the NAME, Postion, and other boxes and then there was the larger box that you put your snippet that you are talking about into.

And then it was asking for you to give it a adv_portal_SOMETHING_HERE name. So give it a name of whatever you want. adv_portal_snippet_of_html.

Make sure you put that snippet in the large text box for the "templates' content and click teh SAVE button at the bottom of the page.

Then if you ever want to go back to edit that template again, it will be located at the top of the list of templates in your adminCP. With all the other templates for your site. Not a special location for vbadvanced.

AdminCP > Styles & Templates > Style Manager > Edit Templates (Drop down list top right corner)

You'll notice the list of templates, and that template module you created automatically created a corresponding template that YOU gave that name to.

You should see your template towards the top of the list titled adv_portal_WHATEVER-YOU-CALLED-IT

That make sense?
Reply With Quote
  #5  
Old 06-28-2006, 03:52 AM
JohnnyBGood JohnnyBGood is offline
Junior Member
 
Join Date: Nov 2005
Posts: 15
Default Re: How to add a template

Thanks Mortys

That makes it perfectly clear. Although I think the guys who wrote vBa should look at rephrasing some bits as it was asking what template I want to include. I sounds like from what you are saying that I am actually naming the template there.

I'll give it a try, but it is all pretty clear now.

Thanks mate.
Reply With Quote
  #6  
Old 06-28-2006, 06:49 PM
MortysTW MortysTW is offline
Twisted Monkey
 
Join Date: Apr 2005
Location: California, USA
Posts: 138
Default Re: How to add a template

Yes, you're right. YOU are doing the naming. The thing there is, you CAN give the name of an already created template I believe. I've never personally done that, but I believe you can.

But in YOUR case, you are CREATING and GIVING a name for that template that your module will be using.

Happy to hear I helped. Enjoy!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add this in template gblue "How Do I..." Questions 5 03-20-2006 12:06 PM
Template help... colinmckinley Troubleshooting / "How do I..." Questions 4 03-12-2005 01:33 PM
Anyone have a template like this? Tortured Chit Chat 5 03-10-2005 11:16 AM
would this be a template mod? shortbus Add-On Modules & Modifications 2 12-22-2004 09:51 PM


All times are GMT -4. The time now is 11:03 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.