This forum requires Javascript to be enabled for posting content
Search
Select Forum
Announcements
Troubleshooting
Feature Requests
CSS Styling and Layout
Show and Tell
New/Recently Updated Topics
FireFox/Safari Submit button does n...
No tracking tab
CC Option for User e-mail is blank
Comment does not display
Automation?
Widget Title formatting?
fatal error
Don't show #usermessagea in URL
Tracking problem
Need to add additional parameter to...
cforms-captcha.php
Paypal integration
Generate PDF?
random in a multipart form
Customizing CSS for Form ... Having...
Post
Shoemaker - Guest
2:59 am - August 14, 2008
Please replace the ??? with your data!
[desc]: I would like to get the cforms header on a category page. I added the code to the category template and it works great with header enabled for all pages, but I only want the header on the category page.
insert_cform(); is not enough to get the header.
I'm optimizing the site for mobile devices and the javascript causes the pages to load much more slowly when the cforms js is loaded.
My example is "Ask the Expert"
http://animatedtrafficlaw.org/atlc/category/ask-the-expert/
I could probably move this to a post and work around it, but I just thought I'd ask...
Thanks,
Shoemaker
Oliver
- Admin
8:07 am - August 14, 2008
posts 3562
currently, you can only limit the pages that'll contain the cforms header by providing a post or page ID under "global-settings".
If you want to apply logic that does it for categories, then you'd have to
eliminate the cforms header altogether (apply a fictive post ID above)
and add the cforms header 'manually' to your theme header.php file
inside an appropriate IF clause (checking for the current cat)
Reply to Topic: Add cforms header to category page
PLEASE READ THE FAQs FIRST! THANK YOU.