I'm trying to feed a variable to Gallery from a CGBlog detail template.
The variable 'GalleryName' concatenates ok, and it prints to the page fine, however the 'dir' option in the Gallery tag doesn't seem to take it and returns nothing.
Anyone got an idea? Thanks in advance!
John.
Code: Select all
{assign var=GalleryName value="ArticleGallery/"|cat:$entry->GalleryName}
{$GalleryName}
{if $entry->GalleryName != ""}
{Gallery dir=$GalleryName}
{/if}
----------------------------------------------
Cms Version: 1.11.2.1
Installed Modules:
CMSMailer: 5.2.1
CMSPrinting: 1.0.3
FileManager: 1.4.1
MenuManager: 1.8.4
MicroTiny: 1.2.3
ModuleManager: 1.5.5
News: 2.12.9
Search: 1.7.7
ThemeManager: 1.1.7
CGExtensions: 1.31.1
Banners: 2.6
CGSimpleSmarty: 1.5.2
CGBlog: 1.9.8
Gallery: 1.6
Config Information:
php_memory_limit:
process_whole_template:
output_compression:
max_upload_size: 12000000
url_rewriting: none
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true
Php Information:
phpversion: 5.2.10
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
memory_limit: 48M
max_execution_time: 30
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 12M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: apache2handler
Server Db Type: MySQL (mysqli)
Server Db Version: 5.0.96
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
----------------------------------------------