检测模板索引文件,如果是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
最满意答案
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 ...
-
80040154 Outlook 2010中未注册ERROR的类添加(80040154 Class not registered ERROR in Outlook 2010 Add In)[2022-06-20]
异常消息不是很有用,它们可以用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 ...
-
Outlook 2010插件(Outlook 2010 plugin)[2023-02-27]
功能区UI(也称为Fluent UI)用于在Outlook 2010及更高版本中自定义上下文菜单。 有关详细信息,请参阅在Outlook 2010中扩展用户界面 。 不幸的是,并非所有上下文菜单都可以由第三方开发人员自定义。 Microsoft根本不共享所需的idMso值。 您可以在以下文档中找到所有公开的idMso值: Office 2013帮助文件:Office Fluent用户界面控件标识符 Microsoft Office文档:[MS-CUSTOMUI2]支持文档 The Ribbon UI (ak ... -
我调试Outlook插件时Outlook 2010无法启动?(Outlook 2010 not launching when I debug my Outlook addin?)[2024-01-24]
由于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 ...
-
从Outlook 2010将Outlook日历项添加到公用文件夹(Adding Outlook Calendar item to a Public Folder from Access 2010)[2022-11-15]
我发现了一个向我解释这个问题的网站。 它的: 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文件:
...