Page 1 of 1

CGE Module hint + LISE

Posted: Sun Jan 15, 2017 11:41 pm
by HarmO
Hi,

i use LISE to make a small listing of businesses in a multi lingual website. In previous multilingual sites, i made a LISE or ListIt2 instance for each language, but this time i opted to just use 1 LISE-instance.

Now the summary and detail page of my LISE instance changes for each language. since i use pretty urls (mod_rewrite), i need to tell LISE somehow what the detailpage for each language is.

Currently I'm trying to achieve this with the "Calguys Module Extensions"-module.
I've put this code in my LISE summerytemplate:

Code: Select all

{if $cmslang=="nl"}
{cge_module_hint module="LISEbusinesses" detailpage="7" }
{elseif $cmslang=="en"}
{cge_module_hint module="LISEbusinesses" detailpage="8"}
{/if}
But this is not working since the detailpage shows the wrong template and the detailpage's URL has no /7 or /8 at the back. (the should have this!)

Note: My LISE-instance is called {LISEbusinesses}

Who has already tackled this issue?

Re: CGE Module hint + LISE

Posted: Mon Jan 16, 2017 10:06 am
by HarmO
Followup with more information on my CMSMS installation:
----------------------------------------------

Cms Version: 2.1.5

Installed Modules:

AdminSearch: 1.0.2
CGExtensions: 1.53.15
CGFeedback: 1.8
CGSimpleSmarty: 2.1.5
CGSmartImage: 1.21.5
CMSContentManager: 1.1.1
DesignManager: 1.1.1
FileManager: 1.5.2
LISE: 1.2.3
LISEISM: 1.2.3
LISEbusinesses: 1.2.3
MicroTiny: 2.0.3
ModuleManager: 2.0.4
Navigator: 1.0.3
Search: 1.50.2


Config Information:

php_memory_limit:
max_upload_size: 10000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/Brussels
permissive_smarty: false


Php Information:

phpversion: 7.0.14
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 0
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 64M
max_execution_time: 60
register_globals: Off (False)
output_buffering: 4096
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 10M
upload_max_filesize: 10M
session_save_path: /app/tmp/viaviastellenbosch (0750)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On


Performance Information:

allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: On (True)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: On (True)

Server Information:

Server Software: Apache/2.4.25 (Unix) OpenSSL/1.0.1f
Server Api: fpm-fcgi
Server Os: Linux 4.4.0-31-generic On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.53
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable


Permission Information:

tmp: /app/public/tmp (0775)
tmp_cache: /app/public/tmp/cache (0775)
templates_c: /app/public/tmp/templates_c (0775)
modules: /app/public/modules (0775)
uploads: /app/public/uploads (0775)
File Creation Mask (umask): /app/public/tmp/cache (0775)
config_file: 0644

----------------------------------------------

Re: CGE Module hint + LISE

Posted: Mon Jan 16, 2017 10:26 am
by HarmO
Ok, I've got it.

A big RTFM to myself because it was stated in the help section. ::) :o

I'v just put the code in the "Smarty data or logic that is specific to this page:"-textarea of the summary-page for each language.

Of course, i don't have to do the language check then.

Code: Select all

{cge_module_hint module="LISEbusinesses" detailpage="8"}