Joomla에서 프런트 엔드 관리자로 로그인 할 때 페이지 제목을 편집하는 데 사용할 양식을 디자인하려고합니다. 나열된 PARAMS 열에서 사이트의 각 페이지에 대해 다음과 같은 일을PHP 스크립트를 사용하여 Joomla 페이지 제목 추출
<h3>Edit Page Titles</h3>
<table border="0" style="text-align:left;">
<tr style="text-align:left;">
<th style="text-align:left;" width="400px" scope="col">ID</th>
<th style="text-align:left;" width="400px" scope="col">Name</th>
<th style="text-align:left;" width="400px" scope="col">Params</th>
<th style="text-align:left;" width="400px" scope="col">Delete</th>
</tr>
<?php
if (JFactory::getUser()->id == 0)
die("Access denied: login required.");
else
{
$today = date("d-m-y");
$result = mysql_query("SELECT * FROM ymeg_menu ORDER BY id")or die(mysql_error());
echo '<tr style="text-align:left;">';
while($row = mysql_fetch_array($result))
{
echo '<td style="text-align:left;">';
echo $row['id'];
echo '</td>';
echo '<td style="text-align:left;">';
echo $row['name'];
echo '</td>';
echo '<td style="text-align:left;">';
echo $row['params'];
echo '</td>';
echo '<td>';
echo '<a href="index.php?option=com_chronoforms&chronoform=DeleteTagsAction&token=';
echo $row['id'];
echo '"style="color:#AD0F02 !important; font-weight:bold !important;">Delete</a>';
echo '</td>';
echo "</tr>";
}
}
?>
</table>
스크립트가 실행됩니다 : : 나는 웹 사이트에있는 모든 기사를 목록으로 다음을 작성했습니다
num_leading_articles=1 num_intro_articles=0 num_columns=1 num_links=0 orderby_pri= orderby_sec=order multi_column_order=1 show_pagination=2 show_pagination_results=1 show_feed_link=1 show_noauth=0 show_title=0 link_titles=0 show_intro=1 show_section=0 link_section=0 show_category=0 link_category=0 show_author=1 show_create_date=1 show_modify_date=1 show_item_navigation=0 show_readmore=1 show_vote=0 show_icons=1 show_pdf_icon=1 show_print_icon=1 show_email_icon=1 show_hits=1 feed_summary= fusion_item_subtext= fusion_customimage= fusion_customclass= fusion_columns=1 fusion_distribution=even fusion_dropdown_width=290 fusion_column_widths= fusion_children_group=0 fusion_children_type=menuitems splitmenu_item_subtext= suckerfish_item_subtext= page_title=SOS Direct – Motorcycle Breakdown Cover From The Motorcycle Breakdown Experts show_page_title=0 pageclass_sfx= menu_image=-1 secure=0
I 추출하려고 부분은 다음과 같습니다 PAGE_TITLE = SOS 직접 -
이를 수행하는 오토바이 고장 전문가의 오토바이 고장 커버 nyone은 반환 된 결과에서 위의 내용을 추출하는 방법을 알고 있으므로 params 열에서 "SOS Direct - Motorcycle Breakdown Experts"와 비슷한 내용을 얻을 수 있습니다. 이 같은
어떤 Joomla 버전을 사용하고 있습니까? 또한'ymeg_menu'를 사용하지 않을 것이고,'#__ menu'를 사용할 것입니다. – Lodder
버전 1.5, 고맙습니다. #_ 잠시 전에 사용하고 있었는데 작동하지 않을 것입니다. –