[Solved] Problem assigning scope=global var in Products
Posted: Fri Aug 21, 2015 8:37 pm
Hi,
I am having a problem assigning variables in the latest Products module detail templates.
I am using {assign var='alt_title' value=$entry->product_name scope='global'} at the top of my detail template but don't seem to be able to set the page title.
Even printing variables reveals nothing.
I assume this has to do with scope='global' (http://forum.cmsmadesimple.org/viewtopi ... =7&t=73141
I did ask a variation of this querstion previously http://forum.cmsmadesimple.org/viewtopi ... =7&t=73335 but can now see i didn't know enough to actually ask the right question. Apologies if this have just been added to the previous question?
Cms Version: 1.12
Installed Modules:
CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.5
MenuManager: 1.8.6
MicroTiny: 1.2.9
ModuleManager: 1.5.8
News: 2.15.1
Search: 1.7.12
ThemeManager: 1.1.8
Gallery: 2.0.2
CGExtensions: 1.49.6
FormBuilder: 0.8.1.1
GBFilePicker: 1.3.3
ECB: 1.6
CGSimpleSmarty: 1.9.1
CGGoogleMaps2: 0.99.1
CGSmartImage: 1.20.2
JQueryTools: 1.3.6
CGBlog: 1.12.9
HitCounter: 2.0
Disqus: 2.0
AceEditor: 1.0
Products: 2.24.2
CGContentUtils: 1.5
Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 128000000
url_rewriting: mod_rewrite
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.5.28
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 2048
E_DEPRECATED: 8192
memory_limit: 256M
max_execution_time: 300
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 128M
upload_max_filesize: 128M
session_save_path: /tmp (0700)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: litespeed
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.34
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found
Any advice appreciated,
Cheers,
Paul
I am having a problem assigning variables in the latest Products module detail templates.
I am using {assign var='alt_title' value=$entry->product_name scope='global'} at the top of my detail template but don't seem to be able to set the page title.
Even printing variables reveals nothing.
I assume this has to do with scope='global' (http://forum.cmsmadesimple.org/viewtopi ... =7&t=73141
I did ask a variation of this querstion previously http://forum.cmsmadesimple.org/viewtopi ... =7&t=73335 but can now see i didn't know enough to actually ask the right question. Apologies if this have just been added to the previous question?
Cms Version: 1.12
Installed Modules:
CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.5
MenuManager: 1.8.6
MicroTiny: 1.2.9
ModuleManager: 1.5.8
News: 2.15.1
Search: 1.7.12
ThemeManager: 1.1.8
Gallery: 2.0.2
CGExtensions: 1.49.6
FormBuilder: 0.8.1.1
GBFilePicker: 1.3.3
ECB: 1.6
CGSimpleSmarty: 1.9.1
CGGoogleMaps2: 0.99.1
CGSmartImage: 1.20.2
JQueryTools: 1.3.6
CGBlog: 1.12.9
HitCounter: 2.0
Disqus: 2.0
AceEditor: 1.0
Products: 2.24.2
CGContentUtils: 1.5
Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 128000000
url_rewriting: mod_rewrite
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.5.28
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 2048
E_DEPRECATED: 8192
memory_limit: 256M
max_execution_time: 300
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 128M
upload_max_filesize: 128M
session_save_path: /tmp (0700)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: litespeed
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.34
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found
Any advice appreciated,
Cheers,
Paul