Search found 7 matches

by cristoslc
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: 23365

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...
by cristoslc
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: 23365

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)
by cristoslc
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: 23365

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);
}
by cristoslc
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: 23365

Re: Feature Request: look for "default-content.php' in theme

Do you prefer requests be raised in this forum, or as issues on Github?
by cristoslc
Sun Jun 15, 2014 5:46 am
Forum: 0.6.X beta support
Topic: Community contributions to code?
Replies: 2
Views: 6800

Community contributions to code?

Is this project going to be available on GitHub for pull requests? Is there a channel for community contributions?
by cristoslc
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: 23365

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 ...
by cristoslc
Thu May 15, 2014 8:57 pm
Forum: 0.6.X beta support
Topic: Change class on selected nav item?
Replies: 1
Views: 5915

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?