just use it anywhere in your custom page. will add that module to the page. if it works. cant try it right now. can try it tomorrow if u can wait till then :D
Theme Charcha for great desktop and mobile experience! - drop me a message :)
will cause the Categories list to display on a custom page in the panel.
@Chanux if you want custom content in the panel, you will have to write a custom plugin as a module. Look at other plugins that create modules for guidelines.
Could not find a categories view for the CategoriesModule module in the dashboard application.
The error occurred on or near: C:\wamp\www\pinoyau.info\library\core\class.module.php
so i had to tap on the code and add below in library/core/class.module.php line 170
$ViewPaths[] = CombinePaths(array(PATH_APPLICATIONS, 'vanilla', 'views', 'modules', $View . '.php'));
tried assigning the path to method FetchViewLocation but still doesnt work, the FetchViewLocation method being called is from class class.controller.php not from the class.module.php.
@hbf nope have debug turned off, no other error even if it's turned on. unless i add the $this->AddModule('CategoriesModule'); getting the said error above.
yes mine also sits on a linux box (LAMP).
Many thanks hbf, I really appreciate your effort helping us with this kind of matter :)
Aolee said:
Many thanks hbf, I really appreciate your effort helping us with this kind of matter :)
and, you're welcome of course. I'm just learning the framework myself so I don't have a ton of answers, but I like to try where I can. I'm finding that this framework is pretty easy to work with.
hbf said:
if you're on a Linux LAMP server this line from your error message is perplexing
The error occurred on or near: C:\wamp\www\pinoyau.info\library\core\class.module.php
That looks like a windows WAMP install path to me.
ah for that one, tried it both in my linux hosting and also in local dev (WAMP) but getting the same error. i have the gutsy feeling a custom made plugin is causing the OOP relation to break. will try it in a freshly installed vanilla .
Could not find a categories view for the CategoriesModule module in the dashboard application. The error occurred on or near: C:\wamp\www\pinoyau.info\library\core\class.module.php
copy categories.php from application/vanilla/views/modules to YOURTHEME/views/modules
Comments
I need an answer as well. How can I get categories for a side panel within custom pages?
Would appreciate an assist with this too, please. And thank you.
AfaIk in the default.master.php it is this line that calls it :
<div id="Panel"><?php $this->RenderAsset('Panel'); ?></div>So I guess that, or some version of it, might do the trick.
@whu606 no.. its not working :(
did you try AddModule function?
$Sender->AddModule('SignInModule'); $Sender->AddModule('GuestModule'); ?????
Theme Charcha for great desktop and mobile experience! - drop me a message :)
@sahotataran steps please
just use it anywhere in your custom page. will add that module to the page. if it works. cant try it right now. can try it tomorrow if u can wait till then :D
Theme Charcha for great desktop and mobile experience! - drop me a message :)
i just ran a test... it works
$this->AddModule('CategoriesModule');
will cause the Categories list to display on a custom page in the panel.
@Chanux if you want custom content in the panel, you will have to write a custom plugin as a module. Look at other plugins that create modules for guidelines.
test page
please give me the code that insert to the custom page
the code is
$this->AddModule('CategoriesModule');
Where do I put this code in the custom page? The only php I have on that page is: <?php if (!defined('APPLICATION')) exit(); ?>
Do I put it here: <?php if (!defined('APPLICATION')) exit(); $this->AddModule('CategoriesModule'); ?>
I tried that and I got bonked.
i use
$this->AddModule('CategoriesModule'); $this->AddModule('SignedInModule');
and works for me
Theme Charcha for great desktop and mobile experience! - drop me a message :)
doest work for me,
getting this error
Could not find a
categoriesview for theCategoriesModulemodule in thedashboardapplication. The error occurred on or near: C:\wamp\www\pinoyau.info\library\core\class.module.phpso i had to tap on the code and add below in library/core/class.module.php line 170
$ViewPaths[] = CombinePaths(array(PATH_APPLICATIONS, 'vanilla', 'views', 'modules', $View . '.php'));tried assigning the path to method FetchViewLocation but still doesnt work, the FetchViewLocation method being called is from class class.controller.php not from the class.module.php.
interesting. i just ran the most basic test i could think of and it works.
here is the page in action.
http://homebrewforums.net/plugin/page/blankcat
@hbf did the same thing, could there be conflicting plugin on my end?
@aolee im not sure what could create a conflict. do you have debugging turned on for your site? want to post a link?
the only immediate thing i can say is, my test is being run on an apache, not wamp server... don't know if that has anything to do with it.
@hbf nope have debug turned off, no other error even if it's turned on. unless i add the
$this->AddModule('CategoriesModule');getting the said error above.yes mine also sits on a linux box (LAMP).
Many thanks hbf, I really appreciate your effort helping us with this kind of matter :)
if you're on a Linux LAMP server this line from your error message is perplexing
The error occurred on or near: C:\wamp\www\pinoyau.info\library\core\class.module.php
That looks like a windows WAMP install path to me.
and, you're welcome of course. I'm just learning the framework myself so I don't have a ton of answers, but I like to try where I can. I'm finding that this framework is pretty easy to work with.
ah for that one, tried it both in my linux hosting and also in local dev (WAMP) but getting the same error. i have the gutsy feeling a custom made plugin is causing the OOP relation to break. will try it in a freshly installed vanilla .
Let me know how it goes.
I've tried the above and I just get bonked lol.
Could be the theme rather than the plug in.
can you check what error you r getting @newbie rather than saying its bonk - then can try to help out with it.
Theme Charcha for great desktop and mobile experience! - drop me a message :)
enable the debug to TRUE then paste here the error. or screenshot
may be late, but i say, to avoid this error
Could not find a categories view for the CategoriesModule module in the dashboard application. The error occurred on or near: C:\wamp\www\pinoyau.info\library\core\class.module.php
copy categories.php from application/vanilla/views/modules to YOURTHEME/views/modules