We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Parsing PHP in Slider Contents

Development and Programming

sartaingerous's avatar
sartaingerous
8 posts
13 years ago
sartaingerous's avatar sartaingerous

Hello, The home page on our (company) site uses a Slider Content area to display the main portion of the content on the page. The previous developer did it this way, and ideally I wouldn’t need to change it. I need to add some PHP into this area to test for a variable in the url, and have it change a link if the variable is not there. I can parse PHP on the templates, but not in this area. Is there any plugin or anything that will allow me to do this? I tried using allowphp with allow_eecode (as a different post suggested) but I think that will only work on blog posts. And as I mentioned, I could parse PHP in the index template, just not in this section. And I am fully aware that using Slider Contents might not be the best way to go about this.

Thanks!

       
Bhashkar Yadav's avatar
Bhashkar Yadav
727 posts
13 years ago
Bhashkar Yadav's avatar Bhashkar Yadav

Hi Sartaingerous

I could parse PHP in the index template, just not in this section. And I am fully aware that using Slider Contents might not be the best way to go about this.

You want to use PHP but can’t use in slider’s section. Could you please clear you requirement. Are you embedding this section OR this section is only JS code?

       
sartaingerous's avatar
sartaingerous
8 posts
13 years ago
sartaingerous's avatar sartaingerous

The section is just HTML, and I need to parse one line of PHP to change a link based on a variable in the url.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.