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 03-06-2006, 08:11 AM
Decipher Decipher is offline
Addicted to PHP
 
Join Date: Feb 2006
Posts: 62
Default picking up custom page content module

In the adv templates, using this line <if condition="$mods['identifier'] == 'news'"> I cannot use the same code to pickup different modules, just the news module..I would love to be able to say if the module is Custom Page Content then do something IE <if condition="$mods['identifier'] == 'Custom Page Content'">
I have tried all variations of Custom Page Content but it just wont pick it up. Does anyone have any suggestions?
Reply With Quote
  #2  
Old 03-06-2006, 01:43 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: picking up custom page content module

'custompage' is the indentifier for the custom page content module.
Reply With Quote
  #3  
Old 03-07-2006, 07:00 AM
Decipher Decipher is offline
Addicted to PHP
 
Join Date: Feb 2006
Posts: 62
Default Re: picking up custom page content module

ahh man thank you so much!!!!!
that little word right there has solved so many issues for me..i'm so glad you understood what I was asking..
nice one
Reply With Quote
  #4  
Old 03-07-2006, 03:13 PM
Decipher Decipher is offline
Addicted to PHP
 
Join Date: Feb 2006
Posts: 62
Default Re: picking up custom page content module

can i ask one more thing?
when i create a new module, how can i find it's identifier in $mods['identifier']
i would think if i create a module "adverts" then its identifier should be "adverts" but this is not the case..
many thanks
Reply With Quote
  #5  
Old 03-08-2006, 12:31 PM
Decipher Decipher is offline
Addicted to PHP
 
Join Date: Feb 2006
Posts: 62
Default Re: picking up custom page content module

i have spent more time on this and have found that the $mods[modid] uniquely idenitfies each module..
You can find out the module id as simply as placing $mods[modid] at the top of the adv_portal_module_shell template.
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
Custom Page Content Module Issue eljeffe Troubleshooting & Problems 2 08-22-2005 01:09 PM
Custom Page Content Module CareCureJeff "How Do I..." Questions 9 06-09-2005 03:34 PM
Custom Content Page Module? apokalupsis Troubleshooting / "How do I..." Questions 6 01-31-2005 11:39 AM
Edit Module - Custom Page Content TORON Troubleshooting / "How do I..." Questions 6 10-29-2004 10:26 PM
custom page content module tpr Troubleshooting / "How do I..." Questions 8 06-21-2004 06:14 AM


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