herold
Forum Replies Created
-
Ok, that’s helpful. Will do some more tests today.
What function in the plugin tests for the condition? For example if I have a pods page with the name ‘Test’ where will the plugin check if that condition is true.
Do get the test going do the following:
– create a new Pods (ACT) – separate table
– create a simple Pods pageWhere in the module is the logic that decides if the current condition is matched? Trying to understand your plugin so I can be of help…
I guess the pods template detection is not working because it is not associated with a WordPress post or page. So, this needs some extra logic to work.
Let me know what you need from me in terms of testing other anything else. Do you have pods installed to do some tests?
Please have in mind that the new module is only for ‘Advanced Content Types’, Custom Post Types already work with your plugin.
Basically I only select the WordPress page template and then replace the main sidebar, as I do with all other sidebars I have.
What hard-coded strings you are referring too? Some of them are just for testing…
By the way with the former plugin version I never used this part of the code you supplied in the old thread.
add_filter('cas-module-pre-deploy','add_pods_to_cas'); function add_pods_to_cas($modules) { $modules['pods'] = true; return $modules; }
I don’t understand why it won’t work if I select a WordPress page template. I created one that displays the content of my Pods.
Ok, just set up another group and used ‘Show with Products’ and it works. Thank you for your help.
I like to show it up under /shop and also all categories as well as on all products. What setting do I have to use?
It does list the pod pages correctly in the left menu sidebar.
Here is the pods module (pods.php), however I have not got it to work yet. Need a bit help from you.
<?php /** * @package Content Aware Sidebars * @author Joachim Jensen <[email protected]> */ /** * * Pods Module * * Detects if current content is: * a) any or specific pods pages * */ class CASModule_pods extends CASModule { /** * Constructor */ public function __construct() { parent::__construct('pods',__('Pods Pages',ContentAwareSidebars::DOMAIN)); $this->type_display = false; //$this->id = 'pods'; } /** * Get pods pages * @return array */ protected function _get_content($args = array()) { if (function_exists('pods_api')) { // Get PodsAPI $api = pods_api(); // Get Pod Pages $pod_pages = $api->load_pages(); $pod_page_list = array(); foreach ( $pod_pages as $pod_page ) { $pod_page_list[$pod_page[ 'slug' ]] = $pod_page[ 'name' ]; } } return $pod_page_list; } //public function db_where() { //$pods_name = pods_url_variable('first', uri); //return "(pods.meta_value IS NULL OR pods.meta_value = '".$pods_name."')"; //return is_pod_page($pod_page[ 'slug' ]); //} public function in_context() { return is_pod_page(); } public function get_context_data() { $val = 'principle'; //$pod_page = is_pod_page(); //return $pod_page; return array($val); } }
Forum: Plugins
In reply to: [Pods SEO] Error in Date / Time StampI just checked again and I still see a yellow Explanation icon, however the error message is gone. Will check again in a few days.
Forum: Plugins
In reply to: [Pods SEO] Error in Date / Time StampError message from Google webmaster tools:
“An invalid date was found. Please fix the date or formatting before resubmitting.”