<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 文章页面:检查发布与否的代码

        时间:2023-10-16
      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 文章页面:检查发布与否的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何结合“LIKE"带有“IN"在 MYSQL 查询中? 下一篇:Joomla 2.5 中基于类别的文章的替代布局

                  相关文章

                  <legend id='GWH6y'><style id='GWH6y'><dir id='GWH6y'><q id='GWH6y'></q></dir></style></legend>

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

                    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>