How To Create A Profile Section Page?

alt=
Ekwe
@ekwe
10 years ago
212 posts
I will like to create a bio and followers page for the artists. How can I go about that?

Thanks
updated by @ekwe: 03/22/14 09:14:51PM
michael
@michael
10 years ago
7,714 posts
A couple of modules would be the first way I would look into.

xxBio
xxFollowers

have xxBio control the URL 'bio'
have xxFollowers control the url 'followers'

then build views into the profile.php file of the module
profile_view_xxBio_default()
profile_view_xxFollowers_default()

That call a .tpl file from their /templates/ folders to show what you want to show.

/modules/xxBio/templates/some_templates.tpl

Take a look at jrBlog/profile.php and the profile_view_jrBlog_default() function to see how its done.

-----
alternatively if you have all the data you need without going through a function, you can use the item_index.tpl directly to format the page

/modules/xxBio/templates/item_index.tpl

Tags