2014-03-14, 01:32:52
(2014-03-13, 23:12:59)Carlos Wrote: Did you try with <?php get_i18n_gallery_header('namegallery'); ?>
in the <head> section, and (% gallery name=namegallery %) in the page?
yes.. in header this is working (it's giving back me a header all gallery scripts
but when i use in template area content: (% gallery name=namegallery %) only giving back a:
https://dl.dropboxusercontent.com/u/4998...llery2.jpg
when i using a <?php get_i18n_gallery('namegallery'); ?> then is working.
for a give back a content i using:
PHP Code:
<?php
global $pagesArray;
$pagesSorted = subval_sort($pagesArray,'menuOrder'); // or 'title', 'menu', 'url', ...
foreach (return_i18n_menu_data('menuone',1,1) as $page) { // "menuone" is name of menu where is a submenu and it's giving back me a submenu
$pag = $page['url'];
?>
<h2><?php getPageField($pag,'title'); ?></h2>
<?php getPageContent($pag); ?>
<?php } ?>
seccond question:
for a simplest use gallery in one site template is possible? to add
all of gallery's script in header like:
<?php
get_i18n_gallery_header('namegallery');
get_i18n_gallery_header('galleryseccond');
....
get_i18n_gallery_header('gallerylast');
?>
maybe in some of foreach ? or some else loop?
i'm want to automate this..for simple use with (% gallery name=namegallery %)
user plugin: scroll to top