Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using i18 Special Pages in connection with i18n Search
#1
I have a special page which has two fields: "first" and "second". It also has a tag "_special_myspecial".
I used a search function to find all myspecial pages and can't figure out how to get the special fields.

Code:
<?php
$results = return_i18n_search_results(array('_special_myspecial'));
foreach ($results['results'] as $entry) {
   $first = $entry->data['first'];
   $second = $entry->data['second'];
?>

This is not working, i.e. $first and $second are empty.

There is also function return_special_field($name, $default='') but I don't know how to call it in the context of each search result row above.
Reply


Messages In This Thread
using i18 Special Pages in connection with i18n Search - by trysky - 2012-08-30, 21:59:43



Users browsing this thread: 1 Guest(s)