Search found 15 matches

by ctuxboy
Sun Oct 09, 2022 7:07 pm
Forum: Support
Topic: [SOLVED] one custom template for employee pages
Replies: 8
Views: 4602

Re: [SOLVED] one custom template for employee pages

Oops i found a (not important) typo in the comments in the code snippet: // if ' medewerkers ' in the url => profile-page-layout ELSE default layout change to: // if ' employees ' in the url => profile-page-layout ELSE default layout Forgot translate medewerkers to employees , yes i speak dutch :D S...
by ctuxboy
Sun Oct 09, 2022 7:02 pm
Forum: Support
Topic: [SOLVED] one custom template for employee pages
Replies: 8
Views: 4602

Re: [SOLVED] one custom template for employee pages

I have to reiterate, your English is anything but poor. Thank you :) You've been added to our contributors list, it's a list of everyone who has contributed to improving WonderCMS one way or another. :) It doesn't really matter what your website it running on, however I'm happy to see you're playin...
by ctuxboy
Sun Oct 09, 2022 7:27 am
Forum: Support
Topic: [SOLVED] one custom template for employee pages
Replies: 8
Views: 4602

Re: [SOLVED] one custom template for employee pages

wiz, Glad you understand my poor english and thanks for the compliments :) Good news you extend the WCMS wiki/docs with this solution, it gives more flexibility on this tiny cms and maybe more developers will motivated WCMS in this case ;) Yes, you may published my name, adding it in the 'Wall of fa...
by ctuxboy
Sat Oct 08, 2022 6:23 pm
Forum: Support
Topic: [SOLVED] one custom template for employee pages
Replies: 8
Views: 4602

Re: [SOLVED] one custom template for employee pages

Hello ctuxboy, have a warm welcome to the community. You're awesome for providing a solution, however would also this help you? https://github.com/robiso/wondercms/wiki/Create-custom-page-template Hi @wiz, Thanks for your help, loved if other people help thinking for alternative solutions, so we ca...
by ctuxboy
Fri Oct 07, 2022 8:23 pm
Forum: Support
Topic: [SOLVED] one custom template for employee pages
Replies: 8
Views: 4602

Re: one custom template for employee pages

Found a workaround/solution for my problem. Here the code i adding in theme.php: <?php // get current $dir $dir = pathinfo($Wcms->getCurrentPageUrl(), PATHINFO_DIRNAME); $pattern = '/employees/'; // if 'employees' in the url => profile-page-layout ELSE default layout if (preg_match($pattern, $dir)) ...
by ctuxboy
Fri Oct 07, 2022 8:58 am
Forum: Support
Topic: [SOLVED] one custom template for employee pages
Replies: 8
Views: 4602

[SOLVED] one custom template for employee pages

Hello, I will try building a website where every employee his own profile-page. I know it is possible building custom templates for different pages: - pagename: name-employee - php-file: name-employee.php What i will try to do, so i can use one custom template, for different employees. For made this...
by ctuxboy
Thu Oct 06, 2022 8:18 pm
Forum: Themes
Topic: [SOLVED] Local custom theme not visible
Replies: 2
Views: 6498

Re: Local custom theme not visible

Okay, i found it!

Can change the theme maually in the database.js file.

Code: Select all

{
    "config": {
        "siteTitle": "Website title",
        "theme": "newtheme",
...
by ctuxboy
Thu Oct 06, 2022 8:10 pm
Forum: Themes
Topic: [SOLVED] Local custom theme not visible
Replies: 2
Views: 6498

[SOLVED] Local custom theme not visible

Hello, I copy the folder from the Sky theme. Change all the files that needed for my custom theme, but can't see it in settings -> themes , also not after update. Changing the wcms-modules.json in my new-theme folder: { "version": 1, "themes": { "newtheme": { "name...
by ctuxboy
Tue Jul 26, 2022 9:44 am
Forum: Support
Topic: [SOLVED] Summernote drag and drop issue
Replies: 6
Views: 3603

Re: [SOLVED] Summernote drag and drop issue

wiz wrote: Tue Jul 26, 2022 9:42 am Most welcome and thank you for giving this a go and also reporting the problem :)
NP ;)
by ctuxboy
Tue Jul 26, 2022 9:38 am
Forum: Support
Topic: [SOLVED] Summernote drag and drop issue
Replies: 6
Views: 3603

Re: Summernote drag and drop issue

wiz wrote: Sat Jul 23, 2022 9:40 am Hello ctuxboy.

This has now been fixed with the latest Summernote update which should be available in the next 24 hours in your WonderCMS plugins tab.
Thanks again for reporting this!
Thats great news! Thanks ;)