Skip to content

View rendering #1016

Open
Open
@IWantToImprovemySkills

Description

@IWantToImprovemySkills

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions