<i id='bPN6h'><tr id='bPN6h'><dt id='bPN6h'><q id='bPN6h'><span id='bPN6h'><b id='bPN6h'><form id='bPN6h'><ins id='bPN6h'></ins><ul id='bPN6h'></ul><sub id='bPN6h'></sub></form><legend id='bPN6h'></legend><bdo id='bPN6h'><pre id='bPN6h'><center id='bPN6h'></center></pre></bdo></b><th id='bPN6h'></th></span></q></dt></tr></i><div id='bPN6h'><tfoot id='bPN6h'></tfoot><dl id='bPN6h'><fieldset id='bPN6h'></fieldset></dl></div>

      1. <tfoot id='bPN6h'></tfoot>
      2. <small id='bPN6h'></small><noframes id='bPN6h'>

      3. <legend id='bPN6h'><style id='bPN6h'><dir id='bPN6h'><q id='bPN6h'></q></dir></style></legend>
          <bdo id='bPN6h'></bdo><ul id='bPN6h'></ul>

        Joomla 文章页面:检查发布与否的代码

        Joomla article page: code to check published or not(Joomla 文章页面:检查发布与否的代码)
      4. <i id='eEtnZ'><tr id='eEtnZ'><dt id='eEtnZ'><q id='eEtnZ'><span id='eEtnZ'><b id='eEtnZ'><form id='eEtnZ'><ins id='eEtnZ'></ins><ul id='eEtnZ'></ul><sub id='eEtnZ'></sub></form><legend id='eEtnZ'></legend><bdo id='eEtnZ'><pre id='eEtnZ'><center id='eEtnZ'></center></pre></bdo></b><th id='eEtnZ'></th></span></q></dt></tr></i><div id='eEtnZ'><tfoot id='eEtnZ'></tfoot><dl id='eEtnZ'><fieldset id='eEtnZ'></fieldset></dl></div>
        <legend id='eEtnZ'><style id='eEtnZ'><dir id='eEtnZ'><q id='eEtnZ'></q></dir></style></legend>
      5. <small id='eEtnZ'></small><noframes id='eEtnZ'>

          <tfoot id='eEtnZ'></tfoot>

              <tbody id='eEtnZ'></tbody>

                • <bdo id='eEtnZ'></bdo><ul id='eEtnZ'></ul>
                • 本文介绍了Joomla 文章页面:检查发布与否的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在文章页面中查找 php 代码,以检查文章是否已发布.

                  I'm looking for php code in article page to check if the article is published or not.

                  我试过这个,但它是假的.

                  I tried this one, but it false.

                  if($listing['Listing']['published']==1){ }

                  if($listing['Listing']['published']==1){ }

                  谁能给我一些提示?非常感谢

                  Could anyone give me some hint? Thanks a lot

                  PS: Joomla 1.7.3, JReviews 2.3(使用 Joomla 默认内容结构)

                  PS: Joomla 1.7.3, JReviews 2.3(using Joomla default content structure)

                  推荐答案

                  试试这个:

                  jimport('joomla.database.table');
                  $article_id = [place here the article Id];
                  $article =& JTable::getInstance("content");
                  $article->load($article_id);
                  echo $article->get("state");
                  

                  您可以在此处

                  这篇关于Joomla 文章页面:检查发布与否的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Is Joomla 2.5 much faster than Joomla 1.5 Querywise(Joomla 2.5 比 Joomla 1.5 Querywise 快得多吗)
                  How to share Joomla login session from one joomla website to one ASP.Net MVC website(如何将 Joomla 登录会话从一个 joomla 网站共享到一个 ASP.Net MVC 网站)
                  htaccess redirect root to subdirectory but allow index.php in root AND query strings to function(htaccess 将根重定向到子目录,但允许根和查询字符串中的 index.php 起作用)
                  Joomla include database functions(Joomla 包含数据库功能)
                  nl2br() not working when displaying SQL results(显示 SQL 结果时 nl2br() 不起作用)
                  Joomla 2.5 JFactory::getSession(); seems to be caching in firefox(Joomla 2.5 JFactory::getSession();似乎在 Firefox 中缓存)
                  <legend id='GWH6y'><style id='GWH6y'><dir id='GWH6y'><q id='GWH6y'></q></dir></style></legend>

                    • <bdo id='GWH6y'></bdo><ul id='GWH6y'></ul>
                        <tbody id='GWH6y'></tbody>

                          1. <i id='GWH6y'><tr id='GWH6y'><dt id='GWH6y'><q id='GWH6y'><span id='GWH6y'><b id='GWH6y'><form id='GWH6y'><ins id='GWH6y'></ins><ul id='GWH6y'></ul><sub id='GWH6y'></sub></form><legend id='GWH6y'></legend><bdo id='GWH6y'><pre id='GWH6y'><center id='GWH6y'></center></pre></bdo></b><th id='GWH6y'></th></span></q></dt></tr></i><div id='GWH6y'><tfoot id='GWH6y'></tfoot><dl id='GWH6y'><fieldset id='GWH6y'></fieldset></dl></div>

                            <small id='GWH6y'></small><noframes id='GWH6y'>

                            <tfoot id='GWH6y'></tfoot>