===== Blocks ===== A page of the [[brandportal|Brand Portal]] is built from blocks, which are added and arranged in the [[brandportal-editing|editor]]. ==== Block Types ==== ^ Block ^ Shows ^ |[[brandportal-block-text#text|Text]]|A formatted text.| |[[brandportal-block-text#faq|FAQ]]|Questions whose answers open when clicked.| |[[brandportal-block-media#image|Image]]|An image with a caption and an optional //Download// button.| |[[brandportal-block-media#colours|Colours]]|Colour swatches with values that can be copied.| |[[brandportal-block-media|Do / Don't]]|An image marked as an example to follow or to avoid.| |[[brandportal-block-records|Records]]|The items found by a search as tiles.| |[[brandportal-block-carousel|Carousel]]|The images of the items found by a search, one at a time or several side by side.| |[[brandportal-block-media#video|Video]]|The video of an item.| |[[brandportal-block-map|Map]]|The items found by a search, or a single location, as pins on a map.| |[[brandportal-block-timeline|Timeline]]|Dated items or entries as a list or on a time axis.| |[[brandportal-block-layout#divider|Divider]]|A horizontal line.| |[[brandportal-block-layout#new_row|New Row]]|Nothing; the next block starts in a new row.| |[[brandportal-block-layout#spacer|Spacer]]|Empty space.| ==== Common Settings ==== ^ Setting ^ Description ^ |Width|Quarter, half, three-quarter or full width of the page. Blocks narrower than the page are placed next to each other. On small screens every block covers the full width.| |Background colour|Optional colour behind the whole block, for example to highlight important information. It is chosen with the colour box in the toolbar and removed with the icon next to it; a crossed-out box means no background. The text is shown in grey, black or white, depending on the background.| |Show on page|The eye icon shows or hides the block, see [[brandportal-editing#hidden_blocks|Hidden Blocks]].| |Heading|Optional heading above the block.| |Text|Optional text of the block, see [[brandportal-block-text#text|Text]]. Image, Do / Don't and Video blocks show it as caption.| [[brandportal-block-layout|Layout blocks]] have no heading and text, and a New Row block has no width. Do / Don't, Timeline and layout blocks have no background colour. ==== Blocks with Records ==== Records, Carousel, Map and Timeline blocks show the items found by a search: * The //Search query// is typed as a Fylr search query, for example ''%%assets.desc =@ "United States"%%''. * It is run when the page is opened, so the block always shows the current items. * Only items the user may see and that match the //Limit to items matching// query of the [[general|General]] panel are found. * If no item is found, for example because the user may not see any of them, the whole block including its heading and text is hidden. ==== Item Dialog ==== Clicking an item in one of these blocks, in a carousel only with //Open item details on click//, opens it in a dialog with a large preview, the fields of the Information View, a //Download// button and //Show Full Information//, which opens the item in the Information View. //Download// is offered only for items the user can download, as in the Information View. The dialog title is the //Standard Information// of the item, set in its mask in Fylr; a [[brandportal-block-timeline|timeline]] shows the title of its title field instead. If the file of the item is a video, the dialog shows a player instead of the preview, which starts when its play button is clicked. {{:awp:brandportal-itemdialog.png?nolink|}} Which fields are shown and whether //Download// and //Show Full Information// are offered is set in the [[brandportal#options|options]] of the Brand Portal.