Hans,
I needed that functionality myself and thought it would be especially
appropriate for the sitemap rows, so I added it this morning.
Essentially the options passed to render_region are passed on to the
individual partials. In this case, :locals => {:page => page, :level =>
level} is passed. Then you have those variables accessible within your
partial.
I have some ideas about how to better modularize the sitemap, including
a core patch to cleanup _node.rhtml, but I'd entertain some suggestions
-- especially ones derived from real usage scenarios.
Sean
Hans-Christian Fjeldberg wrote:
> This is probably a stupid question, but please bear with me!
>
> I am currently removing the admin_parts dependency from the comments
> extension, and replacing this with shards instead, as I feel this
> will make all happy, and will be better supported in the future.
>
> I am also trying to add some extra stuff, and this is where I get
> into trouble.
>
> I am trying to extend the node_row region with a link to the comments
> for the current page. In CommentsExtension I have:
>
> admin.page.index.add :node_row, "index_view_comments"
>
> This works great, but the problem is getting the current page into
> the index_view_comments partial.
>
> The solution is probably easy, and since I have already tried to
> long, I though I just ask for some expert help here :)
>
>
>
> Greetings
>
>
> Hans-Christian Fjeldberg
> [EMAIL PROTECTED]
>
>
>
> _______________________________________________
> Radiant mailing list
> Post: [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>
>
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant