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 09-09-2008, 08:40 AM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
Member
 
Join Date: Mar 2008
Location: India
Posts: 31
Default [HOW TO] Use Variable in Title Row Colspan field

hii..

I wanted to know how can I use a variable like $mod_options[rowcolspan] in "Module Wrapper Template Options->Title Row Colspan"

It is accepting only integer values and not variables. I want to set it through one of my custom module settings.
Reply With Quote
  #2  
Old 09-10-2008, 12:12 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

Why not just set the colspan value within your PHP file for the module?
Reply With Quote
  #3  
Old 09-10-2008, 01:22 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
Member
 
Join Date: Mar 2008
Location: India
Posts: 31
Default

but that colspan value is defined in the adv_portal_module_wrapper template, right ?

This template is being wrapped around my custom template and it has colspan="$mods[colspan]" where $mods[colspan] is that colspan setting field.

So, how do I do it without disabling "Use Module Wrapper Template"

Thank you
Reply With Quote
  #4  
Old 09-10-2008, 05:28 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

Yes, but the template is not evaled until after the PHP code from the module is executed, so you can still set the $mods['colspan'] variable in your file.
Reply With Quote
  #5  
Old 09-11-2008, 01:56 AM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
Member
 
Join Date: Mar 2008
Location: India
Posts: 31
Default

thank you so much sir, that worked great ! This did it

PHP Code:
$mods['colspan'] = $mod_options['var_itemcount']; 
Just to let everybody know, that NOT setting this colspan value does not create any problem neither it gives a xhtml validation error. But is required by Google Chrome to display the module correctly. (works fine in IE and FF with/without it)

Thank you
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
CMPS colspan does nothing JamesCybert Troubleshooting & Problems 2 02-14-2008 01:07 PM
Custom field to replace entry title. azmin "How Do I..." Questions 5 10-15-2007 12:22 PM
Colspan ? Aery "How Do I..." Questions 2 05-23-2007 12:30 PM
Question on Colspan dboogie2288 Troubleshooting / "How do I..." Questions 2 03-03-2005 12:09 PM
What is the Variable name for custom field? ataraxia "How Do I..." Questions 7 01-15-2005 12:15 PM


All times are GMT -4. The time now is 04:10 PM.

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.