Welcome to TalkGraphics.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009
    Location
    Surrey UK
    Posts
    106

    Default Placeholders and variants

    Hi

    I've been out of the loop for a while.

    I have just been designing and new site for work and have 2 variants. Mostly works as I want but I can't get a placeholder to display correctly on both variants.

    If I add the placeholder to variant it displays fine on that one. If I share the placeholder to the other variant it display twice on the original variant but not on the second. I have rename the div as described in another post but this did not work either.


    This is script supplied from the data source:

    <div id="SOCSCalendar"><!-- SOCS Diary data will appear here --></div>
    <script src="https://www.socscms.com/socs/plugin/api.js"></script>
    <script type="text/javascript">
    var socsURL = 'https://www.socscms.com/socs/plugin/api.ashx?key=removed'
    </script>

    I am using version Web Designer+ 24.2.0.69846

    Any ideas would be most gratefully appreciated

    Peter

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    18,374

    Default Re: Placeholders and variants

    Peter, a known problem.

    HTML ids are supposed to be unique. Include a second identical one and it is not found.

    You could try ensuring they are not Shared then changing the id of <div id="SOCSCalendar"> to <div id="SOCSCalendarV1"> & <div id="SOCSCalendarV2"> for your variants.
    You will end up with a refreshed view of the calendar when switching. Do test that this is still doing what end viewers require.

    I think it will be better to create a standalone SOCS calendar subsite and link to that.
    I would make it Scale to fit width if the SOCS presentation cannot be made to be adaptive natively.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  3. #3
    Join Date
    Mar 2009
    Location
    Surrey UK
    Posts
    106

    Default Re: Placeholders and variants

    Acorn,

    Thanks for the reply.

    I did another thread which described the issue as you mentioned but it did not fix the problem. When I try using a different names for the div nothing shows!

    I think as you say it will be a better option to create a sub siter and link to from there.

    Very useful advice thank you.
    Best wishes
    Peter

 

 

Tags for this Thread

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
  •