drupalfun.com
Photogallery not on separate page
Hi,
I'm trying to make the photogallery just appear in the profile and not be linked to a separate node (same as it does in the user page if this option is ticked, 'user's photos' isn't clickable). As the photos can be viewed already, I don't really want to take the user to another page to view them.
Any ideas? I tried adding it as a content pane but it didn't work!
Thanks
Katy
Related Questions
Responses
5. problem with display
I tried this out and the problem is getting the images to display side by side.
If I add the php snippet to the contemplate code for the whole of the profile, the images display correctly but the rest of the profile doesn't (fields missing, wrong layout). Is there a way to get the right code for contemplate to put in that would reflect the display as it is before I modify it?
6. Hi, Yes, you'll have to
Hi,
Yes, you'll have to define the css selectors more accurately.
What is the snippet you used now? Can you past it here?
Instead of using something like
.field{
you would use
.imagefield{
(but then in the right syntax).
7. php snippet
Hi
I used the php snippet from the book:
<?php foreach ((array)$node->field_pictures as $item)
{ ?>
<?php print $item['view'] ?>
<?php } ?>
Could I do it with CSS instead?
8. Ah, ok. Of course, I forgot
Ah, ok. Of course, I forgot that you have the images as part of the profile. In that case, you have two options:
- add all of the other fields to the contemplate (you can find the field codes below the input field and click on them to add)
- try to style them with css, but I think there might be a or between them. Perhaps with negative margins?


1. Hi, It should work as a
Hi,
It should work as a content pane.
The same way as you normally put the teaser in the content profile, only now, you use 'node view'.