Page 1 of 1

New look for CMSimple.sk almost ready

Posted: Mon Jun 05, 2017 10:04 pm
by Tata
I have decided to change both the content and look of actual CMSimple.sk.
Here is the new concept. The sections "Demo" and "Demo Tamplaty" are made as 2lang pages.
I can't solve one small problem in these two sections. There are used icons for functions: printlink, sitemaplink and XH_mailform. Using them everything works fine, but the navigation in the banner doesnt work correctly. The links are hardcoded in respective templates. But using these icons, the default template is used (so the links can't work, of course).
How shall I modify the functions? Is there a way to define a template for e.g. XH_mailform?

DEMO

Re: New look for CMSimple.sk almost ready

Posted: Tue Jun 06, 2017 9:49 am
by cmb
Tata wrote:But using these icons, the default template is used (so the links can't work, of course).
How shall I modify the functions?
You can write the links like this:

Code: Select all

<a href="<?php echo $pth['folder']['base']?>dd">Demo</a>
This way they'll work the same for the primary language as well as for second languages.

Re: New look for CMSimple.sk almost ready

Posted: Tue Jun 06, 2017 5:33 pm
by Tata
Danke, Chris, es funkyionier wunderbar. Etwas anderes is aber aufgetaucht.
Am iMAC Locakhost läuft alles wunderbar. Am Server auch. Am Notebook gibt die Foldergallery folgende Debug Melung[quote\
Fatal error: Uncaught Error: Call to undefined function Foldergallery\mime_content_type() in C:\MAMP\htdocs\169new\plugins\foldergallery\classes\ImageService.php:137 Stack trace: #0 C:\MAMP\htdocs\169new\plugins\foldergallery\classes\ImageService.php(68): Foldergallery\ImageService->isImageFile('../userfiles/im...') #1 C:\MAMP\htdocs\169new\plugins\foldergallery\classes\GalleryController.php(84): Foldergallery\ImageService->findEntries() #2 C:\MAMP\htdocs\169new\plugins\foldergallery\index.php(30): Foldergallery\GalleryController->indexAction() #3 C:\MAMP\htdocs\169new\cmsimple\functions.php(284) : eval()'d code(1): foldergallery('tpls') #4 C:\MAMP\htdocs\169new\cmsimple\functions.php(284): eval() #5 C:\MAMP\htdocs\169new\cmsimple\functions.php(247): XH_evaluateSinglePluginCall('foldergallery('...') #6 C:\MAMP\htdocs\169new\cmsimple\functions.php(343): evaluate_plugincall('<h1>Demo Templa...') #7 C:\MAMP\htdocs\169new\cmsimple\cms.php(1333): evaluate_scripting('<h1>Demo Templa...') #8 C:\MAMP\htdocs\169new\rr\index.php(12 in C:\MAMP\htdocs\169new\plugins\foldergallery\classes\ImageService.php on line 137[/quote]und die Seite is leer.

Re: New look for CMSimple.sk almost ready

Posted: Tue Jun 06, 2017 5:49 pm
by cmb
Tata wrote:Fatal error: Uncaught Error: Call to undefined function Foldergallery\mime_content_type() in
Da ist vermutlich die finfo Extension nicht installiert und aktiviert, was eigentlich von der Systemprüfung der Foldergallery auch gemeldet werden sollte.