首页 \ 问答 \ Joomla 2.5首页覆盖(Joomla 2.5 frontpage override)

Joomla 2.5首页覆盖(Joomla 2.5 frontpage override)

我刚刚进入Joomla。 我已成功覆盖了文章页面,方法是在我的模板中创建一个html / com_content / article目录,并从/ com_content目录中复制必要的文件。

我已经读过,这也可以用于首页。 但是我似乎错过了/ com_content目录中的首页目录。 这仍然是Joomla 2.5中支持的。 我真的不想在我的首页上使用不同的模板,但看起来这可能是我唯一的选择。

任何帮助将不胜感激。

干杯汤姆


I'm just getting into Joomla. I've successfully overridden article pages by creating an html/com_content/article directory within my template and copied the necessary files from the /com_content directory.

I've read that this is also possible for the frontpage. It seems however I'm missing the frontpage directory from my /com_content directory. Is this still supported in Joomla 2.5. I don't really want to have to use a different template for my frontpage, but it looks like this may be my only option.

Any help would be greatly appreciated.

Cheers Tom


原文:https://stackoverflow.com/questions/9202259
更新时间:2022-06-03 13:06

最满意答案

值得注意的是,出于历史目的,所有缩略图目前都具有4:3的宽高比。 如果基础视频是16:9并且您打算使用16:9播放器,那么定位缩略图以便隐藏顶部和底部黑条是有意义的。 这与您使用分辨率较低或分辨率较高的缩略图无关。


It's also worth noting that all thumbnails are currently in a 4:3 aspect ratio, for historical purposes. If the underlying video is 16:9 and you plan on using a 16:9 player, then it makes sense to position the thumbnail so that the top and bottom black bars are hidden. That's independent of whether you use a lower-resolution or higher-resolution thumbnail.

相关问答

更多
  • 我找到了这个解决方案 这是一个例子 : 您将div设置为width:100% ,它现在将拉伸到容器大小,在本例中为body 。 然后你设置padding-bottom: 56.25%; 获得16:9的比例。 现在设置overflow: hidden; 隐藏div中的内容并设置top: -16.75%; 隐藏上部黑条。 HTML
    您可以通过观察YouTube视频缩略图具有不同的URL模式来执行此操作,您可以通过解析视频ID来生成该模式。 可以类似地获得Vimeo缩略图,但解析视频ID,然后使用简单API获取缩略图的链接。 我为这个Meta问题写了一些代码来做这件事 ; 它不是特别干净但它应该工作: function processURL(url, success){ var id; if (url.indexOf('youtube.com') > -1) { id = url.split('/')[ ...
  • 你是指完整的决议一个吗? https://img.youtube.com/vi//maxresdefault.jpg 我不相信你可以得到总部的“多重”图像,因为你是一个。 请查看以下答案,了解有关网址的更多信息: 如何从YouTube API获取YouTube视频缩略图? Are you referring to the full resolution one?: https://img.youtube.com/vi/
  • YouTube服务条款如下: https://developers.google.com/youtube/terms “您的API客户端可能仅使用基于会话的缓存来获取YouTube API结果,但您必须使用商业上合理的努力才能使您的API客户端在视频元数据发生任何变化时更新缓存结果。例如,如果视频已从YouTube中删除通过视频上传器提供服务或“私有”,缓存的结果将从您的缓存中删除。“ 我知道这种语言可能很密集,不幸的是,我不能在一定程度上为你解释,因为我不是律师。 但是:听起来我觉得你的使用是可以的,因为 ...
  • 试试这个,Thil会工作,根据需要调整比例值。 您可以在此处了解有关youtube图像缩略图的更多信息 .media-video-container { position: relative; overflow: hidden; } .media-video-container img { /*position: absolute; top: 0; left: 0;*/ width: 100%; height: 100%; object-fit: co ...
  • 如果你想要通过颜色, wideimage库 (基于GD)已经实现了这一点。 该方法称为autoCrop , 存在在线演示 。 这可能已经满足您的需求。 If you want to go by the color, the wideimage library (GD based) has this implemented already. The method is called autoCrop, an online demonstration exists. This might already ful ...
  • 值得注意的是,出于历史目的,所有缩略图目前都具有4:3的宽高比。 如果基础视频是16:9并且您打算使用16:9播放器,那么定位缩略图以便隐藏顶部和底部黑条是有意义的。 这与您使用分辨率较低或分辨率较高的缩略图无关。 It's also worth noting that all thumbnails are currently in a 4:3 aspect ratio, for historical purposes. If the underlying video is 16:9 and you pla ...
  • 您可以链接并使用第一个图像作为缩略图,代码如下 这里的data:post.firstImageUrl提供了post中第一张图片的链接。 确保使用expr:src=""而不是src="" you can link to and use first image as thumbnail with code below '; jQuery.getJSON("https://gdata.youtube.com/feeds/api/videos?q=mirthkon&v=2&alt=jsonc",funct ...
  • 遗憾的是,您无法加载缩略图信息并获取布尔值以查看缩略图是否为自定义。 但是(!)你可以在视频属性中看到它。 有contentDetails.hasCustomThumbnail可以告诉你Thumbnail是否是自定义的。 请参阅此文档以了解有关视频属性的信息。 不幸的是,这只能通过该视频的上传者看到。 可悲的是,没有“简单”的方法来获取这些信息。 我个人试着看看Thumbnail是否高分辨率。 如果是这样,它主要是定制的。 但随便检查这个家伙的问题。 这可以给你一个解决方法! Sadly you can't ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)