Search found 7 matches
- Thu Jun 26, 2014 9:48 pm
- Forum: 0.6.X beta support
- Topic: Feature Request: look for "default-content.php' in themes
- Replies: 9
- Views: 27377
Re: Feature Request: look for "default-content.php' in theme
I tried that, but as currently written, the default content needs to be loaded BEFORE the content from the files is loaded. Any attempts to load it after the files have already loaded just overwrites the displayed content with the defaults (even if the file contents are different). If there were som...
- Tue Jun 24, 2014 5:23 am
- Forum: 0.6.X beta support
- Topic: Feature Request: look for "default-content.php' in themes
- Replies: 9
- Views: 27377
Re: Feature Request: look for "default-content.php' in theme
Correction: didn't realize it at the time, but this caused issues after changing the text. (Content from default-content.php overrode exiting content from files)
- Tue Jun 24, 2014 4:26 am
- Forum: 0.6.X beta support
- Topic: Feature Request: look for "default-content.php' in themes
- Replies: 9
- Views: 27377
Re: Feature Request: look for "default-content.php' in theme
I found this code to be adequate, around line 66 of index.php in WonderCMS 0.6 BETA
Code: Select all
# Load default content for theme, if any
$themeContent = 'themes/'.$c['themeSelect'].'/default-content.php';
if (file_exists($themeContent)) {
include ($themeContent);
}
- Mon Jun 23, 2014 3:16 am
- Forum: 0.6.X beta support
- Topic: Feature Request: look for "default-content.php' in themes
- Replies: 9
- Views: 27377
Re: Feature Request: look for "default-content.php' in theme
Do you prefer requests be raised in this forum, or as issues on Github?
- Sun Jun 15, 2014 5:46 am
- Forum: 0.6.X beta support
- Topic: Community contributions to code?
- Replies: 2
- Views: 6856
Community contributions to code?
Is this project going to be available on GitHub for pull requests? Is there a channel for community contributions?
- Sun Jun 15, 2014 5:45 am
- Forum: 0.6.X beta support
- Topic: Feature Request: look for "default-content.php' in themes
- Replies: 9
- Views: 27377
Feature Request: look for "default-content.php' in themes
Instead of requiring that new areas' default content be added to the index.php file, it would be very helpful if WonderCMS automatically checked for a "default-content.php" file in the theme's directory, and imported it. Similar to the methodology used in the Jumbotron theme in line 22 at ...
- Thu May 15, 2014 8:57 pm
- Forum: 0.6.X beta support
- Topic: Change class on selected nav item?
- Replies: 1
- Views: 5994
Change class on selected nav item?
Would it be possible to have WCMS change the class on the selected nav item when the user changes pages? That way, my theme CSS can show which page the user is currently on.
Is there a way I could implement this functionality, perhaps as a plugin? Any documentation on plugin creation?
Is there a way I could implement this functionality, perhaps as a plugin? Any documentation on plugin creation?