|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
[Fwd: Re: Generate menu with variables with Zend Navigation]And how to make id dynamical? So it can be rendered differently dependent on where i am? On Mon, Jun 22, 2009 at 6:36 PM, Josh Team <joshteam@...> wrote: <params> |
|
|
Re: [Fwd: Re: Generate menu with variables with Zend Navigation]Does anyone know how to do the below?
I would like to generate a menu with dynamic parameters such as when visiting page A, link should be /controller/action?id=A, when visiting page B link should be /controller/action?id=B. Is it not possible to do? Any clean or workaround suggestions are welcome. Regards, Joakim On Tue, Jun 23, 2009 at 10:07 PM, Joakim Gerth <armarna@...> wrote:
|
|
|
Re: [Fwd: Re: Generate menu with variables with Zend Navigation]Anyone?
Regards, Joakim On Wed, Jul 1, 2009 at 7:39 AM, Joakim Gerth <armarna@...> wrote: > > Does anyone know how to do the below? > > I would like to generate a menu with dynamic parameters such as when visiting page A, link should be /controller/action?id=A, when visiting page B link should be /controller/action?id=B. > > Is it not possible to do? Any clean or workaround suggestions are welcome. > > Regards, > Joakim > > On Tue, Jun 23, 2009 at 10:07 PM, Joakim Gerth <armarna@...> wrote: >> >> >> >> ---------- Forwarded message ---------- >> From: Joakim Gerth <armarna@...> >> To: Josh Team <joshteam@...> >> Date: Mon, 22 Jun 2009 18:54:03 +0200 >> Subject: Re: [fw-general] Generate menu with variables with Zend Navigation >> And how to make id dynamical? So it can be rendered differently dependent on where i am? >> >> On Mon, Jun 22, 2009 at 6:36 PM, Josh Team <joshteam@...> wrote: >>> >>> <params> >>> <id>xxx</id> >>> </params> >>> after </action> and before </home> >>> >>> On Mon, Jun 22, 2009 at 11:34 AM, Joakim Gerth<armarna@...> wrote: >>> > Hi all, >>> > I would like to render a menu from xml config using Zend Navigation. My >>> > problem is to include action specific variables in the url. >>> > >>> > I.e. in my xml file >>> > <home> >>> > <label>Home</label> >>> > <controller>index</controller> >>> > <action>index</action> >>> > </home> >>> > >>> > In my menu i would like the url pointing to /index/index/?id=xxx >>> > >>> > Is that possible? >>> > If yes, how, if no are there any possible workarounds? >>> > >>> > BR >>> > Joakim >>> > >>> > >> >> > |
|
|
Re: [Fwd: Re: Generate menu with variables with Zend Navigation]> Anyone? > > Regards, > Joakim > > On Wed, Jul 1, 2009 at 7:39 AM, Joakim Gerth <armarna@...> wrote: > > Does anyone know how to do the below? > > > > I would like to generate a menu with dynamic parameters such as when > > visiting page A, link should be /controller/action?id=A, when visiting > > page B link should be /controller/action?id=B. > > > > Is it not possible to do? Any clean or workaround suggestions are > > welcome. > > > > Regards, > > Joakim > > > > On Tue, Jun 23, 2009 at 10:07 PM, Joakim Gerth <armarna@...> wrote: > >> ---------- Forwarded message ---------- > >> From: Joakim Gerth <armarna@...> > >> To: Josh Team <joshteam@...> > >> Date: Mon, 22 Jun 2009 18:54:03 +0200 > >> Subject: Re: [fw-general] Generate menu with variables with Zend > >> Navigation And how to make id dynamical? So it can be rendered > >> differently dependent on where i am? > >> > >> On Mon, Jun 22, 2009 at 6:36 PM, Josh Team <joshteam@...> wrote: > >>> <params> > >>> <id>xxx</id> > >>> </params> > >>> after </action> and before </home> > >>> > >>> On Mon, Jun 22, 2009 at 11:34 AM, Joakim Gerth<armarna@...> wrote: > >>> > Hi all, > >>> > I would like to render a menu from xml config using Zend Navigation. > >>> > My problem is to include action specific variables in the url. > >>> > > >>> > I.e. in my xml file > >>> > <home> > >>> > <label>Home</label> > >>> > <controller>index</controller> > >>> > <action>index</action> > >>> > </home> > >>> > > >>> > In my menu i would like the url pointing to /index/index/?id=xxx > >>> > > >>> > Is that possible? > >>> > If yes, how, if no are there any possible workarounds? > >>> > > >>> > BR > >>> > Joakim This is possible by the navigation xml structure Josh already said. Jurian Sluiman Soflomo.com |
|
|
Re: [Fwd: Re: Generate menu with variables with Zend Navigation]Thanks for your reply Jurian.
However, that seem to be static id values. I need to make dynamic urls, i.e. this->view->id = 1234;, which would then render controller/action/id/1234. That is not what you are referring to right? Regards, Joakim On Wed, Jul 8, 2009 at 11:13 AM, Jurian Sluiman<subscribe@...> wrote: > Op Wednesday 08 July 2009 11:02:31 schreef Joakim Gerth: >> Anyone? >> >> Regards, >> Joakim >> >> On Wed, Jul 1, 2009 at 7:39 AM, Joakim Gerth <armarna@...> wrote: >> > Does anyone know how to do the below? >> > >> > I would like to generate a menu with dynamic parameters such as when >> > visiting page A, link should be /controller/action?id=A, when visiting >> > page B link should be /controller/action?id=B. >> > >> > Is it not possible to do? Any clean or workaround suggestions are >> > welcome. >> > >> > Regards, >> > Joakim >> > >> > On Tue, Jun 23, 2009 at 10:07 PM, Joakim Gerth <armarna@...> >> > wrote: >> >> ---------- Forwarded message ---------- >> >> From: Joakim Gerth <armarna@...> >> >> To: Josh Team <joshteam@...> >> >> Date: Mon, 22 Jun 2009 18:54:03 +0200 >> >> Subject: Re: [fw-general] Generate menu with variables with Zend >> >> Navigation And how to make id dynamical? So it can be rendered >> >> differently dependent on where i am? >> >> >> >> On Mon, Jun 22, 2009 at 6:36 PM, Josh Team <joshteam@...> wrote: >> >>> <params> >> >>> <id>xxx</id> >> >>> </params> >> >>> after </action> and before </home> >> >>> >> >>> On Mon, Jun 22, 2009 at 11:34 AM, Joakim Gerth<armarna@...> >> >>> wrote: >> >>> > Hi all, >> >>> > I would like to render a menu from xml config using Zend Navigation. >> >>> > My problem is to include action specific variables in the url. >> >>> > >> >>> > I.e. in my xml file >> >>> > <home> >> >>> > <label>Home</label> >> >>> > <controller>index</controller> >> >>> > <action>index</action> >> >>> > </home> >> >>> > >> >>> > In my menu i would like the url pointing to /index/index/?id=xxx >> >>> > >> >>> > Is that possible? >> >>> > If yes, how, if no are there any possible workarounds? >> >>> > >> >>> > BR >> >>> > Joakim > > Correct me if I'm wrong, but ZF is capable of doing such urls like > /controller/action/id/1234. This is internally mapped like controller = > controller, action = action, id = 1234. > This is possible by the navigation xml structure Josh already said. > > > Regards, Jurian > > -- > Jurian Sluiman > Soflomo.com > > |
| Free embeddable forum powered by Nabble | Forum Help |