Joomla中的多个模板,父资产文件夹(Multiple templates in Joomla, parent assets folder)
我是Joomla的新手,尽管我已经构建了很多Wordpress网站。 现在,我有一个项目,我有四个部分,如:主页 - 分支机构 - 产品 - 合作伙伴。 他们都有一个相当相似但仍然不同的布局。
在Wordpress中,我可以使用自定义帖子类型创建index.php,branches.php等页面,同时仍然使用相同的css和js资产。
我怎样才能在Joomla中实现这一目标? 我的想法是制作一个存储所有资产的头模板。 然后我会为其他三个部分制作另外三个模板,导入所有资产。 这有可能吗? 或者还有其他/更好的解决方案吗?
任何帮助深表感谢!
I'm fairly new to Joomla, altough I've build a lot of Wordpress sites. Now, I have a project where I have four sections, like: Homepage - Branches - Products - Partners. They all have a fairly similar but still different layout.
In Wordpress I can make pages like index.php, branches.php etc using custom post types, while still using the same css and js assets.
How can I accomplish this in Joomla? My idea was to make a head template where all the assets are stored. Then I would make three other templates for the other three sections, importing all the assets. Is that even possible? Or is there an other/better solution?
Any help is much appreciated!
原文:https://stackoverflow.com/questions/16623198
最满意答案
您可以使用javascript和html5读取您的csv文件,并尝试将base64数据与CSVToTable一起使用。
或者您可以将csv文件上传到服务器(使用隐藏的iframe来模拟ajax)并使用CSVToTable返回的文件URL。
You could read your csv file using javascript and html5 and try to use the base64 data with CSVToTable.
Or you could upload the csv file to the server (Using a hidden iframe to simulate ajax) and using the returned file url with CSVToTable.
相关问答
更多-
这是演示的第一,然后解释: $(document).ready(function() { function exportTableToCSV($table, filename) { var $rows = $table.find('tr:has(td)'), // Temporary delimiter characters unlikely to be typed by keyboard // This is to avoid accidentall ...
-
在不知道您正在使用的数据集的大小的情况下,我建议您首先遍历所有CSV数据集,以便使用正确的值填充产品列表,然后再次迭代以填充HTML表: function datasetToMap(data) { var ret = {}; //Initialize a map with all the product rows $(data).each(function(index, row) { if(row[0].startsWith("Product")) { ...
-
CSV到HTML表jQuery(CSV to HTML TABLE jQuery)[2021-05-31]
您可以使用javascript和html5读取您的csv文件,并尝试将base64数据与CSVToTable一起使用。 或者您可以将csv文件上传到服务器(使用隐藏的iframe来模拟ajax)并使用CSVToTable返回的文件URL。 You could read your csv file using javascript and html5 and try to use the base64 data with CSVToTable. Or you could upload the csv file ... -
处理DOM中的CSV文本 - JQuery CSV to Table(Process CSV text within the DOM - JQuery CSV to Table)[2024-01-19]
如果你使用我的tablesorter分支 ,那么有一个构建小部件 ,它通过ajax支持CSV到表。 构建小部件内置了CSVToTable代码,因此选项包括该插件的选项。 CSV Album,Artist,Price ($) Lateralus,Tool,$13.00 Aenima,Tool,$12.00 "10,000 days",Tool,$14.00 Down In It,Nine Inch Nails,$3.00 Broken,Nine Inch Nails,$6.00 Muse,Black Hole ... -
看来您的CSV底部有一个空行。 即使它是空的,就“纸张”而言,只要有回车符,它就会有一个字段。 在执行el.forEach()之前,我会检查“el”的内容是否包含任何内容 Put some condition inside el.forEach Like this el.forEach(function (el, i) { if(el.value!="") { ...
-
只需将csvData转换为blob文件或base64文件,然后使用ajax发送到服务器。 记下document.ready之后添加的两个函数。 $(document).ready(function () { function dataURItoBlob(dataURI) { // convert base64/URLEncoded data component to raw binary data held in a string var byteString ...
-
无法将表导出到csv(Can not export table to csv)[2023-05-23]
由于您使用的是输入元素,因此text()方法不起作用 - 实际上元素之间没有任何内容。 相反,您希望使用val()方法从所述输入元素获取文本。 这是一个快速而肮脏的例子: https : //jsfiddle.net/dzy5ktv6/ 请注意,我更改了选择器以选择input元素而不是td 。 Since you are using input elements, the text() method won't work - essentially there is nothing between ... 如何使用jquery将html值(不是表)导出到csv文件?(How to export html value(not table) to a csv file with jquery?)[2024-05-03]
如果您没有包含逗号的字符串: var csv = jQuery(".list").map(function(a,i){ return $.trim($(this).text()).split(/\s*\n\s*/).join(","); }).toArray().join("\r\n"); alert(csv); 您可以在http://danml.com/js/download.js上使用我的下载程序下载csv变量,如: download(csv, "tabledata.csv", "text/c ...jQuery和html表(jQuery and html Table)[2022-05-07]
你的提交功能是错误的..这有用吗? $("form").submit(function() { if ($("#ime").val() != "" && $("#cena").val() != ""){ var ime = $("#ime").val(); var cena = $("#cena").val(); var izpisni = ($('input[name="zaloga"]:checked').val() == "false") ? "No" : "Yes"; ...var $col = $(col), $radio = $col.find('input[type=radio]'), text = $col.text(); if ($radio.length > 0) { return $radio.val(); } 在处理表格单元格数据时确定声明。 我在这里改了一下你的代码 var $col = $(col), $radio = $col.find('input[type=radio]'), text = $col.text ...相关文章
更多- 《Joomla 2.5 模板教程:宁皓网》(Create a Joomla 2.5 Template)前两章 + 模板资源[光盘镜像]
- 《Joomla! 1.5 网站建设基础教程 :宁皓网》(Joomla! 1.5 Essential Training @ ninghao.net)完整[MOV]
- 《发布Joomla! 网站到互联网:宁皓网》(Launch your Joomla! site to the internet @ ninghao.org)开放式课程[MOV]
- 在java中如何获取文件夹占用空间的大小?(注意这里不是问文件夹大小)
- 删除暴风文件夹内的stormliv.exe
- springboot 整合freemarker
- 提取app中的音频文件 方法
- Hadoop安装---Linux5(RHEL5)
- Hadoop怎样提交多个第三方jar包?
- Java泛型父类取得子类的泛型参数T的Class类型
最新问答
更多- 您如何使用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)