首页 \ 问答 \ 检测模板索引文件,如果是Joomla K2项目或Joomla文章(Detect on template index file if Joomla K2 item or Joomla Article)

检测模板索引文件,如果是Joomla K2项目或Joomla文章(Detect on template index file if Joomla K2 item or Joomla Article)

如果“页面”来自我的索引文件中的K2项目或Joomla文章,我正在寻找有关如何检测的帮助。

例:

如果“页面”是k2项目显示此内容,如果是Joomla文章显示此内容。

我需要这样做的原因是我需要为一般页面提供不同的网格结构,而不是k2。


I am looking for help on how to do a detect if "page" is coming from a K2 item or Joomla article in my index file.

Example:

If "page" is k2 item show this content else if is Joomla article show this content.

The reason I need to do this is I need to have a different grid structure for general pages vs what is k2.


原文:https://stackoverflow.com/questions/44809429
更新时间:2023-12-13 10:12

最满意答案

Microsoft提供了许多Office互操作示例,请与MSDN一起检查并搜索Office互操作。

以下是一篇可能对您的情况有帮助的文章: 如何以编程方式将智能标记添加到Word文档中


Microsoft has lots of examples of Office interop, check with MSDN and search for Office interop.

Here's one such article that might help your situation: How To Programmatically Add a Smart Tag to a Word document.

相关问答

更多
  • 不。 Outlook 2013中引入了保持加载项的性能标准。有关详细信息,请参阅Outlook中的新增功能 。 Nope. The performance criteria for keeping add-ins enabled was introduced with Outlook 2013. See New in Outlook for developers for more information.
  • 你在看GAL参赛作品吗? 这些地址条目存在于GAL(基于AD)中,而不存在于Exchange邮箱的“联系人”文件夹中。 如果需要打开(非默认)PST存储的“联系人”文件夹,请调用RDOStore.GetDefaultFolder(olFolderContacts)而不是RDOSession.GetDefaultFolder(从默认存储中返回文件夹)。 可以使用RDOSession.Stores集合打开辅助PST存储。 Are you looking at the GAL entries? These add ...
  • 异常消息不是很有用,它们可以用COM声明做得更好。 这是设计,该类未注册。 您必须使用Application.CreateItem()方法创建它的实例。 The exception message is not very helpful, they could have done a better job with the COM declaration. This is by design, the class is not registered. You must create an instance ...
  • Microsoft提供了许多Office互操作示例,请与MSDN一起检查并搜索Office互操作。 以下是一篇可能对您的情况有帮助的文章: 如何以编程方式将智能标记添加到Word文档中 。 Microsoft has lots of examples of Office interop, check with MSDN and search for Office interop. Here's one such article that might help your situation: How To P ...
  • 功能区UI(也称为Fluent UI)用于在Outlook 2010及更高版本中自定义上下文菜单。 有关详细信息,请参阅在Outlook 2010中扩展用户界面 。 不幸的是,并非所有上下文菜单都可以由第三方开发人员自定义。 Microsoft根本不共享所需的idMso值。 您可以在以下文档中找到所有公开的idMso值: Office 2013帮助文件:Office Fluent用户界面控件标识符 Microsoft Office文档:[MS-CUSTOMUI2]支持文档 The Ribbon UI (ak ...
  • 由于Outlook是将加载代码的主机进程,因此必须确保Outlook是用于调试的目标应用程序(转到项目属性并在“调试”设置中的“启动外部程序”选项下选择主Outlook EXE)。 当然,您还必须确保您的插件实际上是由Outlook加载的。 有了这个,您应该能够使用VS调试您的插件。 Since Outlook is the host process that will load your code you have to make sure that Outlook is the target appli ...
  • 我最近遇到了同样的问题,并且必须在安装我的加载项之前在客户端工作站上安装Office Runtime的Visual Studio 2010工具。 安装后我立即能够安装我的加载项而无需重启。 根据VSTO团队的[post] [3]: 请注意,在Office 2010的Beta版和RTM版中,您将无法获得Office 4.0 Runtime Extensions(或者“打开”它们的功能)。 如果要部署以.Net Framework 4为目标的自定义项并且它们将在Office 2010上运行,则需要用户安装VST ...
  • 我发现了一个向我解释这个问题的网站。 它的: http://blogs.technet.com/b/heyscriptingguy/archive/2006/08/03/how-can-i-get-access-to-a-mail-folder-that-isn-ta-subfolder-of-我展望系列inbox.aspx I found a site that explains this to me. It's: http://blogs.technet.com/b/heyscriptingguy/ar ...
  • 如果您使用旧的基于CommandBars的API,您的按钮将出现在Addins选项卡上,这可能不是您想要的。 您的加载项(在低级别)需要实现IRibbonExtensibility接口并将您的自定义作为XML返回 - 请参阅http://msdn.microsoft.com/en-us/library/office/bb226712(v=office.12)的.aspx If you use the old CommandBars based API, your button will appear on ...
  • 您可以按照以下步骤操作: 创建Outlook加载项项目 添加新项 → 功能区(XML)并将其命名为Ribbon1 将此内容粘贴到XML文件: ...

相关文章

更多

最新问答

更多
  • 您如何使用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)