Inserting a video link in the News Module?

Everything to do with Joomla! 3.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
EscData
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Jun 11, 2018 12:32 pm

Inserting a video link in the News Module?

Post by EscData » Mon Jun 11, 2018 1:27 pm

Hi!

I have a problem with the News bar on a joomla webiste that uses "Protostar" I try to find the file in the FTP so i can insert the code like i did on the picture i uploaded. Is it possible and if it is where is the file located?
You do not have the required permissions to view the files attached to this post.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Inserting a video link in the News Module?

Post by Webdongle » Mon Jun 11, 2018 11:50 pm

You will need to create a Template override of the module then edit that https://docs.joomla.org/J3.x:How_to_use ... _Overrides
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

EscData
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Jun 11, 2018 12:32 pm

Re: Inserting a video link in the News Module?

Post by EscData » Tue Jun 12, 2018 6:59 am

Okey, thanks for the answer but i havn't been using joomla so much before, maybe 2 times, so unfortunately that guide didn't help me so much because of to little guidance haha, but thanks anyway

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Inserting a video link in the News Module?

Post by Webdongle » Tue Jun 12, 2018 11:18 am

Extensions >>> Templates ... navigate to create override ... find the News Module ... select it and create the override.(there will be the path to the override displayed on the screen when you create it).

With ftp navigate to \templates\protostar\html\modules\ ... default.php and edit that file with the code.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

EscData
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Jun 11, 2018 12:32 pm

Re: Inserting a video link in the News Module?

Post by EscData » Tue Jun 12, 2018 4:15 pm

Solved it!! Edited the index.php file under /public_html/templates/protostar/ and added the link on under the jdoc:include line, like this:

<!-- Begin Right Sidebar -->
<jdoc:include type="modules" name="position-7" style="well" />
<iframe width="300" height="150" src="https://www.[youtube].com" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
<!-- End Right Sidebar -->

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Inserting a video link in the News Module?

Post by Webdongle » Tue Jun 12, 2018 5:37 pm

That edit will show even when the module isn't published.
You can lose the edit on an update.
Good luck.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

EscData
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Jun 11, 2018 12:32 pm

Re: Inserting a video link in the News Module?

Post by EscData » Tue Jun 12, 2018 7:49 pm

Ah okey i see, but that is no problem, and yes maybe you are right about that and if there is a update i'll just do it again

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9744
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Inserting a video link in the News Module?

Post by AMurray » Thu Jul 05, 2018 10:27 am

Another way (and I suppose essentially an override too) would be to make a copy of the Protostar template, and rename it (then set it as your site's default template), then make the code changes. This way, any core updates won't affect your template copy and therefore avoids the re-work. Same thing as mentioned, will show regardless of publish status.
Regards - A Murray
General Support Moderator


Locked

Return to “Templates for Joomla! 3.x”