var_dump($Page) gives me string(0) ""
I guess thats why print_r, echo and decho didn't help me...
So $Sender->Data('PageData') doesn't seem to have what I am looking for but there is a ["Page":protected]=> object(stdClass) with ["PageID"] and ["Name"] in $Sender. How can I access it?
Comments
this is telling me:
How can I tell what is available in $Page?
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Thank you Bleistivt!
var_dump($Page) gives me string(0) ""
I guess thats why print_r, echo and decho didn't help me...
So $Sender->Data('PageData') doesn't seem to have what I am looking for but there is a ["Page":protected]=> object(stdClass) with ["PageID"] and ["Name"] in $Sender. How can I access it?
Hm, looks like the property is protected since available in the Data() anymore since this commit:
https://github.com/shadowdare/Vanilla-App-BasicPages/commit/fdbeee1d0a89f38c229de1cecaba29ef79f3420d
A bit of a workaround, but you can do:
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Looks like I forgot to pass the Page property to the Sender data collection in PageController. I just uploaded Basic Pages v2.1.4 to add this.
@4311021X, you can now access the Page property from the controller via a plugin with Basic Pages v2.1.4 like this:
Add Pages to Vanilla with the Basic Pages app