Search found 15 matches
- Sun Oct 09, 2022 7:07 pm
- Forum: Support
- Topic: [SOLVED] one custom template for employee pages
- Replies: 8
- Views: 5038
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...
- Sun Oct 09, 2022 7:02 pm
- Forum: Support
- Topic: [SOLVED] one custom template for employee pages
- Replies: 8
- Views: 5038
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...
- Sun Oct 09, 2022 7:27 am
- Forum: Support
- Topic: [SOLVED] one custom template for employee pages
- Replies: 8
- Views: 5038
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...
- Sat Oct 08, 2022 6:23 pm
- Forum: Support
- Topic: [SOLVED] one custom template for employee pages
- Replies: 8
- Views: 5038
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...
- Fri Oct 07, 2022 8:23 pm
- Forum: Support
- Topic: [SOLVED] one custom template for employee pages
- Replies: 8
- Views: 5038
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)) ...
- Fri Oct 07, 2022 8:58 am
- Forum: Support
- Topic: [SOLVED] one custom template for employee pages
- Replies: 8
- Views: 5038
[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...
- Thu Oct 06, 2022 8:18 pm
- Forum: Themes
- Topic: [SOLVED] Local custom theme not visible
- Replies: 2
- Views: 11214
Re: Local custom theme not visible
Okay, i found it!
Can change the theme maually in the database.js file.
Can change the theme maually in the database.js file.
Code: Select all
{
"config": {
"siteTitle": "Website title",
"theme": "newtheme",
...
- Thu Oct 06, 2022 8:10 pm
- Forum: Themes
- Topic: [SOLVED] Local custom theme not visible
- Replies: 2
- Views: 11214
[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...
- Tue Jul 26, 2022 9:44 am
- Forum: Support
- Topic: [SOLVED] Summernote drag and drop issue
- Replies: 6
- Views: 4083
- Tue Jul 26, 2022 9:38 am
- Forum: Support
- Topic: [SOLVED] Summernote drag and drop issue
- Replies: 6
- Views: 4083