[drupal-devel] [feature] make profiles more themable: do not pass
along huge chunks of HTML
Bèr Kessels
drupal-devel at drupal.org
Tue Sep 13 18:50:49 UTC 2005
Issue status update for
http://drupal.org/node/31123
Post a follow up:
http://drupal.org/project/comments/add/31123
Project: Drupal
Version: cvs
Component: user system
Category: feature requests
Priority: normal
Assigned to: Anonymous
Reported by: Bèr Kessels
Updated by: Bèr Kessels
Status: patch (code needs review)
Attachment: http://drupal.org/files/issues/user_profile_themable_mutliarray.patch (1.46 KB)
I want more power of the theming the user profiles. The recent patch for
profiles imporves ti a little it, but leaves one mayor issue open;
All fields in a "category' are passed along as one huge chunk. That is
a pity, IMO, for you cannot really theme it anymore, exept re-use tha
chunk of HTML. Or, if you really wish, you could pregreplace teh HTML.
This minor patch leaves the default result exactly as it is, yet it
allows themes to do some advanced stuff, without having to do database
queries in the theme.
An example is http://newsphoto.nl/user/2 where I curerntly need about
40 lines of code and two database calls, while with this simple patch,
it will be theme function of only five lines!
And then it allows me to use a .tpl.php file to use reach field as a
variable.
Bèr Kessels
More information about the drupal-devel
mailing list