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

How to deal with a PHP parsing conflict within EE tags

Development and Programming

RipeMedia's avatar
RipeMedia
62 posts
17 years ago
RipeMedia's avatar RipeMedia

I’m using the EE’s category/subcategory concept, but in a slightly different way than it was designed. I want to display categories in a select box, and when the user selects one, I use javascript’s ‘onselect’ method to redirect to a new url that includes the cat_url_title of that category and populates the subcategory select box, where I’m displaying ONLY the subcategories utilizing the unpublished EE plugin: pi.subcatgeories.php (http://ellislab.com/forums/viewthread/27220/). Why it’s unpublished, I don’t understand, since it’s rather useful in this scenario.

My problem lies in the fact that I need the template preference: ‘PHP Parsing Stage’ to be at ‘Input’ in order to include PHP code that sets the root_node value based off of the url segment, and I need the ‘PHP Parsing Stage’ to be at ‘Output’ in order to set the Category SELECTED option to the option that was selected, also based off of the url segment.

I can’t resolved this by breaking up the template into embedded templates since the PHP code to do both is within the same EE tag. What can I do ?

Please help - thx

       
Paul Burdick's avatar
Paul Burdick
480 posts
17 years ago
Paul Burdick's avatar Paul Burdick

And you are unable to use Embed variables with these embeds?

       

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.