From the user guide:
Read More
The WebYep Read More Element is used for customizable links to a detailed view at the end of product descriptions or teaser texts.
This element is represented by the following PHP code:
<?php webyep_readMore("read", "Read More", "readmorepage.php", "_self", 550, 240); // WebYepV2 ?>
Arguments for the webyep_readMore() PHP function call:
(see “Attributes of the Read More Element” below for details)
- “Fieldname”: A string – the field name for this element.
- “LinkText”: A string – a default text for the link.
- “target_page.php”: A string – the URL of the link.
- “TargetFrame”: A string – the name of the frame, that should be the target of the link.
Attributes of the Read More Element
Field name
A distinctive name for that element. This name will be displayed in the page in edit mode to give the user a hint on what this elements content stands for and to distinguish the different WebYep Elements in a page.
Link Text
The default text for the Read More edit button. If left blank, WebYep will display the element’s name instead next to the edit button.
Page (URL)
The URL (or filename) of a page to be shown when a visitor clicks the link.
If the Read More Element is positioned inside a Loop Element (see [WebYep Loop Element]), the Read More Elements behave much like a WebYep Menu Element’s item: The page shown when clicking the image can have different WebYep content depending on which link (in which loop row) the visitor clicked on.
So one could for example create a loop (WebYep Loop Element) of brief product descriptions with a product title (Short Text Element), a short description (Long Text Element) and a Read More Element in the looped block. By assigning the URL of a detail page to the Read More Element visitors can click on the link to see the detail page for that product.
Target Frame
If the page which URL you entered in the “Target Page” attribute should be opened in another HTML frame you can enter this frame’s name here.
So all it basically does is to create a link or button at the end of some text. The URL is not changeable but the content author is able to login to change the button or link label.
This stack was carried in previous versions of the WebYep stacks. I carried it over into this version of the WebYep stacks, in response to a few users asking me for it. I imagine it is not used too often, but it is an official part of the WebYep CMS core, so therefore I continue to provide it in “stack variant”.
The WebYep Toggle stack seems to get used more, if you have titles that need to be clicked to reveal larger areas of content.