LazyDev
  • Main site
  • Products
    • DLE Filter

      News filter

    • DLE Search

      Improved news search

    • DLE Subscribe

      Subscriptions to news, categories, tags and xfields

    • DLE Seo

      Improved SEO optimization of pages

    • DLE Dynamic xField

      Dynamic additional fields

    • DLE Collections

      News collections

    • DLE Emote Lite

      Rating news "emotions"

    • DLE xField Tab PRO

      Module for grouping additional fields in tabs

    • DLE Conditions

      Conditions in templates

    • DLE YouWatch

      The output of the recently viewed

    • DLE Scroll News

      AJAX Loading news in full news

  • Start
  • Compatibility
  • Installation
  • Update
  • Module tags
  • Common mistakes
  • List of updates

DLE Dynamic Xfield

Dynamic additional fields.

Installation

Very easy module installation.

Access

Possibility to set which groups will have access to this or that dynamic field.

Website and Admin Panel

The module supports both work from the admin panel and when adding news from the site.

Tags

Convenient tags for outputting data from dynamic fields.

Compatibility

  • DataLife Engine

    15.3 - 17.1

  • PHP

    7.4, 8.1, 8.2

  • Ioncube Loader

    13.0.2

Installation

  • Step one

    Upload files from a folder to the server Module

  • Step two

    Install via plugin system file dle-dynamic-xfield.xml

  • Step three

    Create dynamic fields in the admin panel of the module and they will be automatically displayed when adding or editing news.

Update to version 2.1.0

  • Step one

    Update the module plugin dle-dynamic-xfield.xml

  • Step one

    Update the module files in folder engine/lazydev/dle_dynamic_xfield/ except folder engine/lazydev/dle_dynamic_xfield/data

Module tags

