Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Page dependent variable - how to?

    Hello people!
    I have absolutely no knowledge of javascriptnig but I do know what I need in the code I'm using. Let me explain:

    I have this part of code:

    Code:
    slides:     [
             // Slideshow Images
             {Gallery dir='xxx' template='supersized'}
             ]
    I would like to make this Gallery dir='xxx' part more dynamically oriented. How can one make this 'dir' variable become "page dependent"? For example:
    - if one is browsing PAGE A on some website then the one should see GALLERY A displayed.
    - when one switches to PAGE B then GALLERY B is displayed and so on...

    If there is someone who could help me on this I would really appreciate it!

    (Let me know if there's not enough info provided in this question. If so, I apologize, I don't know exactly how to treat informations when it comes to coding, it's really not my field!)

  • #2
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,355
    Thanks
    11
    Thanked 558 Times in 551 Posts
    Quote Originally Posted by jakovbak View Post
    I have this part of code:

    Code:
    slides:     [
             // Slideshow Images
             {Gallery dir='xxx' template='supersized'}
             ]
    I doubt that ... because this is not valid Javascript code. So if you have this code, it won't be working already.

    What do you want to achieve? Please try to explain in your own words without assuming possible answers.

  • Users who have thanked devnull69 for this post:

    jakovbak (03-18-2013)

  • #3
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts
    It's just a part of code that is working but with hard-coded path I'm trying to change to dynamic variable. I've sent you PM with details...
    Tnx!
    Regards,
    Jakov

  • #4
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,355
    Thanks
    11
    Thanked 558 Times in 551 Posts
    You should post the relevant part here ... you forgot to mention that this question is specific for the one CMS you are using. I cannot help you here.

  • Users who have thanked devnull69 for this post:

    jakovbak (03-18-2013)

  • #5
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I wasn't aware of the fact that CMS has so much influence on this. But, as I mentioned, this is way beyond my knowledge in this field (I'm a designer...).
    Anyway, thank you for your time and will to help!
    Have a nice rest of the evening and I'll keep on looking elsewhere. Unless you find it challenging? If you do, let me know what you need to see and I'll post it.
    Tnx again and best regards!
    Jakov


  •  

    Posting Permissions

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