Groups
Groups
Sign in
Groups
Groups
Reason Discussion
Conversations
About
Send feedback
Help
head_items via a thor form view
8 views
Skip to first unread message
Steve
unread,
May 14, 2013, 5:16:32 PM
5/14/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to reason-d...@googlegroups.com
Hi all,
How can I gain access to a page's head_items from a form view?
Thanks,
Steve
Nathan White
unread,
May 14, 2013, 5:33:53 PM
5/14/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to reason-d...@googlegroups.com
If your form view has a method called "custom_init", it believe it
will be run early enough in the stack to add head items like this:
function custom_init()
{
$model =& $this->get_model();
$head_items = $model->get_head_items();
$head_items->add_stylesheet('/global_stock/css/onecard/mobile_form.css');
}
Nate
> --
> You received this message because you are subscribed to the Google Groups
> "Reason Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
reason-discuss...@googlegroups.com
.
> To post to this group, send email to
reason-d...@googlegroups.com
.
> Visit this group at
>
http://groups.google.com/group/reason-discussion?hl=en-US
.
> For more options, visit
https://groups.google.com/groups/opt_out
.
>
>
Steve
unread,
May 16, 2013, 4:52:59 PM
5/16/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to reason-d...@googlegroups.com, na...@natewhite.com
Perfect. Thanks, Nate.
Reply all
Reply to author
Forward
0 new messages