Support » Plugin: AWPCP - Classifieds Plugin » Can you comment on the alternate methods of creating templates?

  • Resolved moens


    OK, it looks like a template filter option in the code (below) is an idea still in gestation(?). It seems that it would at least require the actual filter method to be added in functions_awpcp.php (maybe), which would still be overwritten in a plugin upgrade. Maybe it would be better if the filter was _always_ called, and if it returns null or FALSE, then it continues to the other options. The awpcp_browse_ads_template_filter method could load a db field to see if there is an alternate file to process, and process it, or not…

    Do you have plans for this? Are you open to me making the necessary updates and pushing you the code?

    // filters to provide alternative method of storing custom layouts (e.g. can be outside of this plugin's directory)
    if ( has_action('awpcp_browse_ads_template_action') || has_filter('awpcp_browse_ads_template_filter') ) {
      $output = apply_filters('awpcp_browse_ads_template_filter');

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author awpcp


    Hi moens,

    As we are making major internal updates to the plugin, I don’t think we can incorporate your changes at this time. We can consider a formal template system for the future, as we’ve been migrating it slowly since it predates WP 3.0 where that functionality became available.

    I see, thanks for the reply! I’ll just update through git merges until you finalize a post wp3 version. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can you comment on the alternate methods of creating templates?’ is closed to new replies.