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

View rendering #1016

Open
IWantToImprovemySkills opened this issue Apr 22, 2018 · 0 comments
Open

View rendering #1016

IWantToImprovemySkills opened this issue Apr 22, 2018 · 0 comments

Comments

@IWantToImprovemySkills
Copy link

IWantToImprovemySkills commented Apr 22, 2018

Good morning Tyler,
as always, thank you for your help, here's another simple question:
I was searching in the docs how to render fields with a view instead of creating nodes,
example:
my view in drupal has a lot of link fields, I need those links to be generated as buttons(like it happens normally when you click on a node, the links are displayed as buttons) because I don't want to click on the node to access to those links.
your example for render the view:
function my_module_articles_list_row(view, row, variables) { //how these variables are associated to the view?
try {
return l(t(row.title), 'node/' + row.nid);//I got the idea that title and nid are the label in json view
}
catch (error) { console.log('my_module_articles_list_row - ' + error); }
}
Thank you in advance.

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