{"id":16216,"date":"2012-04-05T08:29:34","date_gmt":"2012-04-05T12:29:34","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=16216"},"modified":"2017-02-22T05:16:17","modified_gmt":"2017-02-22T10:16:17","slug":"drupal-how-to-work-with-gallery","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/drupal-how-to-work-with-gallery.html","title":{"rendered":"Drupal. How to work with Gallery"},"content":{"rendered":"<p>\r\n<p>This tutorial is going to show you how to work with a portfolio page on your Drupal template. If your template comes with a custom portfolio page installed with the sample data profile (<a href=\"\/help\/how-to-install-drupal-7-theme-sample-data.html\" target=\"_blank\">How to install Drupal sample data<\/a>), you will get three tabs in the main menu with 3 different gallery layouts.<\/p>\r\n<h3>Edit gallery<\/h3>\r\n<p> In order to make changes to the existing gallery, <\/p>\r\n<p>1) Login into your Drupal admin panel; <\/p>\r\n<p>2) Go to the top menu &quot;<strong>Content<\/strong>&quot; <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_1-300x217.jpg\" alt=\"\" title=\"drupal_portfolio_page_1\" width=\"300\" height=\"217\" class=\"aligncenter size-medium wp-image-16218\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_1-300x217.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_1-1024x741.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_1.jpg 1227w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>3) Under &quot;<strong>Show Only items Where<\/strong>&quot; select &quot;<strong>Portfolio<\/strong>&quot; and click &quot;<strong>Filter<\/strong>&quot; <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_2-300x216.jpg\" alt=\"\" title=\"drupal_portfolio_page_2\" width=\"300\" height=\"216\" class=\"aligncenter size-medium wp-image-16219\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_2-300x216.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_2-1024x737.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_2.jpg 1227w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>4) This will get you to the list of all portfolio projects that come with the sample data of your template. You can change the existing images and the image descriptions to yours. Click on &quot;<strong>Edit<\/strong>&quot; under the <strong>&#8216;operations&#8217;<\/strong> column to edit each of them. <\/p>\r\n<p>5) On the &quot;<strong>Edit portfolio..<\/strong>&quot; page you can change the name of the portfolio project (required), its description in the &quot;<strong>body&#8217;<\/strong> field and delete the old original image\/upload your image.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_3-300x175.jpg\" alt=\"\" title=\"drupal_portfolio_page_3\" width=\"300\" height=\"175\" class=\"aligncenter size-medium wp-image-16220\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_3-300x175.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_3-1024x599.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_3.jpg 1266w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>6) In the next field called &quot;<strong>Category<\/strong>&quot; you can change the name of the existing category or add a new category name. You can find the list of the available categories by going to the top menu &quot;<strong>Structure<\/strong>&quot; -&gt; &quot;<strong>Taxonomy<\/strong>&quot; -&gt; <strong>Category<\/strong> -&gt; list items.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_4-300x157.jpg\" alt=\"\" title=\"drupal_portfolio_page_4\" width=\"300\" height=\"157\" class=\"aligncenter size-medium wp-image-16221\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_4-300x157.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_4-1024x537.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_4.jpg 1262w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p> 7) When you are done with your changes, click on &quot;<strong>Save<\/strong>&quot; at the bottom of the page; <\/p>\r\n<p>8) Preview your changes from the front end.<\/p>\r\n<h3>Add Protfolio Project<\/h3>\r\n<p> In order to add a new portfolio project <\/p>\r\n<p>1) In your Drupal administration panel go to <strong>Content -&gt; Add Content;<\/strong><\/p>\r\n<p>2) Under the &quot;<strong>Add Content<\/strong>&quot; select &quot;<strong>Portfolio<\/strong>&quot; <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_5.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_5-300x203.jpg\" alt=\"\" title=\"drupal_portfolio_page_5\" width=\"300\" height=\"203\" class=\"aligncenter size-medium wp-image-16222\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_5-300x203.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_5-1024x695.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_5.jpg 1224w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>3) On the &quot;<strong>Create Gallery\u2026<\/strong>&quot; page add a title (required), the image description, upload your new image and specify what category you want to add the image to; <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_6.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_6-300x218.jpg\" alt=\"\" title=\"drupal_portfolio_page_6\" width=\"300\" height=\"218\" class=\"aligncenter size-medium wp-image-16223\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_6-300x218.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_6-1024x745.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_6.jpg 1221w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>4) When you are done, click the &quot;<strong>Save<\/strong>&quot; button at the bottom of the page; <\/p>\r\n<p>5) Go to the front end of your site to preview the changes. Some templates may have some text on top of all your Portfolio pages.<\/p>\r\n<h3>Edit portfolio project<\/h3>\r\n<p> In order to edit it, <\/p>\r\n<p>1) Go to <strong>Structure<\/strong> -&gt; <strong>Blocks<\/strong> -&gt; <strong>Our gallery block<\/strong> (the name depends on your template, so it may be different) and click &quot;<strong>configure<\/strong>&quot;; <\/p>\r\n<p>2) On the next page you can change the block, the title, the block description and the block content; <\/p>\r\n<p>3) If you scroll down, you can edit the list of gallery pages to display the block on under the <strong>Visibility Settings -&gt; Pages<\/strong>; <\/p>\r\n<p>4) When you are done with your changes, click the &quot;<strong>Save Block<\/strong>&quot; button at the bottom.<\/p>\r\n<h3>Add new portfolio page and edit view<\/h3>\r\n<p> In order to modify the displays of your Portfolio view and add a new Portfolio page <\/p>\r\n<p>1) In your Drupal admin go to the top menu &quot;<strong>Structure<\/strong>&quot; -&gt; &quot;<strong>Views<\/strong>&quot; -&gt; &quot;<strong>Portfolio<\/strong>&quot; <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_7.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_7-300x199.jpg\" alt=\"\" title=\"drupal_portfolio_page_7\" width=\"300\" height=\"199\" class=\"aligncenter size-medium wp-image-16224\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_7-300x199.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_7-1024x681.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_7.jpg 1241w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>2) Under the &quot;<strong>Operations<\/strong>&quot; column you can open, edit ( disable, delete, clone or export) the portfolio content view. Select &quot;<strong>edit<\/strong>&quot; <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_8.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_8-300x219.jpg\" alt=\"\" title=\"drupal_portfolio_page_8\" width=\"300\" height=\"219\" class=\"aligncenter size-medium wp-image-16225\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_8-300x219.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_8-1024x750.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_8.jpg 1225w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>3) On the next page you can modify the displays of your Portfolio view or add new displays. By clicking on different &quot;<strong>Page<\/strong>&quot; tabs, you will notice that the only differences between them are the Path and the Menu. To delete any of them, it is enough to delete the menu each one is pointed to <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_9.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_9-300x168.jpg\" alt=\"\" title=\"drupal_portfolio_page_9\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-16226\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_9-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_9-1024x575.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_9.jpg 1241w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>4) To add a new gallery page (view), under &quot;<strong>Displays<\/strong>&quot; click on &quot;<strong>Add<\/strong>&quot; -&gt; &quot;<strong>Page<\/strong>&quot;; <\/p>\r\n<p>5) Under the &quot;Fields&quot; click on &quot;<strong>add<\/strong>&quot; and select &quot; <strong>Content: Upload Image<\/strong>&quot; . Click &quot;<strong>Apply<\/strong>&quot; to add the selected; <\/p>\r\n<p>6) In the Filter criteria click &quot;<strong>Add<\/strong>&quot; and select Content: Published (Yes) and Content: Type (= Portfolio); <\/p>\r\n<p>7) Under the &quot;page Settings&#8217; add a new path. The path can be copied from the url of the page (E.g. if your URL is your_site.com\/?q=portfolio-1-col , just copy portfolio-1-col); <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_10.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_10-300x217.jpg\" alt=\"\" title=\"drupal_portfolio_page_10\" width=\"300\" height=\"217\" class=\"aligncenter size-medium wp-image-16227\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_10-300x217.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_10-1024x743.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_10.jpg 1231w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>8) For a portfolio page the path also means a style (layout) of the page. To check the paths available for the portfolio, go to \\sites\\default\\files\\styles\\ folder on your FTP. Copy the name of one of the folders \/portfolio, \/portfolio-1-col, \/portfolio-2-col or \/portfolio-3-col. Click on &quot;\/&quot; (if no path were added), paste the name and click &quot;<strong>Apply<\/strong>&quot;; <\/p>\r\n<p>9) Under the &quot;Page Settings&quot; you can also add a new menu tab or one of the existing menu tabs to point the new portfolio page to. Click on &quot;No Menu&quot; next to the &quot;Menu&quot; and in the next window select &quot;Normal menu entry&quot; and add a new title. Click on &quot;Apply&quot;; <\/p>\r\n<p>10) Under the &quot;Pager&quot; you can specify the number of images to display per page; <\/p>\r\n<p>11)When you are done click on &quot;<strong>Save<\/strong>&quot;; <\/p>\r\n<p>12) To add a new menu tab to point the new gallery layout page to, go to the top menu &quot;<strong>Structure<\/strong>&quot; -&gt; &quot;<strong>Menus<\/strong>&quot; -&gt; <strong>Main Menu<\/strong> -&gt; add link. Add a new title (or the same as the title of your portfolio display page) and the path (the same as in your portfolio display page (see point 7) and click on &quot;Save&quot; at the bottom. <\/p>\r\n<p>13) If you need to show your portfolio page as a drop-down, drag your new menu to re-order it. To change the galley image sizes on your Portfolio pages, go to the top menu &quot;<strong>Configuration<\/strong>&quot; -&gt; <strong>&#8216;Media<\/strong>&quot; -&gt; &quot;<strong>Image styles<\/strong>&quot;. <\/p>\r\n<p>On the same page you can also change\/select an effect with which your image is displayed on the page:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_11.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_11-300x187.jpg\" alt=\"\" title=\"drupal_portfolio_page_11\" width=\"300\" height=\"187\" class=\"aligncenter size-medium wp-image-16217\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_11-300x187.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_11-1024x641.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/drupal_portfolio_page_11.jpg 1249w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p> For more information on how to work on your Portfolio page in Drupal, please see the demo below <\/p>\r\n<p>&nbsp;<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"\/help\/files\/Drupal\/drupal_how_to_work_with_portfolio_page.htm\" target=\"blank\">Drupal. How to work with Gallery<\/a><\/p>\r\n<\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial is going to show you how to work with a portfolio page on your Drupal template.<\/p>\n","protected":false},"author":30,"featured_media":16856,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[723],"tags":[2564,593,499,572,847],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/16216"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=16216"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/16216\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/16856"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=16216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=16216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=16216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}