Categories

Featured templates

Drupal. How to work with Gallery

Norman Fisher April 5, 2012
Rating: 5.0/5. From 1 vote.
Please wait...

本教程将向您展示如何使用 portfolio page on your Drupal template. 如果您的模板带有自定义的 portfolio page installed with the sample data profile (如何安装Drupal样本数据),您将在主菜单中获得三个选项卡,其中包含3种不同的画廊布局.

Edit gallery

为了改变现有的画廊,

1)登录到Drupal管理面板;

2) Go to the top menu "Content"

3) Under "Show Only items Where" select "Portfolio" and click "Filter"

这会让你进入所有人的名单 portfolio projects that come with the sample data of your template. 您可以将现有图像和图像描述更改为您的图像. Click on "Edit" under the ‘operations’ column to edit each of them.

5) On the "Edit portfolio..您可以更改页面的名称 portfolio 项目(必填),其说明载于body’ 字段并删除旧的原始图像/上传您的图像.

6) In the next field called "Category您可以更改现有类别的名称或添加新的类别名称. 你可以通过顶部菜单找到可用类别的列表。Structure" -> "Taxonomy" -> Category -> list items.

7)修改完成后,点击“”Save" at the bottom of the page;

8)从前端预览您的更改.

Add Protfolio Project

In order to add a new portfolio project

1)在Drupal管理面板中转到 Content -> Add Content;

2) Under the "Add Content" select "Portfolio"

3) On the "Create Gallery…页面添加标题(必选), the image description, 上传你的新图片,并指定你想把图片添加到哪个类别;

4)完成后,点击“Save“页面底部的按钮;

5)去你的网站的前端预览更改. 一些模板可能在所有的 Portfolio pages.

Edit portfolio project

In order to edit it,

1) Go to Structure -> Blocks -> Our gallery block (名称取决于您的模板,因此可能会有所不同),然后单击“configure";

在下一页,你可以更改块, the title, 块描述和块内容;

3)如果你向下滚动,你可以编辑画廊页面的列表,以显示块下的 Visibility Settings -> Pages;

4)当您完成更改后,单击“Save Block" button at the bottom.

添加新的作品集页面并编辑视图

为了修改你的显示 Portfolio view and add a new Portfolio page

1)在你的Drupal管理中,进入顶部菜单。Structure" -> "Views" -> "Portfolio"

2) Under the "Operations列,您可以打开,编辑(禁用,删除,克隆或导出) portfolio content view. Select "edit"

3)在下一页,您可以修改显示您的 Portfolio view or add new displays. By clicking on different "Page选项卡,您会注意到它们之间唯一的区别是路径和菜单. 要删除它们中的任何一个,只要删除每个指向的菜单就足够了

4)要添加新的图库页面(视图),请在“Displays" click on "Add" -> "Page";

5)在“字段”下点击“add" and select " Content: Upload Image" . Click "Apply" to add the selected;

6)在筛选条件中单击“Add,选择“内容:已发布”(Yes)和“内容:类型”(= Portfolio);

7)在“页面设置”下添加一个新路径. 路径可以从页面的url (E.g. if your URL is your_site.com/?q=portfolio-1-col , just copy portfolio-1-col);

8) For a portfolio 页面路径也意味着样式(layout) of the page. 的可用路径 portfolio,转到你的“\sites\default\files\styles\”文件夹 FTP. 复制其中一个文件夹的名称/portfolio, /portfolio-1-col, /portfolio-2-col or /portfolio-3-col. 点击“/”(如果没有添加路径),粘贴名称,点击“Apply";

9)在“页面设置”下,您还可以添加一个新菜单 tab 或其中一个现有的菜单选项卡指向新的 portfolio page to. 点击“菜单”旁边的“无菜单”,在下一个窗口中选择“普通菜单项”并添加新标题. Click on "Apply";

10)在“寻呼机”下,您可以指定每页显示的图像数量;

11)当你完成后,点击“Save";

12) To add a new menu tab to point the new gallery layout 转到,转到顶部菜单Structure" -> "Menus" -> Main Menu -> add link. 添加一个新标题(或与你的标题相同) portfolio 显示页面)和路径(与 portfolio 显示页面(见第7点),然后点击底部的“保存”.

13) If you need to show your portfolio 页面作为下拉菜单,拖动新菜单重新排序. 更改厨房图像的大小 Portfolio pages, go to the top menu "Configuration" -> Media" -> "Image styles".

在同一页面上,您还可以更改/选择图像在页面上显示的效果:

要了解更多关于如何工作的信息 Portfolio 页面,请参见下面的演示

 

请随时查看下面的详细视频教程:

Drupal. How to work with Gallery

Drupal Responsive Templates
This entry was posted in Drupal Tutorials and tagged archived_tutorial, drupal, gallery, page, view. Bookmark the permalink.

Submit a ticket

如果您仍然无法找到关于您的问题的足够的教程,请使用以下链接向我们的技术支持团队提交请求. 我们将在接下来的24小时内为您提供我们的帮助和协助: Submit a ticket