Announcement

Collapse
No announcement yet.

THIS_SCRIPT alternatives?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Boothby
    replied
    For what reason do you need to know the name of the template? I mean to say. When you edit a template you know it's name and that name will never change at runtime for that particular template or a special part of a template. So there is no need to ask for something that you already know.

    Leave a comment:


  • Mark.B
    replied
    You can't do that without a plugin of some sort.
    THIS_SCRIPT only reads the name given to the php file that is used to generate the page.

    Leave a comment:


  • Matheeus
    started a topic THIS_SCRIPT alternatives?

    THIS_SCRIPT alternatives?

    Hi,

    actually if I want to know in what page I am i use this script:

    <vb:if condition="THIS_SCRIPT == 'group'">

    But, exists a variable that could tell me what template i'm using, like:

    <vb:if condition="THIS_SCRIPT == 'socialgroups_overview'">

    or

    <vb:if condition="THIS_SCRIPT == 'socialgroups_group'">

Related Topics

Collapse

Working...
X