Results 1 to 2 of 2

Thread: Extension for using Variables

  1. #1
    New user
    Join Date
    07-24-09.
    Posts
    6

    Default Extension for using Variables

    Hi Guys,

    I am looking for an extension which I could input the value of a variable in a back end page and replace it on the template.

    Let´s say I´ve got a set of pages in my site structure:

    Page Destination 1 - variable CityID = 123
    Page Destination 2 - variable CityID = 423
    etc..

    And I want to add a variable on each of them called RegionID which I could input directly in the page structure.

    I am trying with InsertTags which is the closest I get, but I need to create one InsertTag per destination which is not the idea.. since I would need to define one variable per destination page and them all on the template...

    Page Destination 1 - {{CityID1}}
    Page Destination 2 - {{CityID2}}

    Any ideas will be greatly appreciated !!!!1

    Thanks a lot !!!!

  2. #2
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Extension for using Variables

    I think, custominserttags by andreas is the one...

    also, you can get around this, by creating a hidden, unpublished page (so its still editable) and then having articles or CE's defined with the variable contents and then simply referring them using standard inserttags

    {{insert_content::5}} where 5 is the CE's ID number.
    {{insert_article::8}} where 8 is the Articles ID number.

    This is a clever way I use it to insert the Header and Footer contents are modules, but remain editable as elements by the client (e.g. copyright, etc.).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •