I am trying to embed a pdf - I have instruction PDF’s in different languages - I have a folder in resources and need to copy link into a HTML coded bit I have done. currently my folders paths is: resouces>pdf_instructions>language.pdf I now ant to replace each one with the language. I have the current code but need to know what path is to replace the src=“pdf1.pdf” bit to get my file to show up. TIA @dan@ben
I tried the first one as I have them locally in resource file and got “page not found” error. Initially I had a space between pdf and instructions but joined it to see if that helped which it didn’t! THANKS for your help but I will have another try tomorrow. Have a great evening!
See I told you I was brain dead! I did not see your test embed. I added my Dutch pdf and it worked. I now want my accordion style to show PDF in right now window. but copied tour text in and got same message (file not found” I attach my accordion - very basic at moment but the way I want it but thought I would try PDF embed first before going much further. I attach file for the code and I have changed accordion one HTML Code to what worked in your test. TIA
STAR!!! now I have it showing but its as picture and I have adjusted W- and H- settings but this does not affect PDF but the box size, how do I increase the PDF size so its not the whole booklet but just top of first page? TIA
Amazing you’re a STAR and a GENTLEMAN! AHHH I dont want first to open as I have that but in this case I have a place holder image! Tomorrow or Monday I will put three Accordions up for free all the same structure, but one is for images, one for videos and now one thanks to you for PDF I am working on Audio so might have 4 we wait and see! HAVE A GREAT EVENING!
If you don’t mind, I’m going to play around with generalizing this code so that the accordion concept is a single component. That way, you can then add as many as you like and mix and match them if they have different content.
Fill your boots, I started this project needing an accordion with 7 accordions and seven pictures that changed on each accordion, I posted this last week. I then thought what else can I do so added a matching video that changed with each accordion, achieved that then today with Gary’s help (@Doobox) I added a PDF in second column and I am working on audio at moment. I can make as many accordions I need however the part was to have a changing image/PDF/Video?audio in second column and hence why I went on custom HTML root as Elements accordion does not do this. SO my ideal would be an Elements accordion with a code to fill right hand column in. Away you go! TIA
That is what I’m currently working on, but I decided to start from scratch. You can have “n” accordions that share a common image/video/PDF display area. Essentially a group of accordions. There can then be as many groups on the page as you need.
Will share when I have it working. Eventually, I would like it to use the standard accordion component by adding code that listens for a click and handles the display of the image. But first I need to get the basic version working. Then once I have all of the properties figured out I can look at how to tie it to the standard component.
I finally have a working version of a multi-accordion group with an associated image.
I ended up going down a rabbit hole, deciding that, for it to be really useful, you needed to be able to create as many accordions as you required. To do this elegantly in Elements, you need to use a COLLECTION. So that is the route I took. Took a lot of studying to figure out how to use a collection.
By using a collection, you can specify the details for each accordion through the item properties, using the collection property inspector you can then create whoever many you need. It allows you to enter a TITLE, CONTENT, an associated IMAGE (other things in the future), and whether the accordion is initially expanded or not.
This is what it looks like in action.
Here are the current properties for the component. I will gradually add all the styling properties so that, eventually, all aspects of the element can be controlled.