+ Reply to Thread
Results 1 to 3 of 3

Thread: set up a condition in content.tpl

  1. #1

    set up a condition in content.tpl

    hello. we have in content.tpl the code

    PHP Code:
    Only registered members can view the code
    i assume it must have a condition becouse if i add it there directly, it will show as well in other areas like listings page (grid/list).

    how it should be the condition? thanks

  2. #2
    Try adding text in listing_details.tpl

    in between
    Code:
    Only registered members can view the code.
    If you add the text like this

    Code:
    Only registered members can view the code.
    Then create a language in admin, adding the new language id in place of 'lang-id-here' in above code you should be able to edit it in admin anytime

    I think that should work
    Last edited by Chris Brown; November 28, 2013 at 08:49 PM.
    New Site: CameraSpecs https://bit.ly/3G4uYA6

    Old Site: MotorAdsUk

  3. #3
    Quote Originally Posted by Chris Brown View Post
    Try adding text in listing_details.tpl

    in between
    Code:
    Only registered members can view the code.
    If you add the text like this

    Code:
    Only registered members can view the code.
    Then create a language in admin, adding the new language id in place of 'lang-id-here' in above code you should be able to edit it in admin anytime

    I think that should work
    actualy i will add a code that i need to show just beneth h1
    that's why i do it via that aproach

+ Reply to Thread