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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-15-2008, 10:54 AM
MRMRacing MRMRacing is offline
Junior Member
 
Join Date: Jan 2008
Posts: 13
Default Different template

I want a different template adv_portal_newsbits on two different pages in my site. How should I do that?
Reply With Quote
  #2  
Old 02-15-2008, 01:11 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Different template

What exactly do you mean? Can you elaborate a little?
Reply With Quote
  #3  
Old 02-15-2008, 01:22 PM
MRMRacing MRMRacing is offline
Junior Member
 
Join Date: Jan 2008
Posts: 13
Default Re: Different template

On one page I would like to have the news module like it is, and one another page I would like to modify the adv_portal_newsbit because I would not like to show date & time and tread infor here. I tried to make a new module so I can make another adv_portal_newsbit called something else but I can not have it to work.

Last edited by MRMRacing; 02-15-2008 at 01:30 PM.
Reply With Quote
  #4  
Old 02-15-2008, 03:06 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Different template

Your best bet would probably be to edit the adv_portal_newsbits template and wrap some <if condition>'s around the code you don't want displayed.
Code:
<if condition="$pages['name'] == 'page_identifier_here'">

Code to exclude here

</if>
Reply With Quote
  #5  
Old 02-15-2008, 07:47 PM
MRMRacing MRMRacing is offline
Junior Member
 
Join Date: Jan 2008
Posts: 13
Default Re: Different template

It did the job thanks!
Reply With Quote
  #6  
Old 02-17-2008, 04:38 AM
MRMRacing MRMRacing is offline
Junior Member
 
Join Date: Jan 2008
Posts: 13
Default Re: Different template

Maybee dumb question (still learning)
What should I do to make "Else" work in this code?
Quote:
<if condition="$pages['name'] == 'dealer'"> $news[title]
Else
<a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$news[threadid]"> $news[title]
</if>
Reply With Quote
  #7  
Old 02-17-2008, 06:17 AM
MRMRacing MRMRacing is offline
Junior Member
 
Join Date: Jan 2008
Posts: 13
Default Re: Different template

Never mind foun dit!
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
Alt. Portal Template (ala Alt. Module Wrapper Template) jw0ollard Feedback & Suggestions 8 04-22-2010 06:24 PM
Template - If in vbA bdude "How Do I..." Questions 4 09-06-2007 11:39 PM
Template MIA LCN2007 Troubleshooting & Problems 3 08-13-2007 01:45 PM
Where is this template? bhxtyrant "How Do I..." Questions 2 09-03-2006 07:54 AM
Add this in template gblue "How Do I..." Questions 5 03-20-2006 12:06 PM


All times are GMT -4. The time now is 03:48 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.