Comcode media tag issue (split from other topic)

Post

Posted
Rating:
#6143 (In Topic #1490)
Avatar
Standard member
Terry is in the usergroup ‘Well-settled’
That hotfix fixed the url vs. save issue all over the site.

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.

capture.jpg
Online now: No Back to the top

Post

Posted
Rating:
#6162
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Hi,

I think you're telling us that you:

  1. Clicked the Comcode icon in the WYSIWYG
  2. Selected 'media'
  3. Pasted in the URL to a PDF ('File')
  4. Entered the URL to a thumbnail ('Thumbnail')
  5. Changed the rendering type to "Image"
  6. Saved the tag
  7. 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

Was I helpful?
  • 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.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,052 topics, 7,195 posts, 10,830 members
  • Our newest member is Customcollective
Back to Top