Tag Description
{dynamic:each field="X"}
    ...
{/each}
Display all values of the dynamic additional field "X", where "X" is the name of the additional field.
original="yes"
Parameter for the tag {dynamic:each. Will print all values of the dynamic additional field "X", including the original additional field. Where "X" is the name of the additional field.
block="yes"
Parameter for the tag {dynamic:each. Changes the display of values to block, that is, the values of the additional field are grouped by dynamic additional fields.
block-sep="<br>"
Parameter for the tag {dynamic:each. Connects blocks with the specified separator.
separator="<br>"
Parameter for the tag {dynamic:each. Joins dynamic field values with the specified separator.
{value}
Display the values of the dynamic additional field. The tag is available inside the tag {dynamic:each} and works with all types of additional fields except Gallery and Image.
{i}
Outputs a sequence of value or block, depending on the specified parameters in the tag {dynamic:each. The tag is available inside the tag {dynamic:each}
[block] text [/block]
Outputs data enclosed in tags once per block. The tag works only with the parameter block="yes". The tag is available inside the tag {dynamic:each}
{url}
Display a link to the news page of the additional field. The tag is available inside the tag {dynamic:each} and works with all types of additional fields that have the cross-hyperlink option enabled.
{src}
Display a link to the original image, video or audio. The tag is available inside the tag {dynamic:each} and works with additional field types Gallery, Image, Video and Audio.
{thumb}
Display a link to a reduced copy of the image, if it is not there, then the link will be to the original image. The tag is available inside the tag {dynamic:each} and works with additional field types Gallery and Image.
{alt}
Display a description of the image, video or audio. The tag is available inside the tag {dynamic:each} and works with additional field types Gallery, Image, Video and Audio.
{name}
Displays the name of the audio or video file. The tag is available inside the tag {dynamic:each} and works with additional field types Video and Audio.
[xfvalue_X dynamic:Y]
The value of the dynamic additional field "X", where "X" is the name of the additional field, "Y" is the sequence of the dynamic field.
[xfvalue_X dynamic:Y limit="X2"]
Outputs only the text of the dynamic additional field without HTML formatting, while the text itself is reduced to the number of characters specified by X2. In this case, the text is reduced to the last logical word. For example, [xfvalue_test dynamic:2 limit="50"] will print only the first 50 characters of the value of a dynamic additional field named test with sequence 2.
[xfgiven_X dynamic:Y][xfvalue_X dynamic:Y][/xfgiven_X dynamic:Y]
A dynamic additional field "X" is displayed, if the field is not empty, if the field has no value, then the text is simply cut out. Where "X" is the name of the additional field, "Y" is the sequence of the dynamic field.
[xfnotgiven_X dynamic:Y] [/xfnotgiven_X dynamic:Y]
The text specified in them is displayed if the dynamic additional field was not set when the news was published. Where "X" is the name of the additional field, "Y" is the sequence of the dynamic field.
[xfvalue_thumb_url_X dynamic:Y]
This tag can only be used if the dynamic additional field is of type Image. The tag outputs only the URL for a thumbnail of the uploaded image. Where "X" is the name of the additional field, "Y" is the sequence of the dynamic field.
[xfvalue_image_url_X dynamic:Y]
This tag can only be used if the dynamic additional field is of type Image. The tag displays only the URL for the full size image of the uploaded image. Where "X" is the name of the additional field, "Y" is the sequence of the dynamic field.
[xfvalue_image_description_X dynamic:Y]
This tag can only be used if the dynamic additional field is of type Image. The tag displays only the description for the uploaded image. Where "X" is the name of the additional field, "Y" is the sequence of the dynamic field.
[xfvalue_X dynamic:Y image="Nr"]
Display images loaded for a dynamic additional field with the "Gallery" type, separately. Where "X" is the name of the additional field, "Y" is the sequence of the dynamic field, "Nr" is the image number. For example, using [xfvalue_test dynamic:1 image="2"] will display image number two, loaded into the first dynamic additional field named "test".
[xfvalue_X dynamic:Y image-url="Nr"]
Display the URLs of full images loaded for a dynamic additional field with type "Gallery", individually. Where "X" is the name of the additional field, "Y" is the sequence of the dynamic field, "Nr" is the image number.
[xfvalue_X dynamic:Y image-thumb-url="Nr"]
Display the URLs of thumbnails of images loaded for a dynamic additional field with type "Gallery", individually. Where "X" is the name of the additional field, "Y" is the sequence of the dynamic field, "Nr" is the image number.
[xfvalue_X dynamic:Y image-description="Nr"]
Display image descriptions loaded for a dynamic additional field with the "Gallery" type, separately. Where "X" is the name of the additional field, "Y" is the sequence of the dynamic field, "Nr" is the image number.
[xfgiven_X dynamic:Y image="NR"] текст [/xfgiven_X dynamic:Y image="NR"]
The text contained in them is displayed if an image with the specified number is present and loaded into a dynamic additional field. Where "X" is the name of the additional field, "Y" is the sequence of the dynamic field, "Nr" is the image number.
[xfnotgiven_X dynamic:Y image="NR"] Текст [/xfnotgiven_X dynamic:Y image="NR"]
The text contained in them is displayed if the image with the specified number is not in the dynamic additional field. Where "X" is the name of the additional field, "Y" is the sequence of the dynamic field, "Nr" is the image number.
[ifxfvalue tagname dynamic:Y="tagvalue"] Текст [/ifxfvalue]
The text enclosed in them is displayed if the value of the dynamic additional field matches the specified one. Where "tagname" is the name of the additional field, "Y" is the sequence of the dynamic field, "tagvalue" is its value. tagvalues can be listed separated by commas.
[ifxfvalue tagname dynamic:Y!="tagvalue"] Текст [/ifxfvalue]
The text contained in them is displayed if the value of the dynamic additional field does not match the specified one. Where "tagname" is the name of the additional field, "Y" is the sequence of the dynamic field, "tagvalue" is its value. tagvalues can be listed separated by commas.
Tag Description
{i}
Dynamic field number.
{name}
The name of the additional field.

Common mistakes

Set the permissions 666 or 777, depending on your server settings, to the file /engine/lazydev/dle_dynamic_xfield/data/config.php

List of updates

10 August, 2023
1.2.0

FixedFixed a bug where the BBCode editor from the admin panel could be used on the site and vice versa.

FixedFixed a bug when a remote additional dynamic field was created without the TinyMCE editor.

FixedFixed work of the TinyMCE editor on DataLife Engine versions 16.0 and higher.

NewThe work of the TinyMCE editor for additional dynamic fields has been brought in line with its work on DataLife Engine 16.0 and higher.

NewAdded full-fledged work on DataLife Engine 16.0 and higher.

NewNew {name} tag for {dynamic:each tag to work with Audio and Video additional field types.

NewAdded a class for the button to remove additional dynamic fields on the site for a more convenient design for your template.

20 March, 2023
1.1.3

FixedFixed incorrect operation of additional fields of the List type.

NewAdded support for DLE xFields Tab PRO module.

11 February, 2023
1.1.2

FixedFixed some bugs in admin panel.

NewAdded DataLife Engine 16.0 support.

24 December, 2022
1.1.1

FixedFixed incorrect work of tags [xfgiven_x dynamic:y] and [xfnotgiven_x dynamic:y]

18 December, 2022
1.1.0

FixedFixed the [xfgiven and [xfnotgiven] tags that would remain displayed when there was no data.

NewAdded {i} tag for {dynamic:each

NewAdded [block].[/block] tag for {dynamic:each

NewAdded parameter block="yes" for {dynamic:each

NewAdded parameter block-sep="<br>" for {dynamic:each

NewAdded parameter separator="<br>" for {dynamic:each

© 2022 All Rights Reserved by LazyDev