NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Excluding Errors


Joined: 16 Apr 2008
Posts: 40
Reply with quote
I really love the way PhpED parse the project and headlines any errors it finds, many a time has it helped me quickly identify a problem. There is a BUT though, for example:-

On some sites a make use of a CMS system called Perch, it's great as it allows me to easily add CMS features to an existing static site. However Perch uses custom tags in templates such as:-

Code:

<ul class="gallery">

 <li class="active"><img src="<perch:content id="image1" type="image" label="Image 1" width="400" height="301" />" alt="Image 1 of Project" title="<perch:content id="caption1" type="text" label="Image 1 Caption" />" /></li>

 <li><img src="<perch:content id="image2" type="image" label="Image 2" width="400" height="301" />" alt="Image 2 of Project" title="<perch:content id="caption2" type="text" label="Image 2 Caption" />" /></li>

</ul>


All the <perch:content xxxxxxxxxxxxxx /> tags show an error.

So is there any way of excluding these and similar errors that show up but which aren't in fact strictly errors?
View user's profileFind all posts by southcotSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
The problem is that technically Perch breaks HTML syntax standards, so these are strictly errors. Even adjusting the PhpED config files isn't going to help. I tried your example in 4 different HTML editors and all of them interpreted it differently with different errors shown.

NuSphere would probably have to add explicit Perch support. Whilst Perch is popular, it probably isn't so commonly used that I'd imagine NuSphere would be inclined to add support it, unlike Smarty which PhpED does support. If an editor did support Perch, the Perch syntax does actually make it difficult to reliably show issues, because it looks like elements embedded within elements.
View user's profileFind all posts by plugnplaySend private message


Joined: 16 Apr 2008
Posts: 40
Reply with quote
Thanks for the reply. Yes I can see the problem and I don't disagree at all that strictly these are errors, there are other examples that arise to that aren't Perch related. On help would be to be able to exclude specific folders form error checking at start up. Most of the tags like this fall in the template folders in the Perch structure. That would at least cut down on the list of errors reported by a faction of 95%. At least then visually scanning the list becomes a non demanding task.

I suppose another possibility is to have a custom entry such as <!--- PHPIDEIgnore: perch:content --> on a page eg:-

<!--- PHPIDEIgnore: perch:content -->

Not ideal I guess as it would then not find legitimate errors in the tags that used such tags.
View user's profileFind all posts by southcotSend private message
Excluding Errors
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic