2023-03-04, 08:51:37
Hi All,
Maybe it's something I am missing, or something I don't understand...
I am trying to use the I18N Special Pages plugin to be able to standardise sets of custom fields for (hypothetically speaking) two groups of pages. Such pages will get effectively tagged as "_special_group_a" and "_special_group_b" .
Now, what I want to do from a theme template, is to iterate through a given group of pages, and be able to access the custom fields for different purposes.
To make my question as direct as possible, what I am really looking for is to replace the ???s with the correct PHP calls in the following code:
I am aware of the functionality offered by using the "view" and "search" tabs when editing Special Page types. This brings up my follow-up question... Which method is more efficient?
My installation at the moment is GetSimple v3.3.16, along with i18n Base/Custom Fields/Search/Special Pages and Navigation. The CMS itself and the plugins were all downloaded from http://get-simple.info/
Regards,
Georgios
Maybe it's something I am missing, or something I don't understand...
I am trying to use the I18N Special Pages plugin to be able to standardise sets of custom fields for (hypothetically speaking) two groups of pages. Such pages will get effectively tagged as "_special_group_a" and "_special_group_b" .
Now, what I want to do from a theme template, is to iterate through a given group of pages, and be able to access the custom fields for different purposes.
To make my question as direct as possible, what I am really looking for is to replace the ???s with the correct PHP calls in the following code:
Code:
$search=return_i18n_search_results('_special_group_a',null,0,-1,$language);
if($search['totalCount']>0) {
foreach($search['result'] as $entry) {
$p_link=???; // This is the link to get to the actual page
$p_title=???; // This is the page title
$p_custom_field_X=???; // This is the value of a custom field defined via the special pages
$p_custom_field_Y=???; // This is the value of a custom field defined through custom fields
// the rest of the code that uses the fields will go here :)
}
} else {
// Nothing found code goes here.
}
I am aware of the functionality offered by using the "view" and "search" tabs when editing Special Page types. This brings up my follow-up question... Which method is more efficient?
My installation at the moment is GetSimple v3.3.16, along with i18n Base/Custom Fields/Search/Special Pages and Navigation. The CMS itself and the plugins were all downloaded from http://get-simple.info/
Regards,
Georgios