I answer whit what i do in your situation

On 5/4/07, symfony newbie <[EMAIL PROTECTED]> wrote:
>
> Hi everybody,
>
> i'm actually workink with the admin generator functionality. it's
> really impressive !
> i'm trying to build an app which purpose is to build HTML newsletter.
> in my schema.yml i've got to tables : newletter and article;
> this is a 1-N relashionship (1 newsletter have 1 or more articles, 1
> article is only affected to 1 newsletter )
OK
>
> i want to be able to click on a newsletter title and then display only
> articles which belong to this newsletter.
Add a gettre method on the newsletter that returns a link somthing
like getArticlesLink()
then add on the generator.yml as a column to display (see docs)
>
> i think i've to make a partial_link such as explain in the
> documentation and pass to the article/list view the id of the
> newsletter. then i want my app to remind in which newsletter i'm. This
> means that if i click on the create button, i want this article to be
> created under the current newsletter. on the same way if i edit an
> article i want to be able to go back to the articles list of the
> currrent newsletter.
the url that the links point shuld include some way to locate the
newsleter somthing like /articles/MyNewsleter/
and finaly make a route that matchs that url, then on the action you
just need to extarct the parameter from the url (to do this on the
admin generetor you need to overwrite a method, probably the add
setting up a criteria, to know witch one an how, the best way is to
look at the generetad chaces files).

Good Look

>
> what is the best solution to achieve my goals?
>
> may i store the newsletter id in an attribute on first call and then
> override the list, edit and create actions methods to take in account
> a new criteria based on the attribute value
>
> thanks a lot for your help
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to