Photogallery not on separate page

Status: 
Open
Question: 

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

Responses

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'.

2. Did it work for you?

Did it work for you?

3. nope :(

my computer was out of action for a while but haven't managed it yet. But I was thinking of trying adding the photos as another field on the profile, hiding it then displaying it as another content pane like the avatar. Would this work?

4. That's also an option!

That's also an option!

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?