I’m having some trouble getting Crowbar to accept some PHP code I’m using to insert Perch content into a page. The error message I’m getting is, “A surrounding tag could not be detected. Your code was not added to the page.”
Crowbar will only throw that error if it cannot find the surrounding tag to apply the code to. Can you say a little more about how you are applying it? Is it inline within an HTML box? Crowbar is entirely agnostic about the code you insert – it genuinely doesn’t care about that. The issue is your page construction and where you’ve inserted the Action-item.
Walter
On Feb 5, 2014, at 5:47 PM, RavenManiac wrote:
I’m having some trouble getting Crowbar to accept some PHP code I’m using to insert Perch content into a page. The error message I’m getting is, “A surrounding tag could not be detected. Your code was not added to the page.”
I’ve placed the Crowbar code inside an HTML item. Looking at the code, it appears that Perch is trying to insert it into a table, which strikes me as very odd. Here’s the code.
Is that HTML item a blue-border table layout element, or a green-border DIV? Check in the Inspector to see if Layer or CSS (if it’s inline) is checked. Also look in the style tab to see if you’ve added a graphic background or curved corners to the box. Those come with tables that you wouldn’t expect, too.
Walter
On Feb 5, 2014, at 7:48 PM, RavenManiac wrote:
I’ve placed the Crowbar code inside an HTML item. Looking at the code, it appears that Perch is trying to insert it into a table, which strikes me as very odd. Here’s the code.
I’m still getting used to where Perch puts things. Sometimes you have to specify a directory, other times you don’t. All is good. I’ll post a link as soon as I get everything straightened out. Thanks for your help.