My Sample Add-On

  • that <perch:showall> is NICE! Thank you! so the template was using <perch:sample> and that worked with it as is, but with your $filtered_things code the namespace was <perch:content> and now it works! Will this cause any issues down the road?


    Also THANK YOU! how can I send you some cookies?

  • Running into an issue where it will only filter by the default tags and not custom ones this message pops up in the debug

    Code
    1. Invalid query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'companyID' in 'where clause'

    Does this mean it will only filter columns that aren't in the dynamic content field?

  • so the template was using <perch:sample> and that worked with it as is, but with your $filtered_things code the namespace was <perch:content> and now it works!

    You can specify the namespace you want to use in your class:


    PHP
    1. class MySample_Things extends PerchAPI_Factory {
    2. protected $namespace = 'sample';
    3. .
    4. .
    5. .
    6. }



    Running into an issue where it will only filter by the default tags. Does this mean it will only filter columns that aren't in the dynamic content field?

    Correct. You can't filter by dynamic fields unless you have an index table.