Comcode media tag issue (split from other topic)
Posted
#6143
(In Topic #1490)

Standard member

Another smallish issue, Editing the main page, I can add "Insert some Comcode: media"
This allows me to add a small thumbnail on the left pane that people can click on to pull up / links to a pdf that's on the server. In experiments, the pdf can be opened if I paste the url in the address bar, so it's accessable to the public, but once I save everything, the thumbnail shows in the pane just fine, but clicking on it tries to open it in a sort of modal box in the center of the website, but it never opens. Hovering my mouse over the thumbnailo for the pdf shows that it's pointing to the pdf url correctly, and right-clicking on it and "open link in new tab" pulls the pdf up just fine.

Posted

Site director

I think you're telling us that you:
- Clicked the Comcode icon in the WYSIWYG
- Selected 'media'
- Pasted in the URL to a PDF ('File')
- Entered the URL to a thumbnail ('Thumbnail')
- Changed the rendering type to "Image"
- Saved the tag
- Saved the content
That was the only way I could reproduce at least.
If you select to render a PDF as 'Image', it's going to fail when the thumbnail is clicked as it can't put a PDF into an HTML <img> tag.
Only some media renderers can use thumbnails.
The media/attachment system isn't intended for detailed web design, just quickly linking something in with some basic settings. You'd need to do normal HTML authoring to go deeper than that.
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
1 guest and 0 members have just viewed this.