1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not Planned Assign custom pages to an addon

Discussion in 'Closed Suggestions' started by EQnoble, Mar 13, 2013.

  1. EQnoble

    EQnoble Well-Known Member

    As per the title I feel like it could be a benefit to allow custom page nodes to be assigned to an addon if that is at all possible.
  2. sonnb

    sonnb Well-Known Member

    Do you want assign a forum/category to addon also? I do not think this is necessary. Addon itself can create an custom node on installation.
  3. EQnoble

    EQnoble Well-Known Member

    No my instance is this...

    I have an addon.... after some action is completed I have a callback function that triggers an overlay that uses ajax to grab the contents of the page nodes template

    <a id="clicker" href="{xen:link pages/testOverlay}" class="OverlayTrigger">

    unless there is some way that I can call a template into an overlay within html, I pretty much can't do what I need to do.
  4. sonnb

    sonnb Well-Known Member

    You just need to create a Controller with a Route Prefix for your addon. Then:
  5. EQnoble

    EQnoble Well-Known Member

    I dont think i should need to do all that....I have a sidebar element...it has a timer...when it reaches 0 there is a js callback function...I just need an overlay to get triggered....why would I need to create a controller and route prefix for that?....it will never be viewed directly and only ever viewed from that overlay
  6. EQnoble

    EQnoble Well-Known Member

    Also I tried that....

    Fatal error: Call to a member function create() on a non-object in

    Synopsis: Fail
  7. sonnb

    sonnb Well-Known Member

    How did you call create function? It's really hard to help with too less of information.
  8. xf_phantom

    xf_phantom Well-Known Member

    you could also use the proxy system, extend e.g. the misc controller and add your own action method there.
    Then you won't need to create a new route prefix and route class.
    thedude likes this.

Share This Page