Setting Universal Link Properties

Permalink
Is there a way to create a universal template for links of a certain type? I'm not sure if that question is properly worded.

Let's say I have a link to an MP3. Clicking on it opens a new window with the player active. I can go into link properties and muck around with the target to get it to be a pop-up window of a certain dimension showing up at a certain location. Is there a way to make these properties universal for a certain type of link, or with a certain name, other than going into each link separately and setting them all manually?

Thanks.

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi Cynewulf,

Are you adding these MP3 links using the Content block?
Cynewulf replied on at Permalink Reply
Yes. It's the only way I know how.
MrKDilkington replied on at Permalink Reply
MrKDilkington
@Cynewulf

This can be done by creating a custom template for the Content block. The custom template would look look through the content for any links to MP3 files, then perform some operation on those links.

Here is an example of how to do this:
https://www.concrete5.org/community/forums/usage/symbol-before-a-lin...

What are the exact operations you want to perform on each MP3 file link?
Cynewulf replied on at Permalink Reply
Zounds! That looks like a foreign language. Having once been a linguist I'm sure I can suss that out over time and maybe pick-up some html along the way.

What I want to do with the MP3 link is to have it become a pop-up window with the ability to be resized and relocated. Width at 500, height at 100, Left Position (which I assume means "position from the left edge" at 1200, and Top Position at 700. This way the users can still see most of the page they were on.

I would do something similar for PDF files, with a different size, position, and probably an added scroll bar.

Your reply is very encouraging. Thank you.
MrKDilkington replied on at Permalink Reply 1 Attachment
MrKDilkington
@Cynewulf

If you are using concrete5 version 8, you can do this manually in the rich text editor.

I attached a screenshot showing where to manually set the popup window options.
Cynewulf replied on at Permalink Reply
Yes, I am using v8. I haven't quite located your screen shot.