I am working on a new site with CMSms 2.0 – and I think when I get used to it a bit more this could be a great release.
But it would be great if anybody could help me with a problem with the smarty {mailto} function that I never encountered with the 1.x series!
Here is my configuration:
Code: Select all
----------------------------------------------
Cms Version: 2.0.1.1
Installed Modules:
AdminSearch: 1.0
FileManager: 1.5.1
MysqlDump: 1.3.1
MicroTiny: 2.0
ModuleManager: 2.0
News: 2.50.1
Search: 1.50.1
ThemeManager: 1.1.8
CMSContentManager: 1.0.1
DesignManager: 1.0.1
FileBackup: 0.5
Navigator: 1.0.1
Config Information:
php_memory_limit:
max_upload_size: 1024000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/Berlin
permissive_smarty: false
Php Information:
phpversion: 5.6.15
md5_function: An (Ja)
json_function: An (Ja)
gd_version: 2
tempnam_function: An (Ja)
magic_quotes_runtime: Aus (Nein)
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference:
test_db_timedifference:
memory_limit: 2040M
max_execution_time: 1200
output_buffering: 4096
file_uploads: An (Ja)
post_max_size: 2040M
upload_max_filesize: 1024M
session_save_path: Keine Prüfung, da eine „open basedir“-Beschränkung aktiviert ist
session_use_cookies: An (Ja)
xml_function: An (Ja)
xmlreader_class: An (Ja)
Performance Information:
allow_browser_cache: Aus (Nein)
browser_cache_expiry: 60
php_opcache: Aus (Nein)
smarty_cache: Aus (Nein)
smarty_compilecheck: Aus (Nein)
smarty_cache_udt: Aus (Nein)
auto_clear_cache_age: Aus (Nein)
Server Information:
Server Api: fpm-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.44
Server Db Grants: „Alles gewähren“-Anweisung gefunden, die als geeignet scheint
Server Time Diff: Keine Abweichung der Zeit im Dateisystem gefunden
----------------------------------------------I made a "new global content block" as advised in the documentation with
Code: Select all
{page_attr page=”*page alias from above *” key=”foo”}Code: Select all
{mailto address='info@abcd.ef' encode='javascript'}I tried to temper a little bit with {eval}. And I was wondering if this problem had to do with the newly introduced scope for smarty. But as I am no smarty specialist I couldn't get the thing to work.
I even tried assigning the mailto output to a variable and print out the variable – didn't work either.
When I used the same mailto-code and put it directly into my template right underneath the "new global content block" it worked without any problem.
Could someone give me a hint or provide me with the proper line of code? This would really help a lot!
Thanks for helping
Reinhard



