• Как работают свойства tv в Revo?#

  • security Reply #1, 1 year, 9 months ago

    Reply
    Читал справку, пробовал, никак не разберусь.
    У меня есть tv - тип камеры, судя по справке я могу получить на выводе "Тип камеры: корпусная" используя вызов типа такого [*viewingSS@CarsSectionTVPS].

    Properties

    From there, we can specify any default properties we want for the TV. "How can you use properties on a TV?", you might ask. Well, let's say we're doing a textarea TV named "viewingSS". In our content, we've got this:

    Viewing: [[+subsection]]  

    We can add a list property 'subsection' to the grid, and then allow that property to be overridden via property sets. Say we created a Property Set named 'CarsSectionTVPS' (PS for Property Set). In it, we set the 'subsection' property to "Cars". We'd then attach it to the TV in our Resource, or Template, or whereever we are using it like so:


    [[*viewingSS@CarsSectionTVPS]]

    This would output in the place of the TV:
    Viewing: Cars Объясните по русски. как правильно это реализовать?!


  • gobwas Reply #2, 3 months, 2 weeks ago

    Reply
    Плюсую - не могу разобраться с параметрами tv =(