Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get a list of available pages from pages.array
#9
Since the language is tied to the suffix of the slug (e.g. index_de), you can perhaps try parsing that:

PHP Code:
// Initialize some variables to be used in the loop
$langSuffix  '_de'// your language

// Main loop
foreach ($pages as $page) {
  
// check that the language suffix in the slug
 
 if (strpos($page['slug'], $langSuffix) !== -1) {
 
   // Do something with this language-specific page
 
   // ...
 
 }
 
 // ...


(Not tested yet)
Reply


Messages In This Thread
RE: Get a list of available pages from pages.array - by Angryboy - 2015-08-12, 02:35:07



Users browsing this thread: 1 Guest(s)