Inserting a video link in the News Module?
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.
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.
-
- Joomla! Fledgling
- Posts: 4
- Joined: Mon Jun 11, 2018 12:32 pm
Inserting a video link in the News Module?
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?
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.
- Webdongle
- Joomla! Master
- Posts: 44093
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Inserting a video link in the News Module?
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".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Fledgling
- Posts: 4
- Joined: Mon Jun 11, 2018 12:32 pm
Re: Inserting a video link in the News Module?
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
- Webdongle
- Joomla! Master
- Posts: 44093
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Inserting a video link in the News Module?
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.
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".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Fledgling
- Posts: 4
- Joined: Mon Jun 11, 2018 12:32 pm
Re: Inserting a video link in the News Module?
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 -->
<!-- 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 -->
- Webdongle
- Joomla! Master
- Posts: 44093
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Inserting a video link in the News Module?
That edit will show even when the module isn't published.
You can lose the edit on an update.
Good luck.
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".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Fledgling
- Posts: 4
- Joined: Mon Jun 11, 2018 12:32 pm
Re: Inserting a video link in the News Module?
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
- AMurray
- Joomla! Exemplar
- Posts: 9744
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: Inserting a video link in the News Module?
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
General Support Moderator