New look for CMSimple.sk almost ready

Please post the URLs to pages, where you've made a CMSimple template available for download

Moderator: mikey

Post Reply
Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

New look for CMSimple.sk almost ready

Post by Tata » Mon Jun 05, 2017 10:04 pm

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
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: New look for CMSimple.sk almost ready

Post by cmb » Tue Jun 06, 2017 9:49 am

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.
Christoph M. Becker – Plugins for CMSimple_XH

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: New look for CMSimple.sk almost ready

Post by Tata » Tue Jun 06, 2017 5:33 pm

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.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: New look for CMSimple.sk almost ready

Post by cmb » Tue Jun 06, 2017 5:49 pm

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.
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply