Start now free!

Forums

Search  Users  Rules 
Close
Login:
Password:
Forgot your password?
Register
Login
 
Pages: 1
Reply
CMain::AddViewContent
 
Hi,

Can someone please explain the CMain::AddViewContent function?

I want to change a banner on every page accordingly to the content of that page (some pages just normal banners, other pages banners loaded from an iblock)

Is this the function i am looking for?

Thanks,
Ruud
 
Hi,

The Advertising module doesn't include this feature.

The CMain::AddViewContent() method allows you to specify the place for content output that is generated at some point later with the CMain::ShowViewContent() method.

For example, using these methods, you can display the date that pertains to a news item (from the page content) in the site template.
 
Hi,

I can't get it working.

I didn't meant an advertising banner, but just an image banner for design purposes.

Yours,
Ruud
 
Please contact our Helpdesk to resolve the issue.
Pages: 1
Reply
Users browsing this topic
Reply form
Enter your Post*
More
Files:
Drag and drop one or more files here
or select a file from your computer
Files:
Upload files
 

Bitrix Partner Network has more than 7,000 IT professionals who put their trust in our technologies and assist customers with installation and maintenance. All Bitrix Partners enjoy lucrative discounts on our products and services. Join our Partner Network now! Submitting a Bitrix Partner application is very easy and quick!
Partner Program
Free Online Training
Subscribe to Bitrix News