Activity Creating the contactus Attachment view

5. We'll save the content, which is shown in the following screenshot.

5. We'll save the content, which is shown in the following screenshot.

6. With our content created, we're ready to create our Attachment display. Edit our Contact us view (admin/build/views/edit/contact_us).

6. With our content created, we're ready to create our Attachment display. Edit our Contact us view (admin/build/views/edit/contact_us).

7. Create a title for the view, and name it Guild Builders Contact Information, also create the header information, to appear beneath the title.

8. The next thing to do is create an Attachment display for our view.

9. That takes us to the View control panel.

View contact_us

displaying items of type Node, Export Clone View "Page"

Defa u Its

Attachment

Remove display

Page

Attachments added toother displays to achieve multiple views in the same vis tv.

Attachment

Basic settings

Sort * itl

Relationships

criteria

Name:

Attachment *

Attachment

None defined

None defined

Title: None

jAddji^a^j ]

Style: &

Arguments +

Filters + **

Unformatted

Wone defined

Node: Post date =

Row style: Node ^ Use AJAX: No

8/8/86

Fields

Analyze j

Items to display: 1

Distinct: Nc

The style selected

Access:

does not utilise

Unrestricted

fi elds.

Caching: None

Exposed form in

block: No

Header None

Footer: None

Empty text: None

Theme:

Information

Attachment

settings

Inherit

arguments: Yes

Inherit exposed

filters: No

Position: Before

Attach to: None

10. We'll start with the Filters pane. Click on the Node: Post date filter we have, and click Override, so that our changes only affect the Attachment display. Then click Remove, because we don't want this filter for our Attachment.

11. Click the + icon to add a filter. We created a piece of content, of the Location content type. Therefore, we can create a filter to select only the Node: Type of Location, and another to specify that the node is published, in case we ever have more than one version of that content, so that only the one that is published will be selected.

12. In the settings dialog for the filter, specify that Published should be Yes.

Attachment: Configure filter Node: FuJ?Jis/ied

Status: using overridden values.

[ Use default

This item is currently nat exposed. If you expase it, j Expose users will be able to change the filter as they view

Published:

Update Cancel Remove

13. Next, we'll specify that the Attachment be attached to the Page display.

Attachment: Attach to

□ Defaults Wi Page

Select which display or displays this should attach ta [ Update] [ Cancel |

14. The last thing we need to do is add a small entry to our CSS file, so that our map and contact information will appear side-by-side.

/* Contact-Us page settings */ #contact-us-info, .field-field.map { float: left } #contact-us-info { margin-right: 1em; }

And with that, and two images that show our Attachment display (which is too large to fit on the page in one image), we're done!

Guild Builders Contact Information

Please let us know how we car help you. The form below will allow you to send us a message, or feel free to use any of the other contact information provided here.

Guild Builders Inc.

238 Main Street

Rancocas, NJ 03073

Phone: 609-265-0444

E-mail: [email protected]

Guild Builders Inc.

238 Main Street

Rancocas, NJ 03073

Phone: 609-265-0444

E-mail: [email protected]

Show large map

► CONTACT GUILD BUILDERS

Name:

Company:

► CONTACT GUILD BUILDERS

Name:

Company:

Phone: E-mail: Subject:

Phone: E-mail: Subject:

Hess age:

Math question:

So^e this sirrple math problem and enter the result. Eg. for 1+3, enter 4. Send e-mail

0 0

Post a comment