Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Extension to $page->render() #1970

Open
TomS- opened this issue Aug 9, 2016 · 0 comments
Open

[Feature Request] Extension to $page->render() #1970

TomS- opened this issue Aug 9, 2016 · 0 comments

Comments

@TomS-
Copy link

TomS- commented Aug 9, 2016

I love the render function, and I want to stop wireRenderFile and move over to it. At the moment I use wireRenderFile and pass the PageArray or field as a variable. This works great, as it also lets me set other variables.

However render doesn't have such functionality. I would like to see the following example:

$page->render("activity","large", array("title" => "New"));

Then being able to access "title" using $title inside the activity.php. Also there is a need to update renderValue() as it's not consistent with render. For example renderValue has to be

$page->renderValue($new, "large/activity");

rather than:

$page->renderValue($new, "activity", "large");

So what be cool if render and renderValue goes to:

$page->render("activity", "large", array("title" => "Staff Pick"));
$page->renderValue($new, "activity", "large", array("title" => "New"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant