Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 15

CurtisOdenSpencerMcericgillettejohansonlocker +11 guests

I just need to add the default panel to the custom page*

This discussion is related to the Custom Pages addon.
I just need to add the default panel to the custom page. Can anyone help please ?

Comments

  • I need an answer as well. How can I get categories for a side panel within custom pages?

  • Posts: 5

    Would appreciate an assist with this too, please. And thank you.

  • Posts: 346

    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.

  • Posts: 99

    @whu606 no.. its not working :(

  • Posts: 599

    did you try AddModule function?

    $Sender->AddModule('SignInModule'); $Sender->AddModule('GuestModule'); ?????

    Theme Charcha for great desktop and mobile experience! - drop me a message :)

  • Posts: 99

    @sahotataran steps please

  • Posts: 599

    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 :)

  • hbfhbf
    Posts: 654

    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

  • Posts: 99

    please give me the code that insert to the custom page

  • hbfhbf
    Posts: 654

    the code is

    $this->AddModule('CategoriesModule');

  • Posts: 16

    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.

  • Posts: 599

    i use

    $this->AddModule('CategoriesModule'); $this->AddModule('SignedInModule');

    and works for me

    Theme Charcha for great desktop and mobile experience! - drop me a message :)

  • Posts: 303

    doest work for me,

    getting 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

    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.

  • hbfhbf
    Posts: 654

    interesting. i just ran the most basic test i could think of and it works.

    
    <?php if (!defined('APPLICATION')) exit(); ?>
    <?php
    
    $this->AddModule('CategoriesModule');
    
    ?>

    here is the page in action.

    http://homebrewforums.net/plugin/page/blankcat

  • Posts: 303

    @hbf did the same thing, could there be conflicting plugin on my end?

  • hbfhbf
    Posts: 654

    @aolee im not sure what could create a conflict. do you have debugging turned on for your site? want to post a link?

  • hbfhbf
    Posts: 654

    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.

  • Posts: 303

    @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 :)

  • hbfhbf
    Posts: 654

    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.

  • hbfhbf
    Posts: 654 2 likes

    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.

  • Posts: 303

    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 .

  • Posts: 16

    Let me know how it goes.

    I've tried the above and I just get bonked lol.

  • Posts: 16

    Could be the theme rather than the plug in.

  • Posts: 599 1 like

    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 :)

  • Posts: 303

    newbie said: Let me know how it goes.

    I've tried the above and I just get bonked lol.

    enable the debug to TRUE then paste here the error. or screenshot

  • Posts: 7

    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

Sign In or Register to comment.