params option in link edit

9 views
Skip to first unread message

alefix

unread,
Feb 10, 2012, 8:11:05 AM2/10/12
to Croogo
Could you please advise what does the field "params" do in link
options? (Misc tab) According to the code it isn't used anywhere.
I am trying to figure out if there is a way to attach an image to a
link in the menu without changing the core files.
thank you

Marcin

Rachman Chavik

unread,
Feb 11, 2012, 6:44:57 AM2/11/12
to cro...@googlegroups.com
It accepts a key value parameters, handled by ParamsBehavior.

Eg:
foo=bar
spam=eggs

That will get you extra values when Link is fetched:

[Link] = array(
   'name' => 'some link',
   ...
   )
[Params] = array(
   ['foo'] => 'bar'
   ['spam'] => 'eggs',
   )
);

I can't recall how it will look exact, try debug($link) and see your yourself.
Reply all
Reply to author
Forward
0 new messages