Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SeaSky

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. Had the same issue with the EU Cookie Consent module, updating the file worked like a charm, thank you!
  2. SeaSky

    Collapsible text block for CMS (FAQs)

    Hello Traumflug, Thanks for your answer! Unfortunately my knowladge is limited, tried to implement your solution with no luck. I ended up using an alternative solution, similiar to the one I posted previously, that I found on the french ps forum, not a french speaker but the post is quite understandable. I'll leave the link to the solution in case that is useful to someone. Collapsible text block for CMS (FAQs) >
  3. Greetings everyone, As the title suggest I am trying to make a FAQ page with Collapsible text blocks, but when I implement the w3 code the collapsible blocks don't expand or contract on click. Any ideas why is this happening? Thanks in advance for your help! This code is in themes/community-theme-default/js/cms.js: var coll = document.getElementsByClassName("collapsible"); var i; for (i = 0; i < coll.length; i++) { coll.addEventListener("click", function() { this.classList.toggle("active"); var content = this.nextElementSibling; if (content.style.maxHeight){ content.style.maxHeight = null; } else { content.style.maxHeight = content.scrollHeight + "px"; } }); } This code is in the FAQs cms page <p>Collapsible Set:</p> <p><button class="collapsible">Open Section 1</button></p> <div class="content"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> </div> <p><button class="collapsible">Open Section 2</button></p> <div class="content"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> </div> CSS: .collapsible { background-color: #777; color: white; cursor: pointer; padding: 18px; width: 100%; border: none; text-align: left; outline: none; font-size: 15px; } .active, .collapsible:hover { background-color: #555; } .collapsible:after { content: '\002B'; color: white; font-weight: bold; float: right; margin-left: 5px; } .active:after { content: "\2212"; } .content { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height 0.2s ease-out; background-color: #f1f1f1; }
  4. SeaSky

    Moved

    Moved
  5. SeaSky

    Issue cloning Block Banner

    Greetings everyone, First of all I want to thank you for your time and apologize if this is a somewhat duplicate thread, I looked in this forum and in the PS forums regading the same or similar issue with no luck. I'm working on a new site with a fresh 1.0.8 TB and Block Banner v2.0.2. In theory this should be an easy task, but I'am having some issues trying to duplicate the Block Banner module. I've replaced every single expression, respecting spaces and capitals in the files found in the module folder outside the theme and inside the folder inside the theme. The files I've edited are form.tpl, blockbanner.php and blockbanner.tpl in both folders. The config.xml is created automatically with the proper changes to the variables. The module appears in the module menu (Modules and Services>Modules and Services) but in the transplant page (Modules and Services>Positions) it does not. Also, when I install the module it states that it's already installed but when I try to uninstall it declares "The following module(s) could not be uninstalled properly:blockbanner2 :The module is not installed." Any clues in what could I be missing? any info / example that I missed that could be useful? Thanks in advance.
×