Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1547

Create "promo-block:ImageField" tag

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3.0-B1
    • Component/s: Front End
    • Labels:
      None
    • Change Log Group:
      Added
    • Change Log Message:
      Added "promo-block:ImageField" tag for automatic display of language based promo block image.
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Create "promo-block:ImageField" tag, that will:

      • get field name using this code: $field = $this->SelectParam($params, 'name,field');
      • if "$field" is "false" (means no parameter was given) then use "Image" field name
      • create "$current_language_field" variable, that would represent field name on current language (e.g. "l3_Image" for "Image" field)
      • get field value (via "GetDBField" method)
      • if value found, then set $params['name'] to the "$current_language_field" and return "Field" tag result
      • set $params['name'] to the field name on primary language and return "Field" tag result

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Erik Snarski [Intechnic]
                Reviewer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: