To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Ticket #442 (closed defect: fixed)

Opened 20 months ago

Last modified 13 months ago

Slot nesting fails when nest level is greater than 2

Reported by: dordille Owned by: tboutell
Priority: major Milestone: 1.4.2
Component: apostrophePlugin Version: 1.4
Keywords: Cc: geoffd, johnnyoffline, rickybanister, agilbert,
Symfony version: 1.4

Description

The blog plugin allows you to do some pretty funky things with slots. One of these is including slots within slots. However when you include a slot in a slot in a slot things no longer work. Even worse there are 500 errors. It seems like when the slot nesting depth is greater than 2 aTools::getCurrentPage() returns the page corresponding to the slug of the virtual page used for one of the slots.

This isn't strictly a blog bug as this seems to apply to all slots nesting other slots.

Change History

Changed 20 months ago by boutell

  • cc geoffd, johnnyoffline, rickybanister, agilbert, added
  • priority changed from minor to major
  • version set to 1.4
  • status changed from new to accepted

The "major" part of this bug is figuring out whether we implement it or just document that you shouldn't do it and teach the code to throw an exception if you try.

The "minor" part would be actually making it work, unless we have a seriously compelling client-project-gotta-have-it reason to nest slots deeper than 2.

Changed 20 months ago by boutell

That said, if the implementation is stupid simple, it might be best to implement it, so I should at least look at it.

Changed 17 months ago by tboutell

  • owner changed from boutell to tboutell

Changed 13 months ago by geoffd

  • status changed from accepted to closed
  • resolution set to fixed

You actually can have a normal view with a_slot calls now, we resolved a lot of issues there. Of course you should not put blog slots in a blog slot template, infinite recursion is a bug in the universe (:

Note: See TracTickets for help on using tickets